@coorpacademy/components 11.32.24-alpha.0 → 11.32.24

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 (189) hide show
  1. package/es/atom/button-link/index.d.ts +1 -0
  2. package/es/atom/button-link/index.d.ts.map +1 -1
  3. package/es/atom/button-link/index.js +4 -2
  4. package/es/atom/button-link/index.js.map +1 -1
  5. package/es/atom/button-link/types.d.ts +2 -0
  6. package/es/atom/button-link/types.d.ts.map +1 -1
  7. package/es/atom/button-link/types.js +1 -0
  8. package/es/atom/button-link/types.js.map +1 -1
  9. package/es/atom/circular-progress-bar/index.d.ts.map +1 -1
  10. package/es/atom/circular-progress-bar/index.js +2 -9
  11. package/es/atom/circular-progress-bar/index.js.map +1 -1
  12. package/es/atom/input-doublestep/index.d.ts +1 -0
  13. package/es/atom/input-doublestep/index.d.ts.map +1 -1
  14. package/es/atom/input-doublestep/index.js +38 -13
  15. package/es/atom/input-doublestep/index.js.map +1 -1
  16. package/es/atom/input-doublestep/style.css +7 -67
  17. package/es/atom/select/index.js +1 -1
  18. package/es/atom/select/index.js.map +1 -1
  19. package/es/molecule/base-modal/index.d.ts +1 -0
  20. package/es/molecule/base-modal/index.d.ts.map +1 -1
  21. package/es/molecule/base-modal/index.js +8 -6
  22. package/es/molecule/base-modal/index.js.map +1 -1
  23. package/es/molecule/brand-create-form/index.d.ts.map +1 -1
  24. package/es/molecule/brand-create-form/index.js +9 -4
  25. package/es/molecule/brand-create-form/index.js.map +1 -1
  26. package/es/molecule/brand-download-box/index.d.ts.map +1 -1
  27. package/es/molecule/brand-download-box/index.js +11 -6
  28. package/es/molecule/brand-download-box/index.js.map +1 -1
  29. package/es/molecule/brand-download-box/style.css +6 -5
  30. package/es/molecule/brand-form-group/index.d.ts.map +1 -1
  31. package/es/molecule/brand-form-group/index.js +12 -1
  32. package/es/molecule/brand-form-group/index.js.map +1 -1
  33. package/es/molecule/cm-popin/style.css +1 -1
  34. package/es/molecule/cm-popin/types.d.ts +3 -0
  35. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  36. package/es/molecule/discipline-associated-skills/index.js +1 -1
  37. package/es/molecule/discipline-associated-skills/index.js.map +1 -1
  38. package/es/molecule/draggable-list/index.d.ts +1 -0
  39. package/es/molecule/expandible-actionable-table/index.d.ts +1 -0
  40. package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  41. package/es/molecule/expandible-actionable-table/types.d.ts +1 -0
  42. package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  43. package/es/molecule/learning-priority-modal/index.d.ts.map +1 -1
  44. package/es/molecule/learning-priority-modal/index.js +8 -15
  45. package/es/molecule/learning-priority-modal/index.js.map +1 -1
  46. package/es/molecule/learning-priority-modal/style.css +0 -1
  47. package/es/molecule/learning-priority-setup-item/index.d.ts.map +1 -1
  48. package/es/molecule/learning-priority-setup-item/index.js +1 -1
  49. package/es/molecule/learning-priority-setup-item/index.js.map +1 -1
  50. package/es/molecule/setup-section/index.d.ts.map +1 -1
  51. package/es/molecule/setup-section/index.js +3 -1
  52. package/es/molecule/setup-section/index.js.map +1 -1
  53. package/es/molecule/setup-section/style.css +2 -2
  54. package/es/molecule/skill-picker-modal/index.js +1 -1
  55. package/es/molecule/skill-picker-modal/index.js.map +1 -1
  56. package/es/organism/brand-form/index.d.ts.map +1 -1
  57. package/es/organism/brand-form/index.js +24 -15
  58. package/es/organism/brand-form/index.js.map +1 -1
  59. package/es/organism/brand-learning-priorities/index.d.ts +1 -21
  60. package/es/organism/brand-learning-priorities/index.d.ts.map +1 -1
  61. package/es/organism/brand-learning-priorities/index.js +1 -14
  62. package/es/organism/brand-learning-priorities/index.js.map +1 -1
  63. package/es/organism/brand-learning-priorities/style.css +2 -0
  64. package/es/organism/list-item/index.d.ts +3 -1
  65. package/es/organism/list-item/index.d.ts.map +1 -1
  66. package/es/organism/list-item/index.js +7 -5
  67. package/es/organism/list-item/index.js.map +1 -1
  68. package/es/organism/list-items/index.d.ts +3 -0
  69. package/es/organism/setup-header/index.d.ts +4 -0
  70. package/es/organism/wizard-contents/index.d.ts +3 -0
  71. package/es/template/app-player/loading/index.d.ts +3 -0
  72. package/es/template/app-player/player/index.d.ts +6 -0
  73. package/es/template/app-player/player/slides/index.d.ts +3 -0
  74. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  75. package/es/template/app-player/popin-correction/index.d.ts +3 -0
  76. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  77. package/es/template/app-player/popin-end/index.d.ts +3 -0
  78. package/es/template/app-review/index.d.ts +3 -0
  79. package/es/template/app-review/index.d.ts.map +1 -1
  80. package/es/template/app-review/player/prop-types.d.ts +3 -0
  81. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  82. package/es/template/app-review/prop-types.d.ts +3 -0
  83. package/es/template/app-review/prop-types.d.ts.map +1 -1
  84. package/es/template/back-office/brand-create/index.d.ts +4 -0
  85. package/es/template/back-office/brand-create/index.d.ts.map +1 -1
  86. package/es/template/back-office/brand-list/index.d.ts +4 -0
  87. package/es/template/back-office/brand-list/index.d.ts.map +1 -1
  88. package/es/template/back-office/brand-update/index.d.ts +14 -0
  89. package/es/template/back-office/dashboard-preview/index.d.ts +4 -0
  90. package/es/template/back-office/layout/index.d.ts +4 -0
  91. package/es/template/back-office/layout/index.d.ts.map +1 -1
  92. package/es/template/common/dashboard/index.d.ts +6 -0
  93. package/es/template/common/search-page/index.d.ts +3 -0
  94. package/es/template/external-course/index.d.ts +3 -0
  95. package/lib/atom/button-link/index.d.ts +1 -0
  96. package/lib/atom/button-link/index.d.ts.map +1 -1
  97. package/lib/atom/button-link/index.js +4 -2
  98. package/lib/atom/button-link/index.js.map +1 -1
  99. package/lib/atom/button-link/types.d.ts +2 -0
  100. package/lib/atom/button-link/types.d.ts.map +1 -1
  101. package/lib/atom/button-link/types.js +1 -0
  102. package/lib/atom/button-link/types.js.map +1 -1
  103. package/lib/atom/circular-progress-bar/index.d.ts.map +1 -1
  104. package/lib/atom/circular-progress-bar/index.js +1 -8
  105. package/lib/atom/circular-progress-bar/index.js.map +1 -1
  106. package/lib/atom/input-doublestep/index.d.ts +1 -0
  107. package/lib/atom/input-doublestep/index.d.ts.map +1 -1
  108. package/lib/atom/input-doublestep/index.js +39 -13
  109. package/lib/atom/input-doublestep/index.js.map +1 -1
  110. package/lib/atom/input-doublestep/style.css +7 -67
  111. package/lib/atom/select/index.js +1 -1
  112. package/lib/atom/select/index.js.map +1 -1
  113. package/lib/molecule/base-modal/index.d.ts +1 -0
  114. package/lib/molecule/base-modal/index.d.ts.map +1 -1
  115. package/lib/molecule/base-modal/index.js +8 -6
  116. package/lib/molecule/base-modal/index.js.map +1 -1
  117. package/lib/molecule/brand-create-form/index.d.ts.map +1 -1
  118. package/lib/molecule/brand-create-form/index.js +9 -4
  119. package/lib/molecule/brand-create-form/index.js.map +1 -1
  120. package/lib/molecule/brand-download-box/index.d.ts.map +1 -1
  121. package/lib/molecule/brand-download-box/index.js +11 -6
  122. package/lib/molecule/brand-download-box/index.js.map +1 -1
  123. package/lib/molecule/brand-download-box/style.css +6 -5
  124. package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
  125. package/lib/molecule/brand-form-group/index.js +12 -1
  126. package/lib/molecule/brand-form-group/index.js.map +1 -1
  127. package/lib/molecule/cm-popin/style.css +1 -1
  128. package/lib/molecule/cm-popin/types.d.ts +3 -0
  129. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  130. package/lib/molecule/discipline-associated-skills/index.js +1 -1
  131. package/lib/molecule/discipline-associated-skills/index.js.map +1 -1
  132. package/lib/molecule/draggable-list/index.d.ts +1 -0
  133. package/lib/molecule/expandible-actionable-table/index.d.ts +1 -0
  134. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  135. package/lib/molecule/expandible-actionable-table/types.d.ts +1 -0
  136. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  137. package/lib/molecule/learning-priority-modal/index.d.ts.map +1 -1
  138. package/lib/molecule/learning-priority-modal/index.js +9 -14
  139. package/lib/molecule/learning-priority-modal/index.js.map +1 -1
  140. package/lib/molecule/learning-priority-modal/style.css +0 -1
  141. package/lib/molecule/learning-priority-setup-item/index.d.ts.map +1 -1
  142. package/lib/molecule/learning-priority-setup-item/index.js +1 -1
  143. package/lib/molecule/learning-priority-setup-item/index.js.map +1 -1
  144. package/lib/molecule/setup-section/index.d.ts.map +1 -1
  145. package/lib/molecule/setup-section/index.js +4 -1
  146. package/lib/molecule/setup-section/index.js.map +1 -1
  147. package/lib/molecule/setup-section/style.css +2 -2
  148. package/lib/molecule/skill-picker-modal/index.js +1 -1
  149. package/lib/molecule/skill-picker-modal/index.js.map +1 -1
  150. package/lib/organism/brand-form/index.d.ts.map +1 -1
  151. package/lib/organism/brand-form/index.js +24 -15
  152. package/lib/organism/brand-form/index.js.map +1 -1
  153. package/lib/organism/brand-learning-priorities/index.d.ts +1 -21
  154. package/lib/organism/brand-learning-priorities/index.d.ts.map +1 -1
  155. package/lib/organism/brand-learning-priorities/index.js +3 -15
  156. package/lib/organism/brand-learning-priorities/index.js.map +1 -1
  157. package/lib/organism/brand-learning-priorities/style.css +2 -0
  158. package/lib/organism/list-item/index.d.ts +3 -1
  159. package/lib/organism/list-item/index.d.ts.map +1 -1
  160. package/lib/organism/list-item/index.js +7 -5
  161. package/lib/organism/list-item/index.js.map +1 -1
  162. package/lib/organism/list-items/index.d.ts +3 -0
  163. package/lib/organism/setup-header/index.d.ts +4 -0
  164. package/lib/organism/wizard-contents/index.d.ts +3 -0
  165. package/lib/template/app-player/loading/index.d.ts +3 -0
  166. package/lib/template/app-player/player/index.d.ts +6 -0
  167. package/lib/template/app-player/player/slides/index.d.ts +3 -0
  168. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  169. package/lib/template/app-player/popin-correction/index.d.ts +3 -0
  170. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  171. package/lib/template/app-player/popin-end/index.d.ts +3 -0
  172. package/lib/template/app-review/index.d.ts +3 -0
  173. package/lib/template/app-review/index.d.ts.map +1 -1
  174. package/lib/template/app-review/player/prop-types.d.ts +3 -0
  175. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  176. package/lib/template/app-review/prop-types.d.ts +3 -0
  177. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  178. package/lib/template/back-office/brand-create/index.d.ts +4 -0
  179. package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
  180. package/lib/template/back-office/brand-list/index.d.ts +4 -0
  181. package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
  182. package/lib/template/back-office/brand-update/index.d.ts +14 -0
  183. package/lib/template/back-office/dashboard-preview/index.d.ts +4 -0
  184. package/lib/template/back-office/layout/index.d.ts +4 -0
  185. package/lib/template/back-office/layout/index.d.ts.map +1 -1
  186. package/lib/template/common/dashboard/index.d.ts +6 -0
  187. package/lib/template/common/search-page/index.d.ts +3 -0
  188. package/lib/template/external-course/index.d.ts +3 -0
  189. package/package.json +2 -2
@@ -31,7 +31,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
31
31
 
32
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
33
 
34
- const buildButtonSection = (onSubmit, submitValue, onReset, resetValue, tooltip, disabled, isModified, isPending, darkColor, theme, massiveBattleForm) => {
34
+ const buildButtonSection = (onSubmit, submitValue, onReset, resetValue, tooltip, disabled, isModified, isPending, massiveBattleForm) => {
35
35
  if (!onSubmit && !onReset) {
36
36
  return null;
37
37
  }
@@ -41,27 +41,36 @@ const buildButtonSection = (onSubmit, submitValue, onReset, resetValue, tooltip,
41
41
  "data-tip": tooltip.title,
42
42
  "data-for": "submitButton",
43
43
  className: massiveBattleForm ? _style.default.massiveBattleButton : _style.default.saveButton
44
- }, theme === 'coorpmanager' ? /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
44
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
45
45
  type: "primary",
46
46
  label: submitValue,
47
47
  disabled: disabledSubmit,
48
48
  "data-testid": "submit-button",
49
- buttonType: "submit",
50
- onClick: onSubmit
51
- }) : /*#__PURE__*/_react.default.createElement(_button.default, {
52
- type: "submit",
53
- disabled: disabledSubmit,
54
- submitValue: submitValue
49
+ usage: "submit",
50
+ onClick: onSubmit,
51
+ icon: {
52
+ position: 'left',
53
+ faIcon: {
54
+ name: 'circle-check',
55
+ color: '#FFFFFF',
56
+ size: 16
57
+ }
58
+ }
55
59
  })) : null;
56
- const cancelBackground = {
57
- backgroundColor: darkColor
58
- };
59
60
  const resetButton = onReset ? /*#__PURE__*/_react.default.createElement("div", {
60
61
  className: _style.default.resetButton
61
- }, /*#__PURE__*/_react.default.createElement(_button.default, {
62
- type: "reset",
63
- submitValue: resetValue,
64
- style: cancelBackground
62
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
63
+ usage: "reset",
64
+ label: resetValue,
65
+ "data-testid": "reset-button",
66
+ onClick: onReset,
67
+ icon: {
68
+ position: 'left',
69
+ faIcon: {
70
+ name: 'trash',
71
+ size: 16
72
+ }
73
+ }
65
74
  })) : null;
66
75
  return /*#__PURE__*/_react.default.createElement("div", {
67
76
  className: _style.default.buttons
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["buildButtonSection","onSubmit","submitValue","onReset","resetValue","tooltip","disabled","isModified","isPending","darkColor","theme","massiveBattleForm","disabledSubmit","submitButton","title","style","massiveBattleButton","saveButton","cancelBackground","backgroundColor","resetButton","buttons","BrandForm","props","context","groups","back","isLoading","skin","fields","type","backView","color","arrowBack","link","backDesc","desc","brandGroups","map","group","index","buttonSection","handleSubmit","useMemo","e","preventDefault","handleReset","loaderContainer","loader","form","contextTypes","Provider","childContextTypes","defaultProps","place","propTypes","PropTypes","arrayOf","shape","BrandFormGroup","isRequired","bool","func","Button","Link","children","href","string"],"sources":["../../../src/organism/brand-form/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport ButtonLink from '../../atom/button-link';\nimport Link from '../../atom/link';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst buildButtonSection = (\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n darkColor,\n theme,\n massiveBattleForm\n) => {\n if (!onSubmit && !onReset) {\n return null;\n }\n\n const disabledSubmit = disabled || isPending || !isModified;\n const submitButton = onSubmit ? (\n <div\n data-tip={tooltip.title}\n data-for=\"submitButton\"\n className={massiveBattleForm ? style.massiveBattleButton : style.saveButton}\n >\n {theme === 'coorpmanager' ? (\n <ButtonLink\n type=\"primary\"\n label={submitValue}\n disabled={disabledSubmit}\n data-testid=\"submit-button\"\n buttonType=\"submit\"\n onClick={onSubmit}\n />\n ) : (\n <Button type=\"submit\" disabled={disabledSubmit} submitValue={submitValue} />\n )}\n </div>\n ) : null;\n\n const cancelBackground = {backgroundColor: darkColor};\n\n const resetButton = onReset ? (\n <div className={style.resetButton}>\n <Button type=\"reset\" submitValue={resetValue} style={cancelBackground} />\n </div>\n ) : null;\n\n return (\n <div className={style.buttons}>\n {submitButton}\n {resetButton}\n </div>\n );\n};\nconst BrandForm = (props, context) => {\n const {\n groups,\n disabled,\n isModified,\n isPending,\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n back,\n tooltip,\n isLoading,\n theme\n } = props;\n const {skin} = context;\n const darkColor = get('common.dark', skin);\n const massiveBattleForm = groups[0]?.fields?.[0]?.type === 'titleAndInput';\n const backView = back ? (\n <p className={style.back}>\n <ArrowLeft style={{color: darkColor}} className={style.arrowBack} />\n <Link href={back.link} className={style.backDesc}>\n {back.desc}\n </Link>\n </p>\n ) : null;\n\n const brandGroups = groups.map((group, index) => {\n return (\n <div className={style.group} key={index}>\n <BrandFormGroup {...group} />\n </div>\n );\n });\n\n const buttonSection = buildButtonSection(\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n darkColor,\n theme,\n massiveBattleForm\n );\n\n const handleSubmit = useMemo(\n () => e => {\n e.preventDefault();\n return onSubmit(e);\n },\n [onSubmit]\n );\n\n const handleReset = useMemo(\n () => e => {\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n return (\n <div>\n {backView}\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <form onSubmit={handleSubmit} onReset={handleReset} className={style.form}>\n {brandGroups}\n {buttonSection}\n </form>\n )}\n </div>\n );\n};\n\nBrandForm.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nBrandForm.defaultProps = {\n tooltip: {\n title: '',\n place: 'top'\n }\n};\n\nBrandForm.propTypes = {\n groups: PropTypes.arrayOf(PropTypes.shape(BrandFormGroup.propTypes)).isRequired,\n disabled: PropTypes.bool,\n isModified: PropTypes.bool,\n isPending: PropTypes.bool,\n onSubmit: PropTypes.func,\n submitValue: Button.propTypes.submitValue,\n onReset: PropTypes.func,\n resetValue: Button.propTypes.submitValue,\n back: PropTypes.shape({\n desc: Link.propTypes.children,\n link: Link.propTypes.href\n }),\n tooltip: PropTypes.shape({\n title: PropTypes.string,\n place: PropTypes.string\n }),\n isLoading: PropTypes.bool,\n theme: PropTypes.string\n};\n\nexport default BrandForm;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CACzBC,QADyB,EAEzBC,WAFyB,EAGzBC,OAHyB,EAIzBC,UAJyB,EAKzBC,OALyB,EAMzBC,QANyB,EAOzBC,UAPyB,EAQzBC,SARyB,EASzBC,SATyB,EAUzBC,KAVyB,EAWzBC,iBAXyB,KA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IACpBtB,IAAI,EAAE4B,aAAA,CAAKT,SAAL,CAAeU,QADD;IAEpB/B,IAAI,EAAE8B,aAAA,CAAKT,SAAL,CAAeW;EAFD,CAAhB,CATc;EAapB7D,OAAO,EAAEmD,kBAAA,CAAUE,KAAV,CAAgB;IACvB5C,KAAK,EAAE0C,kBAAA,CAAUW,MADM;IAEvBb,KAAK,EAAEE,kBAAA,CAAUW;EAFM,CAAhB,CAbW;EAiBpBxC,SAAS,EAAE6B,kBAAA,CAAUK,IAjBD;EAkBpBnD,KAAK,EAAE8C,kBAAA,CAAUW;AAlBG,CAAtB;eAqBe7C,S"}
1
+ {"version":3,"file":"index.js","names":["buildButtonSection","onSubmit","submitValue","onReset","resetValue","tooltip","disabled","isModified","isPending","massiveBattleForm","disabledSubmit","submitButton","title","style","massiveBattleButton","saveButton","position","faIcon","name","color","size","resetButton","buttons","BrandForm","props","context","groups","back","isLoading","theme","skin","darkColor","fields","type","backView","arrowBack","link","backDesc","desc","brandGroups","map","group","index","buttonSection","handleSubmit","useMemo","e","preventDefault","handleReset","loaderContainer","loader","form","contextTypes","Provider","childContextTypes","defaultProps","place","propTypes","PropTypes","arrayOf","shape","BrandFormGroup","isRequired","bool","func","Button","Link","children","href","string"],"sources":["../../../src/organism/brand-form/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport ButtonLink from '../../atom/button-link';\nimport Link from '../../atom/link';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst buildButtonSection = (\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n massiveBattleForm\n) => {\n if (!onSubmit && !onReset) {\n return null;\n }\n\n const disabledSubmit = disabled || isPending || !isModified;\n const submitButton = onSubmit ? (\n <div\n data-tip={tooltip.title}\n data-for=\"submitButton\"\n className={massiveBattleForm ? style.massiveBattleButton : style.saveButton}\n >\n <ButtonLink\n type=\"primary\"\n label={submitValue}\n disabled={disabledSubmit}\n data-testid=\"submit-button\"\n usage=\"submit\"\n onClick={onSubmit}\n icon={{\n position: 'left',\n faIcon: {\n name: 'circle-check',\n color: '#FFFFFF',\n size: 16\n }\n }}\n />\n </div>\n ) : null;\n\n const resetButton = onReset ? (\n <div className={style.resetButton}>\n <ButtonLink\n usage=\"reset\"\n label={resetValue}\n data-testid=\"reset-button\"\n onClick={onReset}\n icon={{\n position: 'left',\n faIcon: {\n name: 'trash',\n size: 16\n }\n }}\n />\n </div>\n ) : null;\n\n return (\n <div className={style.buttons}>\n {submitButton}\n {resetButton}\n </div>\n );\n};\nconst BrandForm = (props, context) => {\n const {\n groups,\n disabled,\n isModified,\n isPending,\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n back,\n tooltip,\n isLoading,\n theme\n } = props;\n const {skin} = context;\n const darkColor = get('common.dark', skin);\n const massiveBattleForm = groups[0]?.fields?.[0]?.type === 'titleAndInput';\n const backView = back ? (\n <p className={style.back}>\n <ArrowLeft style={{color: darkColor}} className={style.arrowBack} />\n <Link href={back.link} className={style.backDesc}>\n {back.desc}\n </Link>\n </p>\n ) : null;\n\n const brandGroups = groups.map((group, index) => {\n return (\n <div className={style.group} key={index}>\n <BrandFormGroup {...group} />\n </div>\n );\n });\n\n const buttonSection = buildButtonSection(\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n darkColor,\n theme,\n massiveBattleForm\n );\n\n const handleSubmit = useMemo(\n () => e => {\n e.preventDefault();\n return onSubmit(e);\n },\n [onSubmit]\n );\n\n const handleReset = useMemo(\n () => e => {\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n return (\n <div>\n {backView}\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <form onSubmit={handleSubmit} onReset={handleReset} className={style.form}>\n {brandGroups}\n {buttonSection}\n </form>\n )}\n </div>\n );\n};\n\nBrandForm.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nBrandForm.defaultProps = {\n tooltip: {\n title: '',\n place: 'top'\n }\n};\n\nBrandForm.propTypes = {\n groups: PropTypes.arrayOf(PropTypes.shape(BrandFormGroup.propTypes)).isRequired,\n disabled: PropTypes.bool,\n isModified: PropTypes.bool,\n isPending: PropTypes.bool,\n onSubmit: PropTypes.func,\n submitValue: Button.propTypes.submitValue,\n onReset: PropTypes.func,\n resetValue: Button.propTypes.submitValue,\n back: PropTypes.shape({\n desc: Link.propTypes.children,\n link: Link.propTypes.href\n }),\n tooltip: PropTypes.shape({\n title: PropTypes.string,\n place: PropTypes.string\n }),\n isLoading: PropTypes.bool,\n theme: PropTypes.string\n};\n\nexport default BrandForm;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CACzBC,QADyB,EAEzBC,WAFyB,EAGzBC,OAHyB,EAIzBC,UAJyB,EAKzBC,OALyB,EAMzBC,QANyB,EAOzBC,UAPyB,EAQzBC,SARyB,EASzBC,iBATyB,KAUtB;EACH,IAAI,CAACR,QAAD,IAAa,CAACE,OAAlB,EAA2B;IACzB,OAAO,IAAP;EACD;;EAED,MAAMO,cAAc,GAAGJ,QAAQ,IAAIE,SAAZ,IAAyB,CAACD,UAAjD;EACA,MAAMI,YAAY,GAAGV,QAAQ,gBAC3B;IACE,YAAUI,OAAO,CAACO,KADpB;IAEE,YAAS,cAFX;IAGE,SAAS,EAAEH,iBAAiB,GAAGI,cAAA,CAAMC,mBAAT,GAA+BD,cAAA,CAAME;EAHnE,gBAKE,6BAAC,mBAAD;IACE,IAAI,EAAC,SADP;IAEE,KAAK,EAAEb,WAFT;IAGE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jBD;EAkBpBlC,KAAK,EAAE6B,kBAAA,CAAUW;AAlBG,CAAtB;eAqBe9C,S"}
@@ -2,27 +2,6 @@ export default BrandLearningPriorities;
2
2
  declare function BrandLearningPriorities(props: any, context: any): JSX.Element;
3
3
  declare namespace BrandLearningPriorities {
4
4
  namespace contextTypes {
5
- const skin: PropTypes.Requireable<PropTypes.InferProps<{
6
- common: PropTypes.Requireable<{
7
- [x: string]: any;
8
- }>;
9
- images: PropTypes.Requireable<PropTypes.InferProps<{
10
- 'logo-mobile': PropTypes.Requireable<any>;
11
- logo: PropTypes.Requireable<any>;
12
- 'logo-email': PropTypes.Requireable<any>;
13
- login: PropTypes.Requireable<any>;
14
- }>>;
15
- icons: PropTypes.Requireable<{
16
- [x: string]: any;
17
- }>;
18
- mod: PropTypes.Requireable<{
19
- [x: string]: any;
20
- }>;
21
- courses: PropTypes.Requireable<any[]>;
22
- texts: PropTypes.Requireable<{
23
- [x: string]: any;
24
- }>;
25
- }>>;
26
5
  const translate: PropTypes.Requireable<(...args: any[]) => any>;
27
6
  }
28
7
  namespace propTypes {
@@ -84,6 +63,7 @@ declare namespace BrandLearningPriorities {
84
63
  title: PropTypes.Validator<string>;
85
64
  subtitle: PropTypes.Requireable<string>;
86
65
  selected: PropTypes.Requireable<boolean>;
66
+ selectedColor: PropTypes.Requireable<string>;
87
67
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
88
68
  label: PropTypes.Requireable<string>;
89
69
  type: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/brand-learning-priorities/index.js"],"names":[],"mappings":";AAYA,gFAiGC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/brand-learning-priorities/index.js"],"names":[],"mappings":";AAUA,gFA2FC"}
@@ -3,14 +3,10 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
 
6
- var _get2 = _interopRequireDefault(require("lodash/fp/get"));
7
-
8
6
  var _react = _interopRequireWildcard(require("react"));
9
7
 
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
9
 
12
- var _cssColorFunction = require("css-color-function");
13
-
14
10
  var _provider = _interopRequireDefault(require("../../atom/provider"));
15
11
 
16
12
  var _loader = _interopRequireDefault(require("../../atom/loader"));
@@ -25,12 +21,12 @@ var _learningPriorityModal = _interopRequireDefault(require("../../molecule/lear
25
21
 
26
22
  var _style = _interopRequireDefault(require("./style.css"));
27
23
 
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+
28
26
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
27
 
30
28
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
29
 
32
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
-
34
30
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
35
31
 
36
32
  const BrandLearningPriorities = (props, context) => {
@@ -49,10 +45,8 @@ const BrandLearningPriorities = (props, context) => {
49
45
  const [itemList, setItemList] = (0, _react.useState)([...items]);
50
46
  const [openModal, setOpenModal] = (0, _react.useState)(false);
51
47
  const {
52
- skin,
53
48
  translate
54
49
  } = context;
55
- const primarySkinColor = (0, _get2.default)('common.primary', skin);
56
50
  const selectedPriorities = (0, _react.useMemo)(() => items.map(priority => priority.priorityRef), [items]);
57
51
  const handleDropItem = (0, _react.useCallback)((dragRef, dropRef) => {
58
52
  const dragIndex = itemList.findIndex(item => item.priorityRef === dragRef);
@@ -100,14 +94,10 @@ const BrandLearningPriorities = (props, context) => {
100
94
  }, /*#__PURE__*/_react.default.createElement("div", {
101
95
  className: _style.default.priorityCount
102
96
  }, `${items.length} ${translate('items')}`), /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
97
+ type: "primary",
103
98
  customStyle: {
104
- backgroundColor: primarySkinColor,
105
- color: '#FFFFFF',
106
- transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',
107
99
  width: 'fit-content'
108
100
  },
109
- hoverBackgroundColor: (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
110
- hoverColor: primarySkinColor,
111
101
  onClick: handleOpenModal,
112
102
  label: translate('add_learning_priority'),
113
103
  "data-name": "add-learning-priority",
@@ -115,7 +105,6 @@ const BrandLearningPriorities = (props, context) => {
115
105
  position: 'left',
116
106
  faIcon: {
117
107
  name: 'plus',
118
- backgroundColor: primarySkinColor,
119
108
  color: '#FFFFFF',
120
109
  size: 16
121
110
  }
@@ -128,7 +117,6 @@ const BrandLearningPriorities = (props, context) => {
128
117
  };
129
118
 
130
119
  BrandLearningPriorities.contextTypes = {
131
- skin: _provider.default.childContextTypes.skin,
132
120
  translate: _provider.default.childContextTypes.translate
133
121
  };
134
122
  BrandLearningPriorities.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["BrandLearningPriorities","props","context","content","priorities","filters","isLoading","onAdd","items","onDrop","itemType","itemList","setItemList","useState","openModal","setOpenModal","skin","translate","primarySkinColor","selectedPriorities","useMemo","map","priority","priorityRef","handleDropItem","useCallback","dragRef","dropRef","dragIndex","findIndex","item","dropIndex","newItems","dragItem","splice","type","ref","Loading","style","loaderContainer","loader","useEffect","handleOpenModal","handleCloseModal","container","LPtitle","LPdescription","ctaWrapper","priorityCount","length","backgroundColor","color","transition","width","convert","position","faIcon","name","size","contextTypes","Provider","childContextTypes","propTypes","PropTypes","shape","DraggableList","arrayOf","string","title","courses","number","SelectOptionPropTypes","count","bool","func"],"sources":["../../../src/organism/brand-learning-priorities/index.js"],"sourcesContent":["import React, {useState, useCallback, useMemo, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport {convert} from 'css-color-function';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Loader from '../../atom/loader';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport DraggableList from '../../molecule/draggable-list';\nimport ButtonLink from '../../atom/button-link';\nimport LearningPriorityModal from '../../molecule/learning-priority-modal';\nimport style from './style.css';\n\nconst BrandLearningPriorities = (props, context) => {\n const {content, priorities, filters, isLoading, onAdd} = props;\n const {items, onDrop, itemType} = content;\n const [itemList, setItemList] = useState([...items]);\n const [openModal, setOpenModal] = useState(false);\n const {skin, translate} = context;\n const primarySkinColor = get('common.primary', skin);\n\n const selectedPriorities = useMemo(() => items.map(priority => priority.priorityRef), [items]);\n\n const handleDropItem = useCallback(\n (dragRef, dropRef) => {\n const dragIndex = itemList.findIndex(item => item.priorityRef === dragRef);\n const dropIndex = itemList.findIndex(item => item.priorityRef === dropRef);\n\n if (dragIndex === dropIndex) return;\n\n const newItems = [...itemList];\n const [dragItem] = newItems.splice(dragIndex, 1);\n newItems.splice(dropIndex, 0, dragItem);\n\n setItemList(newItems);\n onDrop(\n newItems.map(item => {\n return {type: item.type, ref: item.priorityRef};\n })\n );\n },\n [itemList, setItemList, onDrop]\n );\n\n const Loading = useCallback(\n () => (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ),\n []\n );\n\n useEffect(() => {\n setItemList(items);\n }, [items]);\n\n const handleOpenModal = useCallback(() => setOpenModal(true), [setOpenModal]);\n const handleCloseModal = useCallback(() => setOpenModal(false), [setOpenModal]);\n return (\n <div className={style.container}>\n <LearningPriorityModal\n isLoading={isLoading}\n isOpen={openModal}\n onCancel={handleCloseModal}\n onClose={handleCloseModal}\n onAdd={onAdd}\n priorities={priorities}\n filters={filters}\n preselected={selectedPriorities}\n />\n <div className={style.LPtitle}>{translate('learning_priorities')}</div>\n <div className={style.LPdescription}>\n {translate('learning_priorities_brand_description')}\n </div>\n\n {isLoading ? (\n <Loading />\n ) : (\n <>\n <div className={style.ctaWrapper}>\n <div className={style.priorityCount}>{`${items.length} ${translate('items')}`}</div>\n <ButtonLink\n customStyle={{\n backgroundColor: primarySkinColor,\n color: '#FFFFFF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',\n width: 'fit-content'\n }}\n hoverBackgroundColor={convert(`color(${primarySkinColor} a(0.07))`)}\n hoverColor={primarySkinColor}\n onClick={handleOpenModal}\n label={translate('add_learning_priority')}\n data-name=\"add-learning-priority\"\n icon={{\n position: 'left',\n faIcon: {\n name: 'plus',\n backgroundColor: primarySkinColor,\n color: '#FFFFFF',\n size: 16\n }\n }}\n />\n </div>\n <DraggableList itemType={itemType} items={itemList} onDrop={handleDropItem} />\n </>\n )}\n </div>\n );\n};\n\nBrandLearningPriorities.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nBrandLearningPriorities.propTypes = {\n content: PropTypes.shape(DraggableList.propTypes),\n priorities: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string,\n title: PropTypes.string,\n courses: PropTypes.number,\n type: PropTypes.string\n })\n ),\n filters: PropTypes.arrayOf(\n PropTypes.shape({\n ...SelectOptionP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2C,iBAAA,CAASC,iBAAT,CAA2B5C;AAFD,CAAvC;AAKAjB,uBAAuB,CAAC8D,SAAxB,2CAAoC;EAClC3D,OAAO,EAAE4D,kBAAA,CAAUC,KAAV,CAAgBC,sBAAA,CAAcH,SAA9B,CADyB;EAElC1D,UAAU,EAAE2D,kBAAA,CAAUG,OAAV,CACVH,kBAAA,CAAUC,KAAV,CAAgB;IACd5B,GAAG,EAAE2B,kBAAA,CAAUI,MADD;IAEdC,KAAK,EAAEL,kBAAA,CAAUI,MAFH;IAGdE,OAAO,EAAEN,kBAAA,CAAUO,MAHL;IAIdnC,IAAI,EAAE4B,kBAAA,CAAUI;EAJF,CAAhB,CADU,CAFsB;EAUlC9D,OAAO,EAAE0D,kBAAA,CAAUG,OAAV,CACPH,kBAAA,CAAUC,KAAV,cACKO,6BADL;IAEEC,KAAK,EAAET,kBAAA,CAAUO;EAFnB,GADO,CAVyB;EAgBlChE,SAAS,EAAEyD,kBAAA,CAAUU,IAhBa;EAiBlClE,KAAK,EAAEwD,kBAAA,CAAUW;AAjBiB,CAApC;eAoBe1E,uB"}
1
+ {"version":3,"file":"index.js","names":["BrandLearningPriorities","props","context","content","priorities","filters","isLoading","onAdd","items","onDrop","itemType","itemList","setItemList","useState","openModal","setOpenModal","translate","selectedPriorities","useMemo","map","priority","priorityRef","handleDropItem","useCallback","dragRef","dropRef","dragIndex","findIndex","item","dropIndex","newItems","dragItem","splice","type","ref","Loading","style","loaderContainer","loader","useEffect","handleOpenModal","handleCloseModal","container","LPtitle","LPdescription","ctaWrapper","priorityCount","length","width","position","faIcon","name","color","size","contextTypes","Provider","childContextTypes","propTypes","PropTypes","shape","DraggableList","arrayOf","string","title","courses","number","SelectOptionPropTypes","count","bool","func"],"sources":["../../../src/organism/brand-learning-priorities/index.js"],"sourcesContent":["import React, {useState, useCallback, useMemo, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport Provider from '../../atom/provider';\nimport Loader from '../../atom/loader';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport DraggableList from '../../molecule/draggable-list';\nimport ButtonLink from '../../atom/button-link';\nimport LearningPriorityModal from '../../molecule/learning-priority-modal';\nimport style from './style.css';\n\nconst BrandLearningPriorities = (props, context) => {\n const {content, priorities, filters, isLoading, onAdd} = props;\n const {items, onDrop, itemType} = content;\n const [itemList, setItemList] = useState([...items]);\n const [openModal, setOpenModal] = useState(false);\n const {translate} = context;\n\n const selectedPriorities = useMemo(() => items.map(priority => priority.priorityRef), [items]);\n\n const handleDropItem = useCallback(\n (dragRef, dropRef) => {\n const dragIndex = itemList.findIndex(item => item.priorityRef === dragRef);\n const dropIndex = itemList.findIndex(item => item.priorityRef === dropRef);\n\n if (dragIndex === dropIndex) return;\n\n const newItems = [...itemList];\n const [dragItem] = newItems.splice(dragIndex, 1);\n newItems.splice(dropIndex, 0, dragItem);\n\n setItemList(newItems);\n onDrop(\n newItems.map(item => {\n return {type: item.type, ref: item.priorityRef};\n })\n );\n },\n [itemList, setItemList, onDrop]\n );\n\n const Loading = useCallback(\n () => (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ),\n []\n );\n\n useEffect(() => {\n setItemList(items);\n }, [items]);\n\n const handleOpenModal = useCallback(() => setOpenModal(true), [setOpenModal]);\n const handleCloseModal = useCallback(() => setOpenModal(false), [setOpenModal]);\n return (\n <div className={style.container}>\n <LearningPriorityModal\n isLoading={isLoading}\n isOpen={openModal}\n onCancel={handleCloseModal}\n onClose={handleCloseModal}\n onAdd={onAdd}\n priorities={priorities}\n filters={filters}\n preselected={selectedPriorities}\n />\n <div className={style.LPtitle}>{translate('learning_priorities')}</div>\n <div className={style.LPdescription}>\n {translate('learning_priorities_brand_description')}\n </div>\n\n {isLoading ? (\n <Loading />\n ) : (\n <>\n <div className={style.ctaWrapper}>\n <div className={style.priorityCount}>{`${items.length} ${translate('items')}`}</div>\n <ButtonLink\n type=\"primary\"\n customStyle={{\n width: 'fit-content'\n }}\n onClick={handleOpenModal}\n label={translate('add_learning_priority')}\n data-name=\"add-learning-priority\"\n icon={{\n position: 'left',\n faIcon: {\n name: 'plus',\n color: '#FFFFFF',\n size: 16\n }\n }}\n />\n </div>\n <DraggableList itemType={itemType} items={itemList} onDrop={handleDropItem} />\n </>\n )}\n </div>\n );\n};\n\nBrandLearningPriorities.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nBrandLearningPriorities.propTypes = {\n content: PropTypes.shape(DraggableList.propTypes),\n priorities: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string,\n title: PropTypes.string,\n courses: PropTypes.number,\n type: PropTypes.string\n })\n ),\n filters: PropTypes.arrayOf(\n PropTypes.shape({\n ...SelectOptionPropTypes,\n count: PropTypes.number\n })\n ),\n isLoading: PropTypes.bool,\n onAdd: PropTypes.func\n};\n\nexport default BrandLearningPriorities;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,uBAAuB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAClD,MAAM;IAACC,OAAD;IAAUC,UAAV;IAAsBC,OAAtB;IAA+BC,SAA/B;IAA0CC;EAA1C,IAAmDN,KAAzD;EACA,MAAM;IAACO,KAAD;IAAQC,MAAR;IAAgBC;EAAhB,IAA4BP,OAAlC;EACA,MAAM,CAACQ,QAAD,EAAWC,WAAX,IAA0B,IAAAC,eAAA,EAAS,CAAC,GAAGL,KAAJ,CAAT,CAAhC;EACA,MAAM,CAACM,SAAD,EAAYC,YAAZ,IAA4B,IAAAF,eAAA,EAAS,KAAT,CAAlC;EACA,MAAM;IAACG;EAAD,IAAcd,OAApB;EAEA,MAAMe,kBAAkB,GAAG,IAAAC,cAAA,EAAQ,MAAMV,KAAK,CAACW,GAAN,CAAUC,QAAQ,IAAIA,QAAQ,CAACC,WAA/B,CAAd,EAA2D,CAACb,KAAD,CAA3D,CAA3B;EAEA,MAAMc,cAAc,GAA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AA5D,EArBF,CAnBJ,CADF;AA8CD,CA3FD;;AA6FAtB,uBAAuB,CAACsD,YAAxB,GAAuC;EACrCtC,SAAS,EAAEuC,iBAAA,CAASC,iBAAT,CAA2BxC;AADD,CAAvC;AAIAhB,uBAAuB,CAACyD,SAAxB,2CAAoC;EAClCtD,OAAO,EAAEuD,kBAAA,CAAUC,KAAV,CAAgBC,sBAAA,CAAcH,SAA9B,CADyB;EAElCrD,UAAU,EAAEsD,kBAAA,CAAUG,OAAV,CACVH,kBAAA,CAAUC,KAAV,CAAgB;IACdzB,GAAG,EAAEwB,kBAAA,CAAUI,MADD;IAEdC,KAAK,EAAEL,kBAAA,CAAUI,MAFH;IAGdE,OAAO,EAAEN,kBAAA,CAAUO,MAHL;IAIdhC,IAAI,EAAEyB,kBAAA,CAAUI;EAJF,CAAhB,CADU,CAFsB;EAUlCzD,OAAO,EAAEqD,kBAAA,CAAUG,OAAV,CACPH,kBAAA,CAAUC,KAAV,cACKO,6BADL;IAEEC,KAAK,EAAET,kBAAA,CAAUO;EAFnB,GADO,CAVyB;EAgBlC3D,SAAS,EAAEoD,kBAAA,CAAUU,IAhBa;EAiBlC7D,KAAK,EAAEmD,kBAAA,CAAUW;AAjBiB,CAApC;eAoBerE,uB"}
@@ -4,6 +4,7 @@
4
4
  .container {
5
5
  font-family: "Gilroy";
6
6
  font-style: normal;
7
+ margin-bottom: 48px;
7
8
  }
8
9
 
9
10
  .LPtitle {
@@ -38,6 +39,7 @@
38
39
  .ctaWrapper {
39
40
  display: flex;
40
41
  justify-content: space-between;
42
+ align-items: center;
41
43
  margin-bottom: 16px;
42
44
  }
43
45
 
@@ -1,11 +1,12 @@
1
1
  export default ListItem;
2
- declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, selected, subtitle, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick }: {
2
+ declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, selected, selectedColor, subtitle, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick }: {
3
3
  buttonLink: any;
4
4
  secondButtonLink: any;
5
5
  bulletPointMenuButton: any;
6
6
  tags: any;
7
7
  title: any;
8
8
  selected: any;
9
+ selectedColor: any;
9
10
  subtitle: any;
10
11
  dataColumns: any;
11
12
  order: any;
@@ -45,6 +46,7 @@ declare namespace ListItem {
45
46
  title: PropTypes.Validator<string>;
46
47
  subtitle: PropTypes.Requireable<string>;
47
48
  selected: PropTypes.Requireable<boolean>;
49
+ selectedColor: PropTypes.Requireable<string>;
48
50
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
49
51
  label: PropTypes.Requireable<string>;
50
52
  type: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAaA;;;;;;;;;;;;;;;;8BAuGC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAaA;;;;;;;;;;;;;;;;;8BAwGC"}
@@ -42,6 +42,7 @@ const ListItem = ({
42
42
  tags,
43
43
  title,
44
44
  selected,
45
+ selectedColor,
45
46
  subtitle,
46
47
  dataColumns,
47
48
  order,
@@ -55,7 +56,7 @@ const ListItem = ({
55
56
  const {
56
57
  skin
57
58
  } = context;
58
- const primarySkinColor = (0, _get2.default)('common.primary', skin);
59
+ const primarySelectedColor = selectedColor || (0, _get2.default)('common.primary', skin);
59
60
 
60
61
  const mapUncapped = _map2.default.convert({
61
62
  cap: false
@@ -63,11 +64,11 @@ const ListItem = ({
63
64
 
64
65
  let isPublished = false;
65
66
  const selectedStyle = selected ? {
66
- backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`)
67
+ backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySelectedColor} a(0.07))`)
67
68
  } : {};
68
69
  const tagSelectedStyle = selected ? {
69
- backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.15))`),
70
- color: primarySkinColor
70
+ backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySelectedColor} a(0.15))`),
71
+ color: primarySelectedColor
71
72
  } : {};
72
73
  const tagsView = mapUncapped((tag, index) => {
73
74
  isPublished = tag.type === 'success';
@@ -103,7 +104,7 @@ const ListItem = ({
103
104
  className: _style.default.settings
104
105
  }, tagsView, selected ? /*#__PURE__*/_react.default.createElement(_icon.default, {
105
106
  iconName: "circle-check",
106
- iconColor: primarySkinColor,
107
+ iconColor: primarySelectedColor,
107
108
  backgroundColor: '#ffffff',
108
109
  size: {
109
110
  faSize: 16,
@@ -120,6 +121,7 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
120
121
  title: _propTypes.default.string.isRequired,
121
122
  subtitle: _propTypes.default.string,
122
123
  selected: _propTypes.default.bool,
124
+ selectedColor: _propTypes.default.string,
123
125
  dataColumns: _propTypes.default.arrayOf(_propTypes.default.shape({
124
126
  label: _propTypes.default.string,
125
127
  type: _propTypes.default.oneOf(['success', 'failure', 'warning', 'progress', 'default']),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","selected","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","context","skin","primarySkinColor","mapUncapped","convert","cap","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","style","dataColumnsView","dataColumn","className","label","orderView","undefined","classnames","wrapper","gridLayout","withSubtitle","cursorPointer","dataColumnsWrapper","hiddenOverflowX","settings","faSize","wrapperSize","contextTypes","Provider","childContextTypes","translate","propTypes","PropTypes","string","isRequired","bool","arrayOf","shape","oneOf","dataName","icon","position","func","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, map, noop, get} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = (\n {\n buttonLink,\n secondButtonLink,\n bulletPointMenuButton,\n tags,\n title,\n selected,\n subtitle,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n disabled = false,\n contentType,\n isBulkStyle = false,\n isOverflowHidden = false,\n onClick = noop\n },\n context\n) => {\n const {skin} = context;\n const primarySkinColor = get('common.primary', skin);\n const mapUncapped = map.convert({cap: false});\n let isPublished = false;\n\n const selectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`)\n }\n : {};\n\n const tagSelectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySkinColor} a(0.15))`),\n color: primarySkinColor\n }\n : {};\n\n const tagsView = mapUncapped((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} customStyle={tagSelectedStyle} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = mapUncapped((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n return (\n <div\n className={classnames(\n style.wrapper,\n isBulkStyle && style.gridLayout,\n subtitle && style.withSubtitle,\n disabled && style.disabled,\n onClick !== noop && !disabled && style.cursorPointer\n )}\n onClick={!disabled ? onClick : undefined}\n style={selectedStyle}\n >\n <div\n className={classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)}\n >\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n {subtitle ? <div className={style.subtitle}>{subtitle}</div> : null}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {selected ? (\n <Icon\n iconName=\"circle-check\"\n iconColor={primarySkinColor}\n backgroundColor={'#ffffff'}\n size={{faSize: 16, wrapperSize: 16}}\n />\n ) : null}\n {buttonLink ? <ButtonLink {...buttonLink} /> : null}\n {secondButtonLink ? <ButtonLink {...secondButtonLink} /> : null}\n {!isEmpty(bulletPointMenuButton) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} />\n ) : null}\n </div>\n </div>\n );\n};\n\nListItem.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nListItem.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n selected: PropTypes.bool,\n dataColumns: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),\n className: PropTypes.oneOf(['cell', 'title'])\n })\n ),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n secondButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default'])\n })\n ),\n disabled: PropTypes.bool,\n onClick: PropTypes.func,\n isBulkStyle: PropTypes.bool,\n isOverflowHidden: PropTypes.bool,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAEA,MAAMA,QAAQ,GAAG,CACf;EACEC,UADF;EAEEC,gBAFF;EAGEC,qBAHF;EAIEC,IAJF;EAKEC,KALF;EAMEC,QANF;EAOEC,QAPF;EAQEC,WARF;EASEC,KATF;EAUE,cAAcC,SAVhB;EAWEC,QAAQ,GAAG,KAXb;EAYEC,WAZF;EAaEC,WAAW,GAAG,KAbhB;EAcEC,gBAAgB,GAAG,KAdrB;EAeEC,OAAO;AAfT,CADe,EAkBfC,OAlBe,KAmBZ;EACH,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAME,gBAAgB,GAAG,mBAAI,gBAAJ,EAAsBD,IAAtB,CAAzB;;EACA,MAAME,WAAW,GAAG,cAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,CAApB;;EACA,IAAIC,WAAW,GAAG,KAAlB;EAEA,MAAMC,aAAa,GAAGjB,QAAQ,GAC1B;IACEkB,eAAe,EAAE,IAAAJ,yBAAA,EAAS,SAAQF,gBAAiB,WAAlC;EADnB,CAD0B,GAI1B,EAJJ;EAMA,MAAMO,gBAAgB,GAAGnB,QAAQ,GAC7B;IACEkB,eAAe,EAAE,IAAAJ,yBAAA,EAAS,SAAQF,gBAAiB,WAAlC,CADnB;IAEEQ,KAAK,EAAER;EAFT,CAD6B,GAK7B,EALJ;EAOA,MAAMS,QAAQ,GAAGR,WAAW,CAAC,CAACS,GAAD,EAAMC,KAAN,KAAgB;IAC3CP,WAAW,GAAG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IAGrCY,OAAO,EAAEb,kBAAA,CAAUI,OAAV,CACPJ,kBAAA,CAAUK,KAAV,CAAgB;MACd,aAAaL,kBAAA,CAAUC,MADT;MAEdnB,KAAK,EAAEkB,kBAAA,CAAUC,MAFH;MAGdxB,IAAI,EAAEuB,kBAAA,CAAUC,MAHF;MAIdvC,OAAO,EAAEsC,kBAAA,CAAUU;IAJL,CAAhB,CADO,CAH4B;IAWrChD,OAAO,EAAEsC,kBAAA,CAAUU;EAXkB,CAAhB,CAjCJ;EA8CnB3D,IAAI,EAAEiD,kBAAA,CAAUI,OAAV,CACJJ,kBAAA,CAAUK,KAAV,CAAgB;IACdvB,KAAK,EAAEkB,kBAAA,CAAUC,MADH;IAEdxB,IAAI,EAAEuB,kBAAA,CAAUM,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,EAAuB,SAAvB,EAAkC,UAAlC,EAA8C,SAA9C,CAAhB;EAFQ,CAAhB,CADI,CA9Ca;EAoDnBhD,QAAQ,EAAE0C,kBAAA,CAAUG,IApDD;EAqDnBzC,OAAO,EAAEsC,kBAAA,CAAUU,IArDA;EAsDnBlD,WAAW,EAAEwC,kBAAA,CAAUG,IAtDJ;EAuDnB1C,gBAAgB,EAAEuC,kBAAA,CAAUG,IAvDT;EAwDnB/C,KAAK,EAAE4C,kBAAA,CAAUc,MAxDE;EAyDnB,cAAcd,kBAAA,CAAUC,MAzDL;EA0DnB1C,WAAW,EAAEyC,kBAAA,CAAUC,MA1DJ;EA2DnBc,EAAE,EAAEf,kBAAA,CAAUC;AA3DK,CAArB;eA8DetD,Q"}
1
+ {"version":3,"file":"index.js","names":["ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","selected","selectedColor","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","context","skin","primarySelectedColor","mapUncapped","convert","cap","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","style","dataColumnsView","dataColumn","className","label","orderView","undefined","classnames","wrapper","gridLayout","withSubtitle","cursorPointer","dataColumnsWrapper","hiddenOverflowX","settings","faSize","wrapperSize","contextTypes","Provider","childContextTypes","translate","propTypes","PropTypes","string","isRequired","bool","arrayOf","shape","oneOf","dataName","icon","position","func","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, map, noop, get} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = (\n {\n buttonLink,\n secondButtonLink,\n bulletPointMenuButton,\n tags,\n title,\n selected,\n selectedColor,\n subtitle,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n disabled = false,\n contentType,\n isBulkStyle = false,\n isOverflowHidden = false,\n onClick = noop\n },\n context\n) => {\n const {skin} = context;\n const primarySelectedColor = selectedColor || get('common.primary', skin);\n const mapUncapped = map.convert({cap: false});\n let isPublished = false;\n\n const selectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySelectedColor} a(0.07))`)\n }\n : {};\n\n const tagSelectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySelectedColor} a(0.15))`),\n color: primarySelectedColor\n }\n : {};\n\n const tagsView = mapUncapped((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} customStyle={tagSelectedStyle} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = mapUncapped((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n return (\n <div\n className={classnames(\n style.wrapper,\n isBulkStyle && style.gridLayout,\n subtitle && style.withSubtitle,\n disabled && style.disabled,\n onClick !== noop && !disabled && style.cursorPointer\n )}\n onClick={!disabled ? onClick : undefined}\n style={selectedStyle}\n >\n <div\n className={classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)}\n >\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n {subtitle ? <div className={style.subtitle}>{subtitle}</div> : null}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {selected ? (\n <Icon\n iconName=\"circle-check\"\n iconColor={primarySelectedColor}\n backgroundColor={'#ffffff'}\n size={{faSize: 16, wrapperSize: 16}}\n />\n ) : null}\n {buttonLink ? <ButtonLink {...buttonLink} /> : null}\n {secondButtonLink ? <ButtonLink {...secondButtonLink} /> : null}\n {!isEmpty(bulletPointMenuButton) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} />\n ) : null}\n </div>\n </div>\n );\n};\n\nListItem.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nListItem.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n selected: PropTypes.bool,\n selectedColor: PropTypes.string,\n dataColumns: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),\n className: PropTypes.oneOf(['cell', 'title'])\n })\n ),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n secondButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default'])\n })\n ),\n disabled: PropTypes.bool,\n onClick: PropTypes.func,\n isBulkStyle: PropTypes.bool,\n isOverflowHidden: PropTypes.bool,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAEA,MAAMA,QAAQ,GAAG,CACf;EACEC,UADF;EAEEC,gBAFF;EAGEC,qBAHF;EAIEC,IAJF;EAKEC,KALF;EAMEC,QANF;EAOEC,aAPF;EAQEC,QARF;EASEC,WATF;EAUEC,KAVF;EAWE,cAAcC,SAXhB;EAYEC,QAAQ,GAAG,KAZb;EAaEC,WAbF;EAcEC,WAAW,GAAG,KAdhB;EAeEC,gBAAgB,GAAG,KAfrB;EAgBEC,OAAO;AAhBT,CADe,EAmBfC,OAnBe,KAoBZ;EACH,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAME,oBAAoB,GAAGZ,aAAa,IAAI,mBAAI,gBAAJ,EAAsBW,IAAtB,CAA9C;;EACA,MAAME,WAAW,GAAG,cAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,CAApB;;EACA,IAAIC,WAAW,GAAG,KAAlB;EAEA,MAAMC,aAAa,GAAGlB,QAAQ,GAC1B;IACEmB,eAAe,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C,MA1DL;EA2DnB1C,WAAW,EAAEyC,kBAAA,CAAUC,MA3DJ;EA4DnBc,EAAE,EAAEf,kBAAA,CAAUC;AA5DK,CAArB;eA+DevD,Q"}
@@ -12,6 +12,7 @@ declare namespace ListItems {
12
12
  'aria-label': PropTypes.Requireable<string>;
13
13
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
14
14
  type: PropTypes.Requireable<string>;
15
+ usage: PropTypes.Requireable<string>;
15
16
  label: PropTypes.Requireable<string>;
16
17
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
18
  'aria-label': PropTypes.Requireable<string>;
@@ -56,6 +57,7 @@ declare namespace ListItems {
56
57
  title: PropTypes.Validator<string>;
57
58
  subtitle: PropTypes.Requireable<string>;
58
59
  selected: PropTypes.Requireable<boolean>;
60
+ selectedColor: PropTypes.Requireable<string>;
59
61
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
60
62
  label: PropTypes.Requireable<string>;
61
63
  type: PropTypes.Requireable<string>;
@@ -150,6 +152,7 @@ declare namespace ListItems {
150
152
  lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
151
153
  componentType: PropTypes.Requireable<string>;
152
154
  type: PropTypes.Requireable<string>;
155
+ usage: PropTypes.Requireable<string>;
153
156
  label: PropTypes.Requireable<string>;
154
157
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
155
158
  'aria-label': PropTypes.Requireable<string>;
@@ -5,6 +5,7 @@ declare namespace SetupHeader {
5
5
  const items: PropTypes.Requireable<PropTypes.InferProps<{
6
6
  seeMyPlatform: PropTypes.Requireable<PropTypes.InferProps<{
7
7
  type: PropTypes.Requireable<string>;
8
+ usage: PropTypes.Requireable<string>;
8
9
  label: PropTypes.Requireable<string>;
9
10
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
10
11
  'aria-label': PropTypes.Requireable<string>;
@@ -28,6 +29,7 @@ declare namespace SetupHeader {
28
29
  }>>;
29
30
  logOut: PropTypes.Requireable<PropTypes.InferProps<{
30
31
  type: PropTypes.Requireable<string>;
32
+ usage: PropTypes.Requireable<string>;
31
33
  label: PropTypes.Requireable<string>;
32
34
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
33
35
  'aria-label': PropTypes.Requireable<string>;
@@ -51,6 +53,7 @@ declare namespace SetupHeader {
51
53
  }>>;
52
54
  globalAnalytics: PropTypes.Requireable<PropTypes.InferProps<{
53
55
  type: PropTypes.Requireable<string>;
56
+ usage: PropTypes.Requireable<string>;
54
57
  label: PropTypes.Requireable<string>;
55
58
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
56
59
  'aria-label': PropTypes.Requireable<string>;
@@ -74,6 +77,7 @@ declare namespace SetupHeader {
74
77
  }>>;
75
78
  platformList: PropTypes.Requireable<PropTypes.InferProps<{
76
79
  type: PropTypes.Requireable<string>;
80
+ usage: PropTypes.Requireable<string>;
77
81
  label: PropTypes.Requireable<string>;
78
82
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
79
83
  'aria-label': PropTypes.Requireable<string>;
@@ -21,6 +21,7 @@ declare namespace WizardContents {
21
21
  }>>;
22
22
  firstButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
23
23
  type: PropTypes.Requireable<string>;
24
+ usage: PropTypes.Requireable<string>;
24
25
  label: PropTypes.Requireable<string>;
25
26
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
26
27
  'aria-label': PropTypes.Requireable<string>;
@@ -44,6 +45,7 @@ declare namespace WizardContents {
44
45
  }>>;
45
46
  secondButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
46
47
  type: PropTypes.Requireable<string>;
48
+ usage: PropTypes.Requireable<string>;
47
49
  label: PropTypes.Requireable<string>;
48
50
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
49
51
  'aria-label': PropTypes.Requireable<string>;
@@ -438,6 +440,7 @@ declare namespace WizardContents {
438
440
  lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
439
441
  componentType: PropTypes.Requireable<string>;
440
442
  type: PropTypes.Requireable<string>;
443
+ usage: PropTypes.Requireable<string>;
441
444
  label: PropTypes.Requireable<string>;
442
445
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
443
446
  'aria-label': PropTypes.Requireable<string>;
@@ -92,6 +92,7 @@ declare namespace PlayerLoading {
92
92
  'aria-label': PropTypes.Requireable<string>;
93
93
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
94
94
  type: PropTypes.Requireable<string>;
95
+ usage: PropTypes.Requireable<string>;
95
96
  label: PropTypes.Requireable<string>;
96
97
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
97
98
  'aria-label': PropTypes.Requireable<string>;
@@ -136,6 +137,7 @@ declare namespace PlayerLoading {
136
137
  title: PropTypes.Validator<string>;
137
138
  subtitle: PropTypes.Requireable<string>;
138
139
  selected: PropTypes.Requireable<boolean>;
140
+ selectedColor: PropTypes.Requireable<string>;
139
141
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
140
142
  label: PropTypes.Requireable<string>;
141
143
  type: PropTypes.Requireable<string>;
@@ -230,6 +232,7 @@ declare namespace PlayerLoading {
230
232
  lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
231
233
  componentType: PropTypes.Requireable<string>;
232
234
  type: PropTypes.Requireable<string>;
235
+ usage: PropTypes.Requireable<string>;
233
236
  label: PropTypes.Requireable<string>;
234
237
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
235
238
  'aria-label': PropTypes.Requireable<string>;
@@ -143,6 +143,7 @@ declare namespace SlidePlayer {
143
143
  'aria-label': PropTypes.Requireable<string>;
144
144
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
145
145
  type: PropTypes.Requireable<string>;
146
+ usage: PropTypes.Requireable<string>;
146
147
  label: PropTypes.Requireable<string>;
147
148
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
148
149
  'aria-label': PropTypes.Requireable<string>;
@@ -187,6 +188,7 @@ declare namespace SlidePlayer {
187
188
  title: PropTypes.Validator<string>;
188
189
  subtitle: PropTypes.Requireable<string>;
189
190
  selected: PropTypes.Requireable<boolean>;
191
+ selectedColor: PropTypes.Requireable<string>;
190
192
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
191
193
  label: PropTypes.Requireable<string>;
192
194
  type: PropTypes.Requireable<string>;
@@ -281,6 +283,7 @@ declare namespace SlidePlayer {
281
283
  lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
282
284
  componentType: PropTypes.Requireable<string>;
283
285
  type: PropTypes.Requireable<string>;
286
+ usage: PropTypes.Requireable<string>;
284
287
  label: PropTypes.Requireable<string>;
285
288
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
286
289
  'aria-label': PropTypes.Requireable<string>;
@@ -433,6 +436,7 @@ declare namespace SlidePlayer {
433
436
  'aria-label': PropTypes.Requireable<string>;
434
437
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
435
438
  type: PropTypes.Requireable<string>;
439
+ usage: PropTypes.Requireable<string>;
436
440
  label: PropTypes.Requireable<string>;
437
441
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
438
442
  'aria-label': PropTypes.Requireable<string>;
@@ -477,6 +481,7 @@ declare namespace SlidePlayer {
477
481
  title: PropTypes.Validator<string>;
478
482
  subtitle: PropTypes.Requireable<string>;
479
483
  selected: PropTypes.Requireable<boolean>;
484
+ selectedColor: PropTypes.Requireable<string>;
480
485
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
481
486
  label: PropTypes.Requireable<string>;
482
487
  type: PropTypes.Requireable<string>;
@@ -571,6 +576,7 @@ declare namespace SlidePlayer {
571
576
  lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
572
577
  componentType: PropTypes.Requireable<string>;
573
578
  type: PropTypes.Requireable<string>;
579
+ usage: PropTypes.Requireable<string>;
574
580
  label: PropTypes.Requireable<string>;
575
581
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
576
582
  'aria-label': PropTypes.Requireable<string>;
@@ -149,6 +149,7 @@ declare namespace SlidesPlayer {
149
149
  'aria-label': PropTypes.Requireable<string>;
150
150
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
151
151
  type: PropTypes.Requireable<string>;
152
+ usage: PropTypes.Requireable<string>;
152
153
  label: PropTypes.Requireable<string>;
153
154
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
154
155
  'aria-label': PropTypes.Requireable<string>;
@@ -193,6 +194,7 @@ declare namespace SlidesPlayer {
193
194
  title: PropTypes.Validator<string>;
194
195
  subtitle: PropTypes.Requireable<string>;
195
196
  selected: PropTypes.Requireable<boolean>;
197
+ selectedColor: PropTypes.Requireable<string>;
196
198
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
197
199
  label: PropTypes.Requireable<string>;
198
200
  type: PropTypes.Requireable<string>;
@@ -287,6 +289,7 @@ declare namespace SlidesPlayer {
287
289
  lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
288
290
  componentType: PropTypes.Requireable<string>;
289
291
  type: PropTypes.Requireable<string>;
292
+ usage: PropTypes.Requireable<string>;
290
293
  label: PropTypes.Requireable<string>;
291
294
  content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
292
295
  'aria-label': PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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