@coorpacademy/components 11.42.1 → 11.42.3

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 (215) hide show
  1. package/es/atom/checkbox-with-title/index.d.ts +1 -0
  2. package/es/atom/checkbox-with-title/index.d.ts.map +1 -1
  3. package/es/atom/checkbox-with-title/index.js +6 -3
  4. package/es/atom/checkbox-with-title/index.js.map +1 -1
  5. package/es/atom/radio-with-title/index.d.ts +3 -0
  6. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  7. package/es/atom/radio-with-title/index.js +23 -5
  8. package/es/atom/radio-with-title/index.js.map +1 -1
  9. package/es/atom/radio-with-title/style.css +27 -0
  10. package/es/atom/radio-with-title/types.d.ts +6 -0
  11. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  12. package/es/atom/radio-with-title/types.js +3 -0
  13. package/es/atom/radio-with-title/types.js.map +1 -1
  14. package/es/index.d.ts +1 -0
  15. package/es/index.js +1 -0
  16. package/es/index.js.map +1 -1
  17. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  18. package/es/molecule/cm-popin/index.js +20 -3
  19. package/es/molecule/cm-popin/index.js.map +1 -1
  20. package/es/molecule/cm-popin/style.css +17 -0
  21. package/es/molecule/cm-popin/types.d.ts +36 -0
  22. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  23. package/es/molecule/cm-popin/types.js +3 -0
  24. package/es/molecule/cm-popin/types.js.map +1 -1
  25. package/es/molecule/draggable-list/index.d.ts +6 -0
  26. package/es/molecule/progress-bar/index.d.ts +16 -7
  27. package/es/molecule/progress-bar/index.d.ts.map +1 -1
  28. package/es/molecule/progress-bar/index.js +61 -4
  29. package/es/molecule/progress-bar/index.js.map +1 -1
  30. package/es/molecule/progress-bar/style.css +56 -0
  31. package/es/molecule/table/index.d.ts +8 -0
  32. package/es/molecule/table/index.d.ts.map +1 -1
  33. package/es/molecule/table/index.js +43 -5
  34. package/es/molecule/table/index.js.map +1 -1
  35. package/es/molecule/table/style.css +24 -0
  36. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
  37. package/es/molecule/title-radio-wrapper/index.d.ts +3 -0
  38. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  39. package/es/molecule/title-radio-wrapper/types.d.ts +3 -0
  40. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  41. package/es/molecule/wizard-summary/index.d.ts +3 -0
  42. package/es/molecule/wizard-summary/index.d.ts.map +1 -1
  43. package/es/molecule/wizard-summary/index.js +35 -3
  44. package/es/molecule/wizard-summary/index.js.map +1 -1
  45. package/es/molecule/wizard-summary/style.css +54 -1
  46. package/es/organism/brand-learning-priorities/index.d.ts +6 -0
  47. package/es/organism/brand-table/index.d.ts +8 -0
  48. package/es/organism/content-selection-list/index.d.ts +95 -0
  49. package/es/organism/content-selection-list/index.d.ts.map +1 -0
  50. package/es/organism/content-selection-list/index.js +175 -0
  51. package/es/organism/content-selection-list/index.js.map +1 -0
  52. package/es/organism/content-selection-list/style.css +8 -0
  53. package/es/organism/content-selection-list/types.d.ts +113 -0
  54. package/es/organism/content-selection-list/types.d.ts.map +1 -0
  55. package/es/organism/content-selection-list/types.js +58 -0
  56. package/es/organism/content-selection-list/types.js.map +1 -0
  57. package/es/organism/content-skill-modal/index.d.ts +7 -0
  58. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  59. package/es/organism/content-skill-modal/types.d.ts +7 -0
  60. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  61. package/es/organism/list-item/index.d.ts +9 -1
  62. package/es/organism/list-item/index.d.ts.map +1 -1
  63. package/es/organism/list-item/index.js +16 -3
  64. package/es/organism/list-item/index.js.map +1 -1
  65. package/es/organism/list-item/style.css +15 -0
  66. package/es/organism/list-items/index.d.ts +7 -0
  67. package/es/organism/rewards-form/index.d.ts +1 -0
  68. package/es/organism/select-opponents/index.d.ts +1 -0
  69. package/es/organism/select-opponents/index.d.ts.map +1 -1
  70. package/es/organism/select-opponents/types.d.ts +1 -0
  71. package/es/organism/select-opponents/types.d.ts.map +1 -1
  72. package/es/organism/skill-edition/index.d.ts +8 -3
  73. package/es/organism/skill-edition/index.d.ts.map +1 -1
  74. package/es/organism/skill-edition/index.js +3 -168
  75. package/es/organism/skill-edition/index.js.map +1 -1
  76. package/es/organism/skill-edition/styles.d.ts +10 -0
  77. package/es/organism/skill-edition/styles.d.ts.map +1 -0
  78. package/es/organism/skill-edition/styles.js +10 -0
  79. package/es/organism/skill-edition/styles.js.map +1 -0
  80. package/es/organism/skill-edition/types.d.ts +10 -54
  81. package/es/organism/skill-edition/types.d.ts.map +1 -1
  82. package/es/organism/skill-edition/types.js +3 -52
  83. package/es/organism/skill-edition/types.js.map +1 -1
  84. package/es/organism/title-and-input/index.d.ts +1 -0
  85. package/es/organism/title-and-input/index.d.ts.map +1 -1
  86. package/es/organism/title-and-input/types.d.ts +1 -0
  87. package/es/organism/title-and-input/types.d.ts.map +1 -1
  88. package/es/organism/wizard-contents/index.d.ts +4 -0
  89. package/es/template/app-player/loading/index.d.ts +33 -0
  90. package/es/template/app-player/player/index.d.ts +66 -0
  91. package/es/template/app-player/player/slides/index.d.ts +33 -0
  92. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  93. package/es/template/app-player/popin-correction/index.d.ts +33 -0
  94. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  95. package/es/template/app-player/popin-end/index.d.ts +33 -0
  96. package/es/template/app-review/index.d.ts +33 -0
  97. package/es/template/app-review/index.d.ts.map +1 -1
  98. package/es/template/app-review/player/prop-types.d.ts +33 -0
  99. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  100. package/es/template/app-review/prop-types.d.ts +33 -0
  101. package/es/template/app-review/prop-types.d.ts.map +1 -1
  102. package/es/template/back-office/brand-update/index.d.ts +80 -3
  103. package/es/template/certification-detail/index.d.ts +33 -0
  104. package/es/template/common/dashboard/index.d.ts +66 -0
  105. package/es/template/common/search-page/index.d.ts +33 -0
  106. package/es/template/external-course/index.d.ts +33 -0
  107. package/es/template/playlist-detail/index.d.ts +33 -0
  108. package/lib/atom/checkbox-with-title/index.d.ts +1 -0
  109. package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
  110. package/lib/atom/checkbox-with-title/index.js +6 -3
  111. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  112. package/lib/atom/radio-with-title/index.d.ts +3 -0
  113. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  114. package/lib/atom/radio-with-title/index.js +23 -5
  115. package/lib/atom/radio-with-title/index.js.map +1 -1
  116. package/lib/atom/radio-with-title/style.css +27 -0
  117. package/lib/atom/radio-with-title/types.d.ts +6 -0
  118. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  119. package/lib/atom/radio-with-title/types.js +3 -0
  120. package/lib/atom/radio-with-title/types.js.map +1 -1
  121. package/lib/index.d.ts +1 -0
  122. package/lib/index.js +3 -0
  123. package/lib/index.js.map +1 -1
  124. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  125. package/lib/molecule/cm-popin/index.js +20 -3
  126. package/lib/molecule/cm-popin/index.js.map +1 -1
  127. package/lib/molecule/cm-popin/style.css +17 -0
  128. package/lib/molecule/cm-popin/types.d.ts +36 -0
  129. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  130. package/lib/molecule/cm-popin/types.js +3 -0
  131. package/lib/molecule/cm-popin/types.js.map +1 -1
  132. package/lib/molecule/draggable-list/index.d.ts +6 -0
  133. package/lib/molecule/progress-bar/index.d.ts +16 -7
  134. package/lib/molecule/progress-bar/index.d.ts.map +1 -1
  135. package/lib/molecule/progress-bar/index.js +61 -4
  136. package/lib/molecule/progress-bar/index.js.map +1 -1
  137. package/lib/molecule/progress-bar/style.css +56 -0
  138. package/lib/molecule/table/index.d.ts +8 -0
  139. package/lib/molecule/table/index.d.ts.map +1 -1
  140. package/lib/molecule/table/index.js +43 -5
  141. package/lib/molecule/table/index.js.map +1 -1
  142. package/lib/molecule/table/style.css +24 -0
  143. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
  144. package/lib/molecule/title-radio-wrapper/index.d.ts +3 -0
  145. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  146. package/lib/molecule/title-radio-wrapper/types.d.ts +3 -0
  147. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  148. package/lib/molecule/wizard-summary/index.d.ts +3 -0
  149. package/lib/molecule/wizard-summary/index.d.ts.map +1 -1
  150. package/lib/molecule/wizard-summary/index.js +35 -3
  151. package/lib/molecule/wizard-summary/index.js.map +1 -1
  152. package/lib/molecule/wizard-summary/style.css +54 -1
  153. package/lib/organism/brand-learning-priorities/index.d.ts +6 -0
  154. package/lib/organism/brand-table/index.d.ts +8 -0
  155. package/lib/organism/content-selection-list/index.d.ts +95 -0
  156. package/lib/organism/content-selection-list/index.d.ts.map +1 -0
  157. package/lib/organism/content-selection-list/index.js +181 -0
  158. package/lib/organism/content-selection-list/index.js.map +1 -0
  159. package/lib/organism/content-selection-list/style.css +8 -0
  160. package/lib/organism/content-selection-list/types.d.ts +113 -0
  161. package/lib/organism/content-selection-list/types.d.ts.map +1 -0
  162. package/lib/organism/content-selection-list/types.js +63 -0
  163. package/lib/organism/content-selection-list/types.js.map +1 -0
  164. package/lib/organism/content-skill-modal/index.d.ts +7 -0
  165. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  166. package/lib/organism/content-skill-modal/types.d.ts +7 -0
  167. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  168. package/lib/organism/list-item/index.d.ts +9 -1
  169. package/lib/organism/list-item/index.d.ts.map +1 -1
  170. package/lib/organism/list-item/index.js +16 -3
  171. package/lib/organism/list-item/index.js.map +1 -1
  172. package/lib/organism/list-item/style.css +15 -0
  173. package/lib/organism/list-items/index.d.ts +7 -0
  174. package/lib/organism/rewards-form/index.d.ts +1 -0
  175. package/lib/organism/select-opponents/index.d.ts +1 -0
  176. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  177. package/lib/organism/select-opponents/types.d.ts +1 -0
  178. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  179. package/lib/organism/skill-edition/index.d.ts +8 -3
  180. package/lib/organism/skill-edition/index.d.ts.map +1 -1
  181. package/lib/organism/skill-edition/index.js +11 -174
  182. package/lib/organism/skill-edition/index.js.map +1 -1
  183. package/lib/organism/skill-edition/styles.d.ts +10 -0
  184. package/lib/organism/skill-edition/styles.d.ts.map +1 -0
  185. package/lib/organism/skill-edition/styles.js +15 -0
  186. package/lib/organism/skill-edition/styles.js.map +1 -0
  187. package/lib/organism/skill-edition/types.d.ts +10 -54
  188. package/lib/organism/skill-edition/types.d.ts.map +1 -1
  189. package/lib/organism/skill-edition/types.js +6 -53
  190. package/lib/organism/skill-edition/types.js.map +1 -1
  191. package/lib/organism/title-and-input/index.d.ts +1 -0
  192. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  193. package/lib/organism/title-and-input/types.d.ts +1 -0
  194. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  195. package/lib/organism/wizard-contents/index.d.ts +4 -0
  196. package/lib/template/app-player/loading/index.d.ts +33 -0
  197. package/lib/template/app-player/player/index.d.ts +66 -0
  198. package/lib/template/app-player/player/slides/index.d.ts +33 -0
  199. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  200. package/lib/template/app-player/popin-correction/index.d.ts +33 -0
  201. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  202. package/lib/template/app-player/popin-end/index.d.ts +33 -0
  203. package/lib/template/app-review/index.d.ts +33 -0
  204. package/lib/template/app-review/index.d.ts.map +1 -1
  205. package/lib/template/app-review/player/prop-types.d.ts +33 -0
  206. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  207. package/lib/template/app-review/prop-types.d.ts +33 -0
  208. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  209. package/lib/template/back-office/brand-update/index.d.ts +80 -3
  210. package/lib/template/certification-detail/index.d.ts +33 -0
  211. package/lib/template/common/dashboard/index.d.ts +66 -0
  212. package/lib/template/common/search-page/index.d.ts +33 -0
  213. package/lib/template/external-course/index.d.ts +33 -0
  214. package/lib/template/playlist-detail/index.d.ts +33 -0
  215. package/package.json +2 -2
@@ -7,6 +7,14 @@ import ListBadges from '../list-badges';
7
7
  import ButtonLink from '../../atom/button-link';
8
8
  import ContentBadge from '../../atom/content-badge';
9
9
  import style from './style.css';
10
+ const DIFF_MARKERS = {
11
+ added: '+',
12
+ removed: '−'
13
+ };
14
+ const DIFF_CLASSES = {
15
+ added: style.added,
16
+ removed: style.removed
17
+ };
10
18
  const buildItemsOfSection = items => {
11
19
  return items.map((item, index) => {
12
20
  const {
@@ -59,8 +67,23 @@ const buildItemsOfSection = items => {
59
67
  {
60
68
  const {
61
69
  text,
62
- unsaved = false
70
+ unsaved = false,
71
+ diff,
72
+ diffLabel
63
73
  } = item;
74
+ if (diff === 'added' || diff === 'removed') return /*#__PURE__*/React.createElement("li", {
75
+ key: `${item.text}-${index}`,
76
+ "data-name": item.title,
77
+ "data-diff": diff,
78
+ className: classnames(style.diffLine, DIFF_CLASSES[diff])
79
+ }, /*#__PURE__*/React.createElement("span", {
80
+ className: style.diffMarker,
81
+ "aria-hidden": "true"
82
+ }, DIFF_MARKERS[diff]), diffLabel ? /*#__PURE__*/React.createElement("span", {
83
+ className: style.visuallyHidden
84
+ }, diffLabel) : null, /*#__PURE__*/React.createElement("span", {
85
+ className: classnames(style.diffText, unsaved && style.unsaved)
86
+ }, text));
64
87
  return /*#__PURE__*/React.createElement("li", {
65
88
  key: `${item.text}-${index}`,
66
89
  "data-name": item.title
@@ -140,7 +163,8 @@ const WizardSummary = props => {
140
163
  title,
141
164
  sections,
142
165
  action,
143
- side
166
+ side,
167
+ inline = false
144
168
  } = props;
145
169
  const sectionsView = buildSections(sections);
146
170
  const idSwitch = _uniqueId('open-summary-wizard');
@@ -157,6 +181,9 @@ const WizardSummary = props => {
157
181
  }
158
182
  setChecked(!checked);
159
183
  }, [checked]);
184
+ if (inline) return /*#__PURE__*/React.createElement("div", {
185
+ className: style.inline
186
+ }, sectionsView);
160
187
  return /*#__PURE__*/React.createElement("div", {
161
188
  className: style.container,
162
189
  ref: summaryElement
@@ -204,6 +231,7 @@ BuildAction.propTypes = process.env.NODE_ENV !== "production" ? {
204
231
  side: PropTypes.string
205
232
  } : {};
206
233
  WizardSummary.propTypes = process.env.NODE_ENV !== "production" ? {
234
+ inline: PropTypes.bool,
207
235
  title: PropTypes.string,
208
236
  side: PropTypes.string,
209
237
  sections: PropTypes.arrayOf(PropTypes.shape({
@@ -215,7 +243,11 @@ WizardSummary.propTypes = process.env.NODE_ENV !== "production" ? {
215
243
  }), PropTypes.shape({
216
244
  type: PropTypes.string,
217
245
  text: PropTypes.string,
218
- unsaved: PropTypes.bool
246
+ unsaved: PropTypes.bool,
247
+ // A diff line: green « + » when added, red « − » when removed
248
+ diff: PropTypes.oneOf(['added', 'removed']),
249
+ // Read by screen readers in place of the marker, e.g. 'Added' / 'Removed'
250
+ diffLabel: PropTypes.string
219
251
  }), PropTypes.shape({
220
252
  type: PropTypes.string,
221
253
  badgeList: PropTypes.arrayOf(PropTypes.shape(ContentBadge.propTypes)),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useMemo","useState","useCallback","useRef","PropTypes","classnames","NovaCompositionNavigationArrowDown","ArrowDownIcon","ListBadges","ButtonLink","ContentBadge","style","buildItemsOfSection","items","map","item","index","type","createElement","key","title","className","value","badgeList","badgeAriaLabel","author","unsaved","contentWrapper","contentCounter","contentItem","contentTitle","dangerouslySetInnerHTML","__html","text","valueSimpleText","buildSectionHeader","section","counterText","sectionHeader","buildSections","sections","itemsView","sectionWrapper","BuildAction","action","side","onClick","disabled","icon","ariaLabel","handleClick","buttonProps","label","position","button","checkOnClose","checked","summaryElement","onCloseSummary","clickEvent","current","contains","target","WizardSummary","props","sectionsView","idSwitch","_uniqueId","setChecked","handleOnChange","document","addEventListener","removeEventListener","container","ref","desktopSummaryTitle","id","name","checkbox","onChange","summary","tabletSummaryHeader","htmlFor","tabletSummaryTitle","tabletSummaryIcon","summarySections","actionZone","propTypes","process","env","NODE_ENV","shape","string","bool","func","arrayOf","oneOfType"],"sources":["../../../src/molecule/wizard-summary/index.js"],"sourcesContent":["import React, {useMemo, useState, useCallback, useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {uniqueId} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowDown as ArrowDownIcon} from '@coorpacademy/nova-icons';\nimport ListBadges from '../list-badges';\nimport ButtonLink from '../../atom/button-link';\nimport ContentBadge from '../../atom/content-badge';\nimport style from './style.css';\n\nconst buildItemsOfSection = items => {\n return items.map((item, index) => {\n const {type} = item;\n switch (type) {\n case 'mainElement':\n return (\n <li key={`${item.title}-${index}`} data-name={item.title}>\n <span className={style.title}>{item.title}</span>\n <span className={style.value}>{item.value}</span>\n </li>\n );\n case 'content': {\n const {badgeList, badgeAriaLabel, title, author, unsaved = false} = item;\n return (\n <li className={style.contentWrapper} key={`${title}-${index}`} data-name={item.title}>\n <span className={style.contentCounter}>{index + 1}</span>\n <div className={style.contentItem}>\n <ListBadges aria-label={badgeAriaLabel} items={badgeList} />\n <div\n className={classnames(style.contentTitle, unsaved && style.unsaved)}\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n {author ? <span className={style.author}>{author}</span> : null}\n </div>\n </li>\n );\n }\n case 'text':\n default: {\n const {text, unsaved = false} = item;\n return (\n <li key={`${item.text}-${index}`} data-name={item.title}>\n <span className={classnames(style.valueSimpleText, unsaved && style.unsaved)}>\n {text}\n </span>\n </li>\n );\n }\n }\n });\n};\n\nconst buildSectionHeader = section => {\n const {title, counterText} = section;\n if (!title) {\n return null;\n }\n return (\n <div className={style.sectionHeader}>\n <span className={style.title}>{title}</span>\n {counterText ? <span className={style.counterText}>{counterText}</span> : null}\n </div>\n );\n};\n\nconst buildSections = sections => {\n return sections.map((section, index) => {\n const sectionHeader = buildSectionHeader(section);\n const itemsView = buildItemsOfSection(section.items);\n return (\n <div\n key={`summary-section-${index}`}\n data-step={index}\n data-name={`summary-section-${index}`}\n className={style.sectionWrapper}\n >\n {sectionHeader}\n <ul>{itemsView}</ul>\n </div>\n );\n });\n};\n\nconst BuildAction = ({action, side}) => {\n const {onClick, text, disabled = false, icon, 'aria-label': ariaLabel} = action;\n const handleClick = useMemo(() => () => onClick(), [onClick]);\n\n if (!action) return null;\n\n const buttonProps = {\n type: 'text',\n label: text,\n disabled,\n 'aria-label': ariaLabel,\n 'data-name': `${icon}-button-${side}`,\n onClick: handleClick,\n icon: {\n position: 'left',\n type: icon\n }\n };\n\n return (\n <div className={style.button}>\n <ButtonLink {...buttonProps} />\n </div>\n );\n};\n\nconst checkOnClose = (checked, summaryElement, onCloseSummary, clickEvent) => {\n if (checked) {\n if (\n summaryElement &&\n summaryElement.current &&\n !summaryElement.current.contains(clickEvent.target)\n ) {\n onCloseSummary();\n }\n }\n};\n\nconst WizardSummary = props => {\n const {title, sections, action, side} = props;\n const sectionsView = buildSections(sections);\n const idSwitch = uniqueId('open-summary-wizard');\n const summaryElement = useRef(null);\n const [checked, setChecked] = useState(false);\n\n const onCloseSummary = () => setChecked(false);\n const handleOnChange = useCallback(() => {\n if (!checked) {\n document.addEventListener('click', clickEvent =>\n checkOnClose(!checked, summaryElement, onCloseSummary, clickEvent)\n );\n document.addEventListener('touchstart', clickEvent =>\n checkOnClose(!checked, summaryElement, onCloseSummary, clickEvent)\n );\n } else {\n document.removeEventListener('click', clickEvent =>\n checkOnClose(!checked, summaryElement, onCloseSummary, clickEvent)\n );\n document.removeEventListener('touchstart', clickEvent =>\n checkOnClose(!checked, summaryElement, onCloseSummary, clickEvent)\n );\n }\n setChecked(!checked);\n }, [checked]);\n\n return (\n <div className={style.container} ref={summaryElement}>\n <span className={style.desktopSummaryTitle} data-name={`summary-title-${side}`}>\n {title}\n </span>\n <input\n type=\"checkbox\"\n id={idSwitch}\n name=\"toogle\"\n title={idSwitch}\n className={style.checkbox}\n data-name={`summary-checkbox-${side}`}\n checked={checked}\n onChange={handleOnChange}\n />\n <div className={style.summary}>\n <div className={style.tabletSummaryHeader}>\n <label htmlFor={idSwitch}>\n <span className={style.tabletSummaryTitle}>{title}</span>\n <ArrowDownIcon className={style.tabletSummaryIcon} />\n </label>\n </div>\n <div className={style.summarySections} data-name={`summary-section-${side}`}>\n {sectionsView}\n </div>\n </div>\n <div className={style.actionZone} data-name={`summary-actions-${side}`}>\n <BuildAction action={action} side={side} />\n </div>\n </div>\n );\n};\n\nBuildAction.propTypes = {\n action: PropTypes.shape({\n icon: PropTypes.string,\n disabled: PropTypes.bool,\n text: PropTypes.string,\n onClick: PropTypes.func,\n 'aria-label': PropTypes.string\n }),\n side: PropTypes.string\n};\n\nWizardSummary.propTypes = {\n title: PropTypes.string,\n side: PropTypes.string,\n sections: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n type: PropTypes.string,\n title: PropTypes.string,\n value: PropTypes.string\n }),\n PropTypes.shape({\n type: PropTypes.string,\n text: PropTypes.string,\n unsaved: PropTypes.bool\n }),\n PropTypes.shape({\n type: PropTypes.string,\n badgeList: PropTypes.arrayOf(PropTypes.shape(ContentBadge.propTypes)),\n badgeAriaLabel: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n unsaved: PropTypes.bool\n })\n ])\n ),\n counterText: PropTypes.string\n })\n ),\n action: BuildAction.propTypes.action\n};\n\nexport default WizardSummary;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,OAAO,EAAEC,QAAQ,EAAEC,WAAW,EAAEC,MAAM,QAAO,OAAO;AACnE,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAAQC,kCAAkC,IAAIC,aAAa,QAAO,0BAA0B;AAC5F,OAAOC,UAAU,MAAM,gBAAgB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E7B,SAAS,CAACwF,MAAM;MACtBlE,OAAO,EAAEtB,SAAS,CAACyF;IACrB,CAAC,CAAC,EACFzF,SAAS,CAACuF,KAAK,CAAC;MACd1E,IAAI,EAAEb,SAAS,CAACwF,MAAM;MACtBrE,SAAS,EAAEnB,SAAS,CAAC2F,OAAO,CAAC3F,SAAS,CAACuF,KAAK,CAACjF,YAAY,CAAC6E,SAAS,CAAC,CAAC;MACrE/D,cAAc,EAAEpB,SAAS,CAACwF,MAAM;MAChCxE,KAAK,EAAEhB,SAAS,CAACwF,MAAM;MACvBnE,MAAM,EAAErB,SAAS,CAACwF,MAAM;MACxBlE,OAAO,EAAEtB,SAAS,CAACyF;IACrB,CAAC,CAAC,CACH,CACH,CAAC;IACDxD,WAAW,EAAEjC,SAAS,CAACwF;EACzB,CAAC,CACH,CAAC;EACDhD,MAAM,EAAED,WAAW,CAAC4C,SAAS,CAAC3C;AAChC,CAAC;AAED,eAAemB,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","useMemo","useState","useCallback","useRef","PropTypes","classnames","NovaCompositionNavigationArrowDown","ArrowDownIcon","ListBadges","ButtonLink","ContentBadge","style","DIFF_MARKERS","added","removed","DIFF_CLASSES","buildItemsOfSection","items","map","item","index","type","createElement","key","title","className","value","badgeList","badgeAriaLabel","author","unsaved","contentWrapper","contentCounter","contentItem","contentTitle","dangerouslySetInnerHTML","__html","text","diff","diffLabel","diffLine","diffMarker","visuallyHidden","diffText","valueSimpleText","buildSectionHeader","section","counterText","sectionHeader","buildSections","sections","itemsView","sectionWrapper","BuildAction","action","side","onClick","disabled","icon","ariaLabel","handleClick","buttonProps","label","position","button","checkOnClose","checked","summaryElement","onCloseSummary","clickEvent","current","contains","target","WizardSummary","props","inline","sectionsView","idSwitch","_uniqueId","setChecked","handleOnChange","document","addEventListener","removeEventListener","container","ref","desktopSummaryTitle","id","name","checkbox","onChange","summary","tabletSummaryHeader","htmlFor","tabletSummaryTitle","tabletSummaryIcon","summarySections","actionZone","propTypes","process","env","NODE_ENV","shape","string","bool","func","arrayOf","oneOfType","oneOf"],"sources":["../../../src/molecule/wizard-summary/index.js"],"sourcesContent":["import React, {useMemo, useState, useCallback, useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {uniqueId} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowDown as ArrowDownIcon} from '@coorpacademy/nova-icons';\nimport ListBadges from '../list-badges';\nimport ButtonLink from '../../atom/button-link';\nimport ContentBadge from '../../atom/content-badge';\nimport style from './style.css';\n\nconst DIFF_MARKERS = {added: '+', removed: '−'};\nconst DIFF_CLASSES = {added: style.added, removed: style.removed};\n\nconst buildItemsOfSection = items => {\n return items.map((item, index) => {\n const {type} = item;\n switch (type) {\n case 'mainElement':\n return (\n <li key={`${item.title}-${index}`} data-name={item.title}>\n <span className={style.title}>{item.title}</span>\n <span className={style.value}>{item.value}</span>\n </li>\n );\n case 'content': {\n const {badgeList, badgeAriaLabel, title, author, unsaved = false} = item;\n return (\n <li className={style.contentWrapper} key={`${title}-${index}`} data-name={item.title}>\n <span className={style.contentCounter}>{index + 1}</span>\n <div className={style.contentItem}>\n <ListBadges aria-label={badgeAriaLabel} items={badgeList} />\n <div\n className={classnames(style.contentTitle, unsaved && style.unsaved)}\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n {author ? <span className={style.author}>{author}</span> : null}\n </div>\n </li>\n );\n }\n case 'text':\n default: {\n const {text, unsaved = false, diff, diffLabel} = item;\n if (diff === 'added' || diff === 'removed')\n return (\n <li\n key={`${item.text}-${index}`}\n data-name={item.title}\n data-diff={diff}\n className={classnames(style.diffLine, DIFF_CLASSES[diff])}\n >\n <span className={style.diffMarker} aria-hidden=\"true\">\n {DIFF_MARKERS[diff]}\n </span>\n {diffLabel ? <span className={style.visuallyHidden}>{diffLabel}</span> : null}\n <span className={classnames(style.diffText, unsaved && style.unsaved)}>{text}</span>\n </li>\n );\n return (\n <li key={`${item.text}-${index}`} data-name={item.title}>\n <span className={classnames(style.valueSimpleText, unsaved && style.unsaved)}>\n {text}\n </span>\n </li>\n );\n }\n }\n });\n};\n\nconst buildSectionHeader = section => {\n const {title, counterText} = section;\n if (!title) {\n return null;\n }\n return (\n <div className={style.sectionHeader}>\n <span className={style.title}>{title}</span>\n {counterText ? <span className={style.counterText}>{counterText}</span> : null}\n </div>\n );\n};\n\nconst buildSections = sections => {\n return sections.map((section, index) => {\n const sectionHeader = buildSectionHeader(section);\n const itemsView = buildItemsOfSection(section.items);\n return (\n <div\n key={`summary-section-${index}`}\n data-step={index}\n data-name={`summary-section-${index}`}\n className={style.sectionWrapper}\n >\n {sectionHeader}\n <ul>{itemsView}</ul>\n </div>\n );\n });\n};\n\nconst BuildAction = ({action, side}) => {\n const {onClick, text, disabled = false, icon, 'aria-label': ariaLabel} = action;\n const handleClick = useMemo(() => () => onClick(), [onClick]);\n\n if (!action) return null;\n\n const buttonProps = {\n type: 'text',\n label: text,\n disabled,\n 'aria-label': ariaLabel,\n 'data-name': `${icon}-button-${side}`,\n onClick: handleClick,\n icon: {\n position: 'left',\n type: icon\n }\n };\n\n return (\n <div className={style.button}>\n <ButtonLink {...buttonProps} />\n </div>\n );\n};\n\nconst checkOnClose = (checked, summaryElement, onCloseSummary, clickEvent) => {\n if (checked) {\n if (\n summaryElement &&\n summaryElement.current &&\n !summaryElement.current.contains(clickEvent.target)\n ) {\n onCloseSummary();\n }\n }\n};\n\nconst WizardSummary = props => {\n const {title, sections, action, side, inline = false} = props;\n const sectionsView = buildSections(sections);\n const idSwitch = uniqueId('open-summary-wizard');\n const summaryElement = useRef(null);\n const [checked, setChecked] = useState(false);\n\n const onCloseSummary = () => setChecked(false);\n const handleOnChange = useCallback(() => {\n if (!checked) {\n document.addEventListener('click', clickEvent =>\n checkOnClose(!checked, summaryElement, onCloseSummary, clickEvent)\n );\n document.addEventListener('touchstart', clickEvent =>\n checkOnClose(!checked, summaryElement, onCloseSummary, clickEvent)\n );\n } else {\n document.removeEventListener('click', clickEvent =>\n checkOnClose(!checked, summaryElement, onCloseSummary, clickEvent)\n );\n document.removeEventListener('touchstart', clickEvent =>\n checkOnClose(!checked, summaryElement, onCloseSummary, clickEvent)\n );\n }\n setChecked(!checked);\n }, [checked]);\n\n if (inline) return <div className={style.inline}>{sectionsView}</div>;\n\n return (\n <div className={style.container} ref={summaryElement}>\n <span className={style.desktopSummaryTitle} data-name={`summary-title-${side}`}>\n {title}\n </span>\n <input\n type=\"checkbox\"\n id={idSwitch}\n name=\"toogle\"\n title={idSwitch}\n className={style.checkbox}\n data-name={`summary-checkbox-${side}`}\n checked={checked}\n onChange={handleOnChange}\n />\n <div className={style.summary}>\n <div className={style.tabletSummaryHeader}>\n <label htmlFor={idSwitch}>\n <span className={style.tabletSummaryTitle}>{title}</span>\n <ArrowDownIcon className={style.tabletSummaryIcon} />\n </label>\n </div>\n <div className={style.summarySections} data-name={`summary-section-${side}`}>\n {sectionsView}\n </div>\n </div>\n <div className={style.actionZone} data-name={`summary-actions-${side}`}>\n <BuildAction action={action} side={side} />\n </div>\n </div>\n );\n};\n\nBuildAction.propTypes = {\n action: PropTypes.shape({\n icon: PropTypes.string,\n disabled: PropTypes.bool,\n text: PropTypes.string,\n onClick: PropTypes.func,\n 'aria-label': PropTypes.string\n }),\n side: PropTypes.string\n};\n\nWizardSummary.propTypes = {\n inline: PropTypes.bool,\n title: PropTypes.string,\n side: PropTypes.string,\n sections: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n type: PropTypes.string,\n title: PropTypes.string,\n value: PropTypes.string\n }),\n PropTypes.shape({\n type: PropTypes.string,\n text: PropTypes.string,\n unsaved: PropTypes.bool,\n // A diff line: green « + » when added, red « − » when removed\n diff: PropTypes.oneOf(['added', 'removed']),\n // Read by screen readers in place of the marker, e.g. 'Added' / 'Removed'\n diffLabel: PropTypes.string\n }),\n PropTypes.shape({\n type: PropTypes.string,\n badgeList: PropTypes.arrayOf(PropTypes.shape(ContentBadge.propTypes)),\n badgeAriaLabel: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n unsaved: PropTypes.bool\n })\n ])\n ),\n counterText: PropTypes.string\n })\n ),\n action: BuildAction.propTypes.action\n};\n\nexport default WizardSummary;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,OAAO,EAAEC,QAAQ,EAAEC,WAAW,EAAEC,MAAM,QAAO,OAAO;AACnE,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAAQC,kCAAkC,IAAIC,aAAa,QAAO,0BAA0B;AAC5F,OAAOC,UAAU,MAAM,gBAAgB;AACvC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,YAAY,MAAM,0BAA0B;AACnD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,YAAY,GAAG;EAACC,KAAK,EAAE,GAAG;EAAEC,OAAO,EAAE;AAAG,CAAC;AAC/C,MAAMC,YAAY,GAAG;EAACF,KAAK,EAAEF,KAAK,CAACE,KAAK;EAAEC,OAAO,EAAEH,KAAK,CAACG;AAAO,CAAC;AAEjE,MAAME,mBAAmB,GAAGC,KAAK,IAAI;EACnC,OAAOA,KAAK,CAACC,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAK;IAChC,MAAM;MAACC;IAAI,CAAC,GAAGF,IAAI;IACnB,QAAQE,IAAI;MACV,KAAK,aAAa;QAChB,oBACEtB,KAAA,CAAAuB,aAAA;UAAIC,GAAG,EAAE,GAAGJ,IAAI,CAACK,KAAK,IAAIJ,KAAK,EAAG;UAAC,aAAWD,IAAI,CAACK;QAAM,gBACvDzB,KAAA,CAAAuB,aAAA;UAAMG,SAAS,EAAEd,KAAK,CAACa;QAAM,GAAEL,IAAI,CAACK,KAAY,CAAC,eACjDzB,KAAA,CAAAuB,aAAA;UAAMG,SAAS,EAAEd,KAAK,CA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IACvBtF,KAAK,EAAEb,SAAS,CAACsG,OAAO,CACtBtG,SAAS,CAACuG,SAAS,CAAC,CAClBvG,SAAS,CAACkG,KAAK,CAAC;MACdjF,IAAI,EAAEjB,SAAS,CAACmG,MAAM;MACtB/E,KAAK,EAAEpB,SAAS,CAACmG,MAAM;MACvB7E,KAAK,EAAEtB,SAAS,CAACmG;IACnB,CAAC,CAAC,EACFnG,SAAS,CAACkG,KAAK,CAAC;MACdjF,IAAI,EAAEjB,SAAS,CAACmG,MAAM;MACtBlE,IAAI,EAAEjC,SAAS,CAACmG,MAAM;MACtBzE,OAAO,EAAE1B,SAAS,CAACoG,IAAI;MACvB;MACAlE,IAAI,EAAElC,SAAS,CAACwG,KAAK,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;MAC3C;MACArE,SAAS,EAAEnC,SAAS,CAACmG;IACvB,CAAC,CAAC,EACFnG,SAAS,CAACkG,KAAK,CAAC;MACdjF,IAAI,EAAEjB,SAAS,CAACmG,MAAM;MACtB5E,SAAS,EAAEvB,SAAS,CAACsG,OAAO,CAACtG,SAAS,CAACkG,KAAK,CAAC5F,YAAY,CAACwF,SAAS,CAAC,CAAC;MACrEtE,cAAc,EAAExB,SAAS,CAACmG,MAAM;MAChC/E,KAAK,EAAEpB,SAAS,CAACmG,MAAM;MACvB1E,MAAM,EAAEzB,SAAS,CAACmG,MAAM;MACxBzE,OAAO,EAAE1B,SAAS,CAACoG;IACrB,CAAC,CAAC,CACH,CACH,CAAC;IACDzD,WAAW,EAAE3C,SAAS,CAACmG;EACzB,CAAC,CACH,CAAC;EACDjD,MAAM,EAAED,WAAW,CAAC6C,SAAS,CAAC5C;AAChC,CAAC;AAED,eAAemB,aAAa","ignoreList":[]}
@@ -1,5 +1,6 @@
1
1
  @value colors: "../../variables/colors.css";
2
2
  @value breakpoints: "../../variables/breakpoints.css";
3
+ @value cm_positive_100, cm_positive_200, cm_negative_100, cm_negative_200 from colors;
3
4
  @value cm_primary_blue from colors;
4
5
  @value cm_grey_50 from colors;
5
6
  @value cm_grey_300 from colors;
@@ -32,6 +33,12 @@
32
33
  height: calc(100% - 90px);
33
34
  }
34
35
 
36
+ .inline {
37
+ font-family: Gilroy;
38
+ width: 100%;
39
+ overflow-wrap: anywhere;
40
+ }
41
+
35
42
  .unsaved {
36
43
  color: cm_yellow_200;
37
44
  }
@@ -128,7 +135,8 @@
128
135
  text-align: center;
129
136
  }
130
137
 
131
- .container ul {
138
+ .container ul,
139
+ .inline ul {
132
140
  list-style: none;
133
141
  padding: 0px;
134
142
  margin: 0px;
@@ -242,3 +250,48 @@
242
250
  max-height: 500px;
243
251
  }
244
252
  }
253
+
254
+ .diffLine {
255
+ display: flex;
256
+ align-items: baseline;
257
+ gap: 12px;
258
+ margin: 4px 0 0;
259
+ padding: 4px 8px;
260
+ border-radius: 4px;
261
+ font-size: 14px;
262
+ font-weight: bold;
263
+ }
264
+
265
+ .added {
266
+ background-color: color(cm_positive_100 a(15%));
267
+ }
268
+
269
+ .removed {
270
+ background-color: color(cm_negative_100 a(12%));
271
+ }
272
+
273
+ .diffMarker {
274
+ min-width: 10px;
275
+ font-weight: bold;
276
+ }
277
+
278
+ .added .diffMarker {
279
+ color: cm_positive_200;
280
+ }
281
+
282
+ .removed .diffMarker {
283
+ color: cm_negative_200;
284
+ }
285
+
286
+ .diffText {
287
+ min-width: 0;
288
+ }
289
+
290
+ .visuallyHidden {
291
+ position: absolute;
292
+ width: 1px;
293
+ height: 1px;
294
+ overflow: hidden;
295
+ clip: rect(0 0 0 0);
296
+ white-space: nowrap;
297
+ }
@@ -85,6 +85,11 @@ declare namespace BrandLearningPriorities {
85
85
  size: PropTypes.Requireable<number>;
86
86
  wrapperSize: PropTypes.Requireable<number>;
87
87
  }>>;
88
+ imageOverlay: PropTypes.Requireable<string>;
89
+ contentBadge: PropTypes.Requireable<PropTypes.InferProps<{
90
+ category: PropTypes.Requireable<string>;
91
+ label: PropTypes.Requireable<string>;
92
+ }>>;
88
93
  image: PropTypes.Requireable<string>;
89
94
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
90
95
  value: PropTypes.Requireable<string>;
@@ -102,6 +107,7 @@ declare namespace BrandLearningPriorities {
102
107
  customStyle: PropTypes.Requireable<{
103
108
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
104
109
  }>;
110
+ className: PropTypes.Requireable<string>;
105
111
  }>>;
106
112
  }> | PropTypes.InferProps<{
107
113
  title: PropTypes.Validator<string>;
@@ -26,6 +26,12 @@ declare namespace BrandTable {
26
26
  const rows: PropTypes.Requireable<(PropTypes.InferProps<{
27
27
  fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
28
28
  icon: PropTypes.Requireable<string>;
29
+ title: PropTypes.Requireable<string>;
30
+ text: PropTypes.Requireable<string>;
31
+ tags: PropTypes.Requireable<(PropTypes.InferProps<{
32
+ status: PropTypes.Requireable<string>;
33
+ label: PropTypes.Validator<string>;
34
+ }> | null | undefined)[]>;
29
35
  }> | null | undefined> | null | undefined)[]>;
30
36
  editHref: PropTypes.Requireable<string>;
31
37
  highlighted: PropTypes.Requireable<boolean>;
@@ -34,6 +40,8 @@ declare namespace BrandTable {
34
40
  title: PropTypes.Validator<string>;
35
41
  info: PropTypes.Requireable<string>;
36
42
  filtered: PropTypes.Requireable<boolean>;
43
+ order: PropTypes.Requireable<string>;
44
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
37
45
  options: PropTypes.Requireable<(PropTypes.InferProps<{
38
46
  title: PropTypes.Validator<string>;
39
47
  onChange: PropTypes.Validator<(...args: any[]) => any>;
@@ -0,0 +1,95 @@
1
+ /// <reference types="react" />
2
+ import { ContentPropsType } from './types';
3
+ export declare const buildButtonProps: (button: {
4
+ label: string;
5
+ onClick?: () => void;
6
+ disabled?: boolean;
7
+ }) => {
8
+ type: string;
9
+ 'aria-label': string;
10
+ 'data-name': string;
11
+ hoverBackgroundColor: "#D6E6FF";
12
+ hoverColor: "#0061FF";
13
+ icon: {
14
+ position: string;
15
+ faIcon: {
16
+ name: string;
17
+ color: "#0061FF";
18
+ size: number;
19
+ customStyle: {
20
+ padding: number;
21
+ };
22
+ };
23
+ };
24
+ customStyle: {
25
+ width: string;
26
+ backgroundColor: "#f1f6fe";
27
+ color: "#0061FF";
28
+ borderRadius: string;
29
+ fontWeight: number;
30
+ };
31
+ label: string;
32
+ onClick?: (() => void) | undefined;
33
+ disabled?: boolean | undefined;
34
+ };
35
+ declare const ContentSelectionList: {
36
+ ({ title, subtitle, button, list: { title: listTitle, items, search, emptyResult }, actionButtons, checkboxWithTitle: checkboxWithTitleProps, readOnly, isFetching, error, hiddenLabel }: ContentPropsType): JSX.Element;
37
+ propTypes: {
38
+ title: import("prop-types").Validator<string>;
39
+ subtitle: import("prop-types").Requireable<string>;
40
+ button: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
41
+ label: import("prop-types").Validator<string>;
42
+ onClick: import("prop-types").Validator<(...args: any[]) => any>;
43
+ }>>>;
44
+ list: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
45
+ title: import("prop-types").Requireable<string>;
46
+ items: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
47
+ hidden: import("prop-types").Requireable<boolean>;
48
+ hint: import("prop-types").Requireable<string>;
49
+ ref: import("prop-types").Validator<string>;
50
+ title: import("prop-types").Validator<string>;
51
+ subtitle: import("prop-types").Validator<string>;
52
+ image: import("prop-types").Validator<string>;
53
+ tags: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
54
+ label: import("prop-types").Validator<string>;
55
+ iconName: import("prop-types").Validator<string>;
56
+ }>>>;
57
+ checkbox: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
58
+ checked: import("prop-types").Validator<boolean>;
59
+ onChange: import("prop-types").Validator<(...args: any[]) => any>;
60
+ }>>>;
61
+ deleteButton: import("prop-types").Requireable<import("prop-types").InferProps<{
62
+ label: import("prop-types").Requireable<string>;
63
+ 'aria-label': import("prop-types").Requireable<string>;
64
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
65
+ }>>;
66
+ }>>[]>;
67
+ search: import("prop-types").Requireable<import("prop-types").InferProps<{
68
+ value: import("prop-types").Validator<string>;
69
+ placeholder: import("prop-types").Validator<string>;
70
+ onChange: import("prop-types").Validator<(...args: any[]) => any>;
71
+ }>>;
72
+ emptyResult: import("prop-types").Requireable<import("prop-types").InferProps<{
73
+ title: import("prop-types").Validator<string>;
74
+ description: import("prop-types").Validator<string>;
75
+ }>>;
76
+ checkbox: import("prop-types").Requireable<import("prop-types").InferProps<{
77
+ title: import("prop-types").Validator<string>;
78
+ checked: import("prop-types").Validator<boolean>;
79
+ onChange: import("prop-types").Validator<(...args: any[]) => any>;
80
+ }>>;
81
+ }>>>;
82
+ error: import("prop-types").Requireable<string>;
83
+ hiddenLabel: import("prop-types").Requireable<string>;
84
+ isFetching: import("prop-types").Requireable<boolean>;
85
+ actionButtons: import("prop-types").Requireable<(object | null | undefined)[]>;
86
+ checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
87
+ title: import("prop-types").Requireable<string>;
88
+ checked: import("prop-types").Requireable<boolean>;
89
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
90
+ }>>;
91
+ readOnly: import("prop-types").Requireable<boolean>;
92
+ };
93
+ };
94
+ export default ContentSelectionList;
95
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-selection-list/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAC,gBAAgB,EAAqD,MAAM,SAAS,CAAC;AAE7F,eAAO,MAAM,gBAAgB,WAAY;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;;;;;;;;;;;;;;;;;;;;;;;WAHQ,MAAM;qBACG,IAAI;;CAyBpB,CAAC;AA+DH,QAAA,MAAM,oBAAoB;8LAWvB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiElB,CAAC;AAIF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,175 @@
1
+ import _map from "lodash/fp/map";
2
+ import _isEmpty from "lodash/fp/isEmpty";
3
+ import React from 'react';
4
+ import classnames from 'classnames';
5
+ import ListItems from '../list-items';
6
+ import Title from '../../atom/title';
7
+ import Notification from '../../atom/notification';
8
+ import { COLORS } from '../../variables/colors';
9
+ import { contentContainer } from '../skill-edition/styles';
10
+ import style from './style.css';
11
+ import { ContentSelectionListPropTypes } from './types';
12
+ export const buildButtonProps = button => ({
13
+ ...button,
14
+ type: 'primary',
15
+ 'aria-label': button.label,
16
+ 'data-name': `button-${button.label}`,
17
+ hoverBackgroundColor: COLORS.primary_100,
18
+ hoverColor: COLORS.cm_primary_blue,
19
+ icon: {
20
+ position: 'left',
21
+ faIcon: {
22
+ name: 'plus',
23
+ color: COLORS.cm_primary_blue,
24
+ size: 14,
25
+ customStyle: {
26
+ padding: 0
27
+ }
28
+ }
29
+ },
30
+ customStyle: {
31
+ width: 'fit-content',
32
+ backgroundColor: COLORS.cm_blue_50,
33
+ color: COLORS.cm_primary_blue,
34
+ borderRadius: '12px',
35
+ fontWeight: 600
36
+ }
37
+ });
38
+ const buildContentItem = (readOnly, hiddenLabel) => ({
39
+ ref,
40
+ title,
41
+ subtitle,
42
+ image,
43
+ tags: {
44
+ label,
45
+ iconName
46
+ },
47
+ checkbox,
48
+ deleteButton,
49
+ hidden,
50
+ hint
51
+ }) => {
52
+ return {
53
+ ...(readOnly ? {} : {
54
+ secondButtonLink: {
55
+ ...deleteButton,
56
+ 'data-name': `button-${deleteButton?.label}`,
57
+ type: 'primary',
58
+ customStyle: {
59
+ width: 'fit-content',
60
+ backgroundColor: 'transparent'
61
+ },
62
+ hoverBackgroundColor: COLORS.cm_grey_100,
63
+ icon: {
64
+ position: 'left',
65
+ faIcon: {
66
+ name: 'trash',
67
+ color: COLORS.neutral_500,
68
+ size: 16
69
+ }
70
+ }
71
+ }
72
+ }),
73
+ imageOverlay: hidden ? 'hidden' : undefined,
74
+ contentBadge: hidden ? {
75
+ category: 'hidden',
76
+ label: hiddenLabel
77
+ } : undefined,
78
+ details: hint,
79
+ id: ref,
80
+ title,
81
+ subtitle,
82
+ image,
83
+ tags: [{
84
+ label,
85
+ type: 'default',
86
+ icon: {
87
+ iconName,
88
+ preset: 's',
89
+ customStyle: {
90
+ padding: 0
91
+ },
92
+ position: 'left'
93
+ }
94
+ }],
95
+ checkbox: readOnly ? undefined : checkbox
96
+ };
97
+ };
98
+ const ContentSelectionList = ({
99
+ title,
100
+ subtitle,
101
+ button,
102
+ list: {
103
+ title: listTitle,
104
+ items,
105
+ search,
106
+ emptyResult
107
+ },
108
+ actionButtons,
109
+ checkboxWithTitle: checkboxWithTitleProps,
110
+ readOnly = false,
111
+ isFetching = false,
112
+ error,
113
+ hiddenLabel
114
+ }) => {
115
+ const buttonProps = buildButtonProps(button);
116
+ const titleProps = {
117
+ type: 'form-group',
118
+ title,
119
+ subtitle,
120
+ button: !readOnly ? buttonProps : undefined,
121
+ required: true
122
+ };
123
+ const listProps = {
124
+ title: listTitle,
125
+ 'aria-label': 'content list items',
126
+ content: {
127
+ ...(!_isEmpty(emptyResult) && {
128
+ emptyResult: {
129
+ ...emptyResult,
130
+ button: buttonProps
131
+ }
132
+ }),
133
+ items: _map(buildContentItem(readOnly, hiddenLabel), items),
134
+ type: 'list'
135
+ },
136
+ search: search ? {
137
+ ...search,
138
+ theme: 'coorpmanager',
139
+ // Keep search interactive even in readOnly mode
140
+ disabled: false
141
+ } : undefined,
142
+ actionButtons: readOnly ? [] : _map(actionButton => ({
143
+ ...actionButton,
144
+ customStyle: {
145
+ fontWeight: '600',
146
+ borderRadius: '12px',
147
+ width: 'auto'
148
+ }
149
+ }), actionButtons),
150
+ checkboxWithTitle: readOnly ? undefined : {
151
+ ...checkboxWithTitleProps,
152
+ name: checkboxWithTitleProps?.title,
153
+ 'aria-label': checkboxWithTitleProps?.title,
154
+ 'data-name': checkboxWithTitleProps?.title,
155
+ className: style.checkboxWithTitle,
156
+ icon: {
157
+ iconName: 'minus',
158
+ iconColor: 'white',
159
+ preset: 's'
160
+ }
161
+ },
162
+ isFetching
163
+ };
164
+ return /*#__PURE__*/React.createElement("div", {
165
+ className: classnames(contentContainer, style.list)
166
+ }, /*#__PURE__*/React.createElement(Title, titleProps), error ? /*#__PURE__*/React.createElement("div", {
167
+ role: "alert"
168
+ }, /*#__PURE__*/React.createElement(Notification, {
169
+ type: "error",
170
+ message: error
171
+ })) : null, /*#__PURE__*/React.createElement(ListItems, listProps));
172
+ };
173
+ ContentSelectionList.propTypes = process.env.NODE_ENV !== "production" ? ContentSelectionListPropTypes : {};
174
+ export default ContentSelectionList;
175
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","classnames","ListItems","Title","Notification","COLORS","contentContainer","style","ContentSelectionListPropTypes","buildButtonProps","button","type","label","hoverBackgroundColor","primary_100","hoverColor","cm_primary_blue","icon","position","faIcon","name","color","size","customStyle","padding","width","backgroundColor","cm_blue_50","borderRadius","fontWeight","buildContentItem","readOnly","hiddenLabel","ref","title","subtitle","image","tags","iconName","checkbox","deleteButton","hidden","hint","secondButtonLink","cm_grey_100","neutral_500","imageOverlay","undefined","contentBadge","category","details","id","preset","ContentSelectionList","list","listTitle","items","search","emptyResult","actionButtons","checkboxWithTitle","checkboxWithTitleProps","isFetching","error","buttonProps","titleProps","required","listProps","content","_isEmpty","_map","theme","disabled","actionButton","className","iconColor","createElement","role","message","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/content-selection-list/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {isEmpty, map} from 'lodash/fp';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport Notification from '../../atom/notification';\nimport {COLORS} from '../../variables/colors';\nimport {contentContainer} from '../skill-edition/styles';\nimport style from './style.css';\nimport {ContentPropsType, ContentListItemType, ContentSelectionListPropTypes} from './types';\n\nexport const buildButtonProps = (button: {\n label: string;\n onClick?: () => void;\n disabled?: boolean;\n}) => ({\n ...button,\n type: 'primary',\n 'aria-label': button.label,\n 'data-name': `button-${button.label}`,\n hoverBackgroundColor: COLORS.primary_100,\n hoverColor: COLORS.cm_primary_blue,\n icon: {\n position: 'left',\n faIcon: {\n name: 'plus',\n color: COLORS.cm_primary_blue,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n width: 'fit-content',\n backgroundColor: COLORS.cm_blue_50,\n color: COLORS.cm_primary_blue,\n borderRadius: '12px',\n fontWeight: 600\n }\n});\n\nconst buildContentItem =\n (readOnly: boolean, hiddenLabel?: string) =>\n ({\n ref,\n title,\n subtitle,\n image,\n tags: {label, iconName},\n checkbox,\n deleteButton,\n hidden,\n hint\n }: ContentListItemType) => {\n return {\n ...(readOnly\n ? {}\n : {\n secondButtonLink: {\n ...deleteButton,\n 'data-name': `button-${deleteButton?.label}`,\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.neutral_500,\n size: 16\n }\n }\n }\n }),\n imageOverlay: hidden ? 'hidden' : undefined,\n contentBadge: hidden ? {category: 'hidden', label: hiddenLabel} : undefined,\n details: hint,\n id: ref,\n title,\n subtitle,\n image,\n tags: [\n {\n label,\n type: 'default',\n icon: {\n iconName,\n preset: 's',\n customStyle: {\n padding: 0\n },\n position: 'left'\n }\n }\n ],\n checkbox: readOnly ? undefined : checkbox\n };\n };\n\nconst ContentSelectionList = ({\n title,\n subtitle,\n button,\n list: {title: listTitle, items, search, emptyResult},\n actionButtons,\n checkboxWithTitle: checkboxWithTitleProps,\n readOnly = false,\n isFetching = false,\n error,\n hiddenLabel\n}: ContentPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const titleProps = {\n type: 'form-group',\n title,\n subtitle,\n button: !readOnly ? buttonProps : undefined,\n required: true\n };\n\n const listProps = {\n title: listTitle,\n 'aria-label': 'content list items',\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: buttonProps}}),\n items: map(buildContentItem(readOnly, hiddenLabel), items),\n type: 'list'\n },\n search: search\n ? {\n ...search,\n theme: 'coorpmanager',\n // Keep search interactive even in readOnly mode\n disabled: false\n }\n : undefined,\n actionButtons: readOnly\n ? []\n : map(\n actionButton => ({\n ...actionButton,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px',\n width: 'auto'\n }\n }),\n actionButtons\n ),\n\n checkboxWithTitle: readOnly\n ? undefined\n : {\n ...checkboxWithTitleProps,\n name: checkboxWithTitleProps?.title,\n 'aria-label': checkboxWithTitleProps?.title,\n 'data-name': checkboxWithTitleProps?.title,\n className: style.checkboxWithTitle,\n icon: {iconName: 'minus', iconColor: 'white', preset: 's'}\n },\n isFetching\n };\n\n return (\n <div className={classnames(contentContainer, style.list)}>\n <Title {...titleProps} />\n {error ? (\n <div role=\"alert\">\n <Notification type=\"error\" message={error} />\n </div>\n ) : null}\n <ListItems {...listProps} />\n </div>\n );\n};\n\nContentSelectionList.propTypes = ContentSelectionListPropTypes;\n\nexport default ContentSelectionList;\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AAEnC,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,YAAY,MAAM,yBAAyB;AAClD,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,SAAQC,gBAAgB,QAAO,yBAAyB;AACxD,OAAOC,KAAK,MAAM,aAAa;AAC/B,SAA+CC,6BAA6B,QAAO,SAAS;AAE5F,OAAO,MAAMC,gBAAgB,GAAIC,MAIhC,KAAM;EACL,GAAGA,MAAM;EACTC,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A,CAACxE,YAAY;IAACO,IAAI,EAAC,OAAO;IAACmE,OAAO,EAAEf;EAAM,CAAE,CACzC,CAAC,GACJ,IAAI,eACR/D,KAAA,CAAA4E,aAAA,CAAC1E,SAAS,EAAKiE,SAAY,CACxB,CAAC;AAEV,CAAC;AAEDd,oBAAoB,CAAC0B,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG1E,6BAA6B;AAE9D,eAAe6C,oBAAoB","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_grey_500 from colors;
3
+
4
+ .list .checkboxWithTitle {
5
+ font-weight: 600;
6
+ font-size: 16px;
7
+ color: cm_grey_500;
8
+ }