@coorpacademy/components 11.9.2-alpha.1 → 11.9.2-alpha.12

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 (110) hide show
  1. package/es/atom/drag-and-drop/style.css +14 -9
  2. package/es/atom/image-upload/index.d.ts +6 -1
  3. package/es/atom/image-upload/index.d.ts.map +1 -1
  4. package/es/atom/image-upload/index.js +24 -4
  5. package/es/atom/image-upload/index.js.map +1 -1
  6. package/es/atom/image-upload/style.css +7 -0
  7. package/es/atom/review-presentation/index.d.ts.map +1 -1
  8. package/es/atom/review-presentation/index.js +62 -12
  9. package/es/atom/review-presentation/index.js.map +1 -1
  10. package/es/atom/review-presentation/style.css +67 -7
  11. package/es/atom/title/index.d.ts +1 -0
  12. package/es/atom/title/index.d.ts.map +1 -1
  13. package/es/atom/title/index.js +14 -5
  14. package/es/atom/title/index.js.map +1 -1
  15. package/es/atom/title/style.css +6 -0
  16. package/es/molecule/brand-form-group/index.d.ts +5 -0
  17. package/es/molecule/brand-form-group/index.d.ts.map +1 -1
  18. package/es/molecule/brand-form-group/index.js +4 -1
  19. package/es/molecule/brand-form-group/index.js.map +1 -1
  20. package/es/molecule/brand-form-group/style.css +9 -10
  21. package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
  22. package/es/molecule/setup-slide/index.d.ts +2 -0
  23. package/es/molecule/setup-slider/index.d.ts +2 -0
  24. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +3 -0
  25. package/es/organism/brand-form/index.d.ts +5 -0
  26. package/es/organism/rewards-form/index.d.ts +3 -0
  27. package/es/organism/wizard-contents/index.d.ts +10 -2
  28. package/es/organism/wizard-contents/index.d.ts.map +1 -1
  29. package/es/organism/wizard-contents/index.js +9 -4
  30. package/es/organism/wizard-contents/index.js.map +1 -1
  31. package/es/organism/wizard-contents/style.css +36 -4
  32. package/es/template/activity/engine-stars.css +33 -16
  33. package/es/template/activity/engine-stars.d.ts +17 -15
  34. package/es/template/activity/engine-stars.d.ts.map +1 -1
  35. package/es/template/activity/engine-stars.js +115 -128
  36. package/es/template/activity/engine-stars.js.map +1 -1
  37. package/es/template/activity/index.d.ts +0 -1
  38. package/es/template/activity/index.d.ts.map +1 -1
  39. package/es/template/activity/index.js +9 -18
  40. package/es/template/activity/index.js.map +1 -1
  41. package/es/template/activity/progression-item.js +1 -1
  42. package/es/template/activity/progression-item.js.map +1 -1
  43. package/es/template/activity/stars-summary.d.ts +0 -1
  44. package/es/template/activity/stars-summary.d.ts.map +1 -1
  45. package/es/template/activity/stars-summary.js +5 -10
  46. package/es/template/activity/stars-summary.js.map +1 -1
  47. package/es/template/back-office/brand-update/index.d.ts +15 -2
  48. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  49. package/es/template/back-office/brand-update/index.js.map +1 -1
  50. package/lib/atom/drag-and-drop/style.css +14 -9
  51. package/lib/atom/image-upload/index.d.ts +6 -1
  52. package/lib/atom/image-upload/index.d.ts.map +1 -1
  53. package/lib/atom/image-upload/index.js +25 -4
  54. package/lib/atom/image-upload/index.js.map +1 -1
  55. package/lib/atom/image-upload/style.css +7 -0
  56. package/lib/atom/review-presentation/index.d.ts.map +1 -1
  57. package/lib/atom/review-presentation/index.js +66 -13
  58. package/lib/atom/review-presentation/index.js.map +1 -1
  59. package/lib/atom/review-presentation/style.css +67 -7
  60. package/lib/atom/title/index.d.ts +1 -0
  61. package/lib/atom/title/index.d.ts.map +1 -1
  62. package/lib/atom/title/index.js +14 -5
  63. package/lib/atom/title/index.js.map +1 -1
  64. package/lib/atom/title/style.css +6 -0
  65. package/lib/molecule/brand-form-group/index.d.ts +5 -0
  66. package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
  67. package/lib/molecule/brand-form-group/index.js +4 -1
  68. package/lib/molecule/brand-form-group/index.js.map +1 -1
  69. package/lib/molecule/brand-form-group/style.css +9 -10
  70. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
  71. package/lib/molecule/setup-slide/index.d.ts +2 -0
  72. package/lib/molecule/setup-slider/index.d.ts +2 -0
  73. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +3 -0
  74. package/lib/organism/brand-form/index.d.ts +5 -0
  75. package/lib/organism/rewards-form/index.d.ts +3 -0
  76. package/lib/organism/wizard-contents/index.d.ts +10 -2
  77. package/lib/organism/wizard-contents/index.d.ts.map +1 -1
  78. package/lib/organism/wizard-contents/index.js +9 -4
  79. package/lib/organism/wizard-contents/index.js.map +1 -1
  80. package/lib/organism/wizard-contents/style.css +36 -4
  81. package/lib/template/activity/engine-stars.css +33 -16
  82. package/lib/template/activity/engine-stars.d.ts +17 -15
  83. package/lib/template/activity/engine-stars.d.ts.map +1 -1
  84. package/lib/template/activity/engine-stars.js +116 -135
  85. package/lib/template/activity/engine-stars.js.map +1 -1
  86. package/lib/template/activity/index.d.ts +0 -1
  87. package/lib/template/activity/index.d.ts.map +1 -1
  88. package/lib/template/activity/index.js +9 -21
  89. package/lib/template/activity/index.js.map +1 -1
  90. package/lib/template/activity/progression-item.js +1 -1
  91. package/lib/template/activity/progression-item.js.map +1 -1
  92. package/lib/template/activity/stars-summary.d.ts +0 -1
  93. package/lib/template/activity/stars-summary.d.ts.map +1 -1
  94. package/lib/template/activity/stars-summary.js +5 -10
  95. package/lib/template/activity/stars-summary.js.map +1 -1
  96. package/lib/template/back-office/brand-update/index.d.ts +15 -2
  97. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  98. package/lib/template/back-office/brand-update/index.js.map +1 -1
  99. package/locales/en/global.json +0 -1
  100. package/package.json +3 -4
  101. package/es/atom/tooltip/index.d.ts +0 -22
  102. package/es/atom/tooltip/index.d.ts.map +0 -1
  103. package/es/atom/tooltip/index.js +0 -117
  104. package/es/atom/tooltip/index.js.map +0 -1
  105. package/es/atom/tooltip/style.css +0 -96
  106. package/lib/atom/tooltip/index.d.ts +0 -22
  107. package/lib/atom/tooltip/index.d.ts.map +0 -1
  108. package/lib/atom/tooltip/index.js +0 -137
  109. package/lib/atom/tooltip/index.js.map +0 -1
  110. package/lib/atom/tooltip/style.css +0 -96
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","style","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","getOr","nextButton","actionZone","button","WizardContents","props","isLoading","summary","headerView","formView","rightActionView","footerActionView","container","leftSection","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","propTypes","PropTypes","bool","shape","string","func","isRequired","WizardSteps","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm"],"sources":["../../../src/organism/wizard-contents/index.js"],"sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport RewardsForm from '../rewards-form';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n case 'rewards':\n return <RewardsForm {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n\n return (\n <div className={style.container} data-name=\"content-summary\">\n <div className={style.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n <div className={style.footer} data-name=\"summary-footer-section\">\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n <div className={style.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n }),\n PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;EAC3C,MAAM;IAACC,KAAD;IAAQC;EAAR,IAAmBH,YAAzB;EAEA,MAAMI,eAAe,GAAG;IACtBC,IAAI,EAAE,OADgB;IAEtB,aAAa,cAFS;IAGtB,cAAc,cAHQ;IAItBC,IAAI,EAAE,OAJgB;IAKtBH;EALsB,CAAxB;EAQA,oBACE,uDACE;IAAK,SAAS,EAAEI,cAAA,CAAMC;EAAtB,gBACE,6BAAC,2BAAD,EAAwBJ,eAAxB,CADF,eAEE;IAAK,SAAS,EAAEG,cAAA,CAAME,WAAtB;IAAmC,aAAW;EAA9C,GACGP,KADH,CA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AAV,cACKS,2BAAA,CAAiBZ,SADtB;IAEErC,IAAI,EAAEsC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,WAAD,CAAhB;EAFR,GAL2B,EAS3BV,kBAAA,CAAUE,KAAV,cACKU,8BAAA,CAA8Bb,SADnC;IAEErC,IAAI,EAAEsC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFR,GAT2B,EAa3BV,kBAAA,CAAUE,KAAV,cACKW,wBAAA,CAAgBd,SADrB;IAEErC,IAAI,EAAEsC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,SAAD,CAAhB;EAFR,GAb2B,EAiB3BV,kBAAA,CAAUE,KAAV,cACKY,uBAAA,CAAef,SADpB;IAEErC,IAAI,EAAEsC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,kBAAD,CAAhB;EAFR,GAjB2B,EAqB3BV,kBAAA,CAAUE,KAAV,cACKa,oBAAA,CAAYhB,SADjB;IAEErC,IAAI,EAAEsC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,SAAD,CAAhB;EAFR,GArB2B,CAApB,CAVgB;EAoCzBpC,YAAY,EAAE0B,kBAAA,CAAUE,KAAV,CAAgB;IAC5B/B,KAAK,EAAE6B,kBAAA,CAAUG,MADW;IAE5BlD,OAAO,EAAE+C,kBAAA,CAAUI;EAFS,CAAhB,CApCW;EAwCzB7B,QAAQ,EAAEyB,kBAAA,CAAUE,KAAV,CAAgB;IACxBxC,IAAI,EAAEsC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;IAExBvC,KAAK,EAAE6B,kBAAA,CAAUG,MAFO;IAGxBlD,OAAO,EAAE+C,kBAAA,CAAUI;EAHK,CAAhB;AAxCe,CAA3B;eA+CetB,c"}
1
+ {"version":3,"file":"index.js","names":["buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","style","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","getOr","nextButton","actionZone","button","WizardContents","props","isLoading","summary","headerView","formView","rightActionView","footerActionView","container","leftSection","leftSectionWithoutSummary","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","footerWithoutSummary","actionFooterWithoutSummary","propTypes","PropTypes","bool","shape","string","func","isRequired","WizardSteps","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm"],"sources":["../../../src/organism/wizard-contents/index.js"],"sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport RewardsForm from '../rewards-form';\nimport style from './style.css';\nimport isEmpty from 'lodash/fp/isEmpty';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n case 'rewards':\n return <RewardsForm {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n\n\n return (\n <div className={style.container} data-name=\"content-summary\">\n <div className={summary ? style.leftSection: style.leftSectionWithoutSummary}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n {summary ? (\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n ) : null}\n {summary ? ( <div className={style.footer} data-name=\"summary-footer-section\">\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n <div className={style.actionFooter}>{footerActionView}</div>\n </div>\n ) : ( <div className={style.footerWithoutSummary} data-name=\"footer-section\">\n <div className={style.actionFooterWithoutSummary}>{footerActionView}</div>\n </div>)}\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n }),\n PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAGA,MAAMA,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;EAC3C,MAAM;IAACC,KAAD;IAAQC;EAAR,IAAmBH,YAAzB;EAEA,MAAMI,eAAe,GAAG;IACtBC,IAAI,EAAE,OADgB;IAEtB,aAAa,cAFS;IAGtB,cAAc,cAHQ;IAItBC,IAAI,EAAE,OAJgB;IAKtBH;EALsB,CAAxB;EAQA,oBACE,uDACE;IAAK,SAAS,EAAEI,cAAA,CAAMC;EAAtB,gBACE,6BAAC,2BAAD,EAAwBJ,eAAxB,CADF,eAEE;IAAK,SAAS,EAAEG,cAAA,CAAME,WAAtB;IAAmC,aAAW;EAA9C,GACGP,K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gC,kBAAA,CAAUG,MAFO;IAGxBrD,OAAO,EAAEkD,kBAAA,CAAUI;EAHK,CAAhB;AAxCe,CAA3B;eA+CezB,c"}
@@ -22,6 +22,15 @@
22
22
  position: relative;
23
23
  }
24
24
 
25
+ .leftSectionWithoutSummary {
26
+ display: block;
27
+ overflow: auto;
28
+ box-sizing: border-box;
29
+ width: 100%;
30
+ height: 100%;
31
+ position: relative;
32
+ }
33
+
25
34
  .rightSection {
26
35
  height: 100%;
27
36
  padding-bottom: 58px;
@@ -69,12 +78,22 @@
69
78
  .actionZone {
70
79
  width: 100%;
71
80
  display: flex;
72
- justify-content: space-between;
81
+ justify-content: center;
73
82
  margin: 16px 0;
83
+ flex-wrap: wrap;
74
84
  }
75
85
 
76
86
  .button {
77
- width: calc(50% - 8px);
87
+ width: 100%;
88
+ max-width: 184px;
89
+ }
90
+
91
+ .footerWithoutSummary {
92
+ width: 100%;
93
+ bottom: 0px;
94
+ position: inherit;
95
+ display: flex;
96
+ justify-content: flex-end;
78
97
  }
79
98
 
80
99
  .footer {
@@ -84,6 +103,16 @@
84
103
  position: inherit;
85
104
  }
86
105
 
106
+ .actionFooterWithoutSummary {
107
+ width: 100%;
108
+ display: flex;
109
+ right: 0;
110
+ max-width: 184px;
111
+ bottom: -10px;
112
+ position: sticky;
113
+ position: absolute;
114
+ }
115
+
87
116
  @media desktop, tablet {
88
117
  .leftSection {
89
118
  width: 100%;
@@ -94,13 +123,14 @@
94
123
  display: none;
95
124
  }
96
125
 
97
- .footer {
126
+ .footer {
98
127
  display: flex;
99
128
  align-items: flex-end;
100
129
  bottom: 10px;
101
130
  position: sticky;
102
131
  z-index: 1;
103
132
  }
133
+
104
134
  .footer::before {
105
135
  content: '';
106
136
  background: linear-gradient(to top,white 64px, #ffffff00 );
@@ -118,8 +148,10 @@
118
148
  }
119
149
 
120
150
  .actionFooter {
121
- width: 43%;
151
+ max-width: 184px;
152
+ width: 100%;
122
153
  }
154
+
123
155
  .actionZone {
124
156
  margin: 0;
125
157
  }
@@ -21,10 +21,6 @@
21
21
 
22
22
  user-select: none;
23
23
  position: relative;
24
- border-bottom: none;
25
- border-right: 0px;
26
- border-width: 1px 0 0 1px;
27
- background: inherit;
28
24
  }
29
25
 
30
26
  .engineIcon {
@@ -160,22 +156,28 @@
160
156
  opacity: 0.4;
161
157
  }
162
158
 
163
- .textBase {
164
- font-family: "Gilroy";
165
- font-style: normal;
166
- color: white;
159
+ .toolTip {
160
+ opacity: 1 !important;
161
+ padding: 0;
162
+ pointer-events: all;
163
+ background-color: transparent !important;
164
+ }
165
+
166
+ .toolTip::after {
167
+ border-left-color: transparent !important;
167
168
  }
168
169
 
169
170
  .toolTipContent {
170
- composes: textBase;
171
- width: 270px;
172
- font-weight: 500;
173
- font-size: 14px;
174
- display: inline-block;
171
+ padding: 10px;
172
+ margin: 0;
175
173
  border-radius: 3px;
176
- word-wrap: break-word;
177
- padding: 8px 14px;
178
- text-align: center;
174
+ font-family: 'Gilroy';
175
+ font-size: 12px;
176
+ width: 270px;
177
+ background-color: white;
178
+ border: 1px solid white;
179
+ color: dark;
180
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 8px 3px 10px rgba(0, 0, 0, 0.23);
179
181
  }
180
182
 
181
183
  .toolTipContent > a {
@@ -189,6 +191,21 @@
189
191
  text-decoration: underline;
190
192
  }
191
193
 
194
+ .toolTipContent::after {
195
+ content: '';
196
+ width: 0;
197
+ height: 0;
198
+ position: absolute;
199
+ border-left-color: inherit;
200
+ border-left-style: solid;
201
+ border-left-width: 6px;
202
+ border-top: 5px solid transparent;
203
+ border-bottom: 5px solid transparent;
204
+ right: -6px;
205
+ top: 50%;
206
+ margin-top: -4px;
207
+ }
208
+
192
209
  /* ------------------------------------------------------ */
193
210
 
194
211
  @media tablet, mobile {
@@ -1,23 +1,21 @@
1
1
  export default EngineStars;
2
- declare function EngineStars(props: any, legacyContext: any): JSX.Element;
3
- declare namespace EngineStars {
4
- namespace propTypes {
5
- const type: PropTypes.Validator<string>;
6
- const stars: PropTypes.Validator<number>;
7
- const title: PropTypes.Validator<string>;
8
- const active: PropTypes.Requireable<boolean>;
9
- const disabled: PropTypes.Requireable<boolean>;
10
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
11
- const className: PropTypes.Requireable<string>;
12
- const toolTip: PropTypes.Requireable<PropTypes.InferProps<{
2
+ declare class EngineStars extends React.Component<any, any, any> {
3
+ static propTypes: {
4
+ type: PropTypes.Validator<string>;
5
+ stars: PropTypes.Validator<number>;
6
+ title: PropTypes.Validator<string>;
7
+ active: PropTypes.Requireable<boolean>;
8
+ disabled: PropTypes.Requireable<boolean>;
9
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
10
+ toolTip: PropTypes.Requireable<PropTypes.InferProps<{
13
11
  preMessage: PropTypes.Requireable<string>;
14
12
  linkMessage: PropTypes.Requireable<string>;
15
13
  endMessage: PropTypes.Requireable<string>;
16
14
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
17
15
  }>>;
18
- }
19
- namespace contextTypes {
20
- const skin: PropTypes.Requireable<PropTypes.InferProps<{
16
+ };
17
+ static contextTypes: {
18
+ skin: PropTypes.Requireable<PropTypes.InferProps<{
21
19
  common: PropTypes.Requireable<{
22
20
  [x: string]: any;
23
21
  }>;
@@ -38,7 +36,11 @@ declare namespace EngineStars {
38
36
  [x: string]: any;
39
37
  }>;
40
38
  }>>;
41
- }
39
+ };
40
+ constructor(props: any, context: any);
41
+ handleClick: (e: any) => void;
42
+ render(): JSX.Element;
42
43
  }
44
+ import React from "react";
43
45
  import PropTypes from "prop-types";
44
46
  //# sourceMappingURL=engine-stars.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"engine-stars.d.ts","sourceRoot":"","sources":["../../../src/template/activity/engine-stars.js"],"names":[],"mappings":";AAuEA,0EAwIC"}
1
+ {"version":3,"file":"engine-stars.d.ts","sourceRoot":"","sources":["../../../src/template/activity/engine-stars.js"],"names":[],"mappings":";AAqFA;IACE;;;;;;;;;;;;;MAaE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,sCAGC;IAED,8BAKE;IAEF,sBAqDC;CACF"}
@@ -9,30 +9,22 @@ var _get2 = _interopRequireDefault(require("lodash/fp/get"));
9
9
 
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
- var _react = _interopRequireWildcard(require("react"));
12
+ var _react = _interopRequireDefault(require("react"));
13
13
 
14
- var _propTypes = _interopRequireDefault(require("prop-types"));
14
+ var _reactTooltip = _interopRequireDefault(require("react-tooltip"));
15
15
 
16
- var _uuid = require("uuid");
16
+ var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
 
18
18
  var _novaIcons = require("@coorpacademy/nova-icons");
19
19
 
20
- var _provider = _interopRequireWildcard(require("../../atom/provider"));
21
-
22
- var _tooltip = _interopRequireWildcard(require("../../atom/tooltip"));
20
+ var _provider = _interopRequireDefault(require("../../atom/provider"));
23
21
 
24
22
  var _link = _interopRequireDefault(require("../../atom/link"));
25
23
 
26
24
  var _engineStars = _interopRequireDefault(require("./engine-stars.css"));
27
25
 
28
- 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
-
30
- 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
-
32
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
27
 
34
- 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
-
36
28
  const ICONS = {
37
29
  microlearning: _novaIcons.NovaCompositionCoorpacademyTimer,
38
30
  learner: _novaIcons.NovaSolidContentContentBook1,
@@ -46,132 +38,125 @@ const ICONS = {
46
38
  review: _novaIcons.NovaCompositionCoorpacademyRevision
47
39
  };
48
40
 
49
- const ToolTipContent = ({
50
- preMessage,
51
- linkMessage,
52
- endMessage,
53
- onClick,
54
- color,
55
- handleContentMouseOver
56
- }) => /*#__PURE__*/_react.default.createElement("p", {
57
- className: _engineStars.default.toolTipContent,
58
- onMouseOver: handleContentMouseOver,
59
- "data-testid": "react-tooltip-content"
60
- }, /*#__PURE__*/_react.default.createElement("span", null, preMessage), /*#__PURE__*/_react.default.createElement(_link.default, {
61
- onClick: onClick,
62
- style: {
63
- color
41
+ const ToolTip = ({
42
+ toolTip,
43
+ id
44
+ }, context) => {
45
+ if (!toolTip) {
46
+ return null;
64
47
  }
65
- }, linkMessage), /*#__PURE__*/_react.default.createElement("span", null, endMessage));
66
48
 
67
- ToolTipContent.propTypes = process.env.NODE_ENV !== "production" ? {
68
- preMessage: _propTypes.default.string,
69
- linkMessage: _propTypes.default.string,
70
- endMessage: _propTypes.default.string,
71
- color: _propTypes.default.string,
72
- onClick: _propTypes.default.func,
73
- handleContentMouseOver: _propTypes.default.func
74
- } : {};
75
-
76
- const EngineStars = (props, legacyContext) => {
77
- const skin = (0, _provider.GetSkinFromContext)(legacyContext);
78
- const translate = (0, _provider.GetTranslateFromContext)(legacyContext);
79
49
  const {
80
- toolTip = null,
81
- disabled,
82
- type,
83
- stars,
84
- title,
85
- active = false,
86
- onClick = _noop2.default,
87
- className
88
- } = props;
89
-
90
- const handleClick = e => {
91
- e.stopPropagation();
92
- e.preventDefault();
93
- onClick(e);
94
- };
95
-
96
- const dark = (0, _get2.default)('common.dark', skin);
97
- const light = (0, _get2.default)('common.light', skin);
98
- const IconType = ICONS[type];
99
- const primary = (0, _get2.default)('common.primary', skin); // to replace by useId when React17 is bumped to React18
100
-
101
- const [engineStarsContentId] = (0, _react.useState)(disabled ? (0, _uuid.v5)('engine-stars', _uuid.v5.URL) : undefined);
102
- const [toolTipIsVisible, setToolTipIsVisible] = (0, _react.useState)(false);
103
- const [mouseLeaveTimer, setMouseLeaveTimer] = (0, _react.useState)(undefined);
104
- const buttonRef = (0, _react.useRef)(null);
105
- const handleKeyPress = (0, _react.useCallback)(event => {
106
- (0, _tooltip.toggleStateOnKeyPress)(toolTipIsVisible, setToolTipIsVisible, buttonRef)(event);
107
- }, [toolTipIsVisible]);
108
- const handleMouseOver = (0, _react.useCallback)(() => {
109
- mouseLeaveTimer && clearTimeout(mouseLeaveTimer);
110
- setToolTipIsVisible(true);
111
- }, [mouseLeaveTimer]);
112
- const handleContentMouseOver = (0, _react.useCallback)(() => {
113
- mouseLeaveTimer &&
114
- /* istanbul ignore next */
115
- clearTimeout(mouseLeaveTimer);
116
- }, [mouseLeaveTimer]);
117
- const handleMouseLeave = (0, _react.useCallback)(() => {
118
- setMouseLeaveTimer(setTimeout(() => setToolTipIsVisible(false), 500));
119
- }, []);
120
- const toolTipContentProps = (0, _react.useMemo)(() => toolTip ? {
121
- preMessage: toolTip.preMessage,
122
- linkMessage: toolTip.linkMessage,
123
- endMessage: toolTip.endMessage,
124
- color: primary,
125
- onClick: toolTip.onClick
126
- } : null, [primary, toolTip]);
127
- const toolTipProps = {
128
- closeToolTipInformationTextAriaLabel: translate('Press the escape key to close the information text')
129
- };
130
- const TooltipContent = (0, _react.useCallback)(_props => /*#__PURE__*/_react.default.createElement(ToolTipContent, _extends({}, _extends({}, toolTipContentProps, _props), {
131
- handleContentMouseOver: handleContentMouseOver
132
- })), [handleContentMouseOver, toolTipContentProps]);
133
- return /*#__PURE__*/_react.default.createElement("button", {
134
- ref: buttonRef,
135
- "data-tip": disabled,
136
- "data-engine": type,
137
- "data-testid": `engine-stars-${type}` // eslint-disable-next-line no-nested-ternary
138
- ,
139
- onClick: disabled ? handleKeyPress : active ? _noop2.default : handleClick,
140
- "data-for": engineStarsContentId,
141
- className: (0, _classnames.default)([_engineStars.default.engineStars, disabled ? _engineStars.default.disabled : '', active ? _engineStars.default.active : '', onClick !== _noop2.default ? _engineStars.default.clickable : null, className]),
142
- type: "button",
143
- "data-tooltip-place": "left",
144
- onKeyDown: handleKeyPress,
145
- onMouseLeave: handleMouseLeave,
146
- onMouseOver: handleMouseOver
147
- }, disabled ? /*#__PURE__*/_react.default.createElement(_tooltip.default, _extends({}, toolTipProps, {
148
- anchorId: engineStarsContentId,
149
- toolTipIsVisible: toolTipIsVisible,
150
- TooltipContent: TooltipContent,
151
- mouseLeaveTimer: mouseLeaveTimer
152
- })) : null, /*#__PURE__*/_react.default.createElement("span", {
153
- className: _engineStars.default.engineIcon,
154
- style: {
155
- backgroundColor: onClick === _noop2.default ? light : primary
156
- }
157
- }, /*#__PURE__*/_react.default.createElement(IconType, {
158
- className: _engineStars.default.iconHeader,
159
- width: "30"
160
- })), /*#__PURE__*/_react.default.createElement("div", {
161
- className: _engineStars.default.score,
50
+ skin
51
+ } = context;
52
+ const {
53
+ preMessage,
54
+ endMessage,
55
+ linkMessage,
56
+ onClick
57
+ } = toolTip;
58
+ const primary = (0, _get2.default)('common.primary', skin);
59
+ const handleClick = onClick;
60
+ return /*#__PURE__*/_react.default.createElement(_reactTooltip.default, {
61
+ id: id,
62
+ className: _engineStars.default.toolTip,
63
+ "data-event-off": "click",
64
+ place: "left",
65
+ effect: "solid",
66
+ delayHide: 500
67
+ }, /*#__PURE__*/_react.default.createElement("p", {
68
+ className: _engineStars.default.toolTipContent
69
+ }, /*#__PURE__*/_react.default.createElement("span", null, `${preMessage}`), /*#__PURE__*/_react.default.createElement(_link.default, {
70
+ onClick: handleClick,
162
71
  style: {
163
- color: active ? primary : dark
72
+ color: primary
164
73
  }
165
- }, /*#__PURE__*/_react.default.createElement("p", {
166
- "data-name": "star-counter"
167
- }, stars), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyStar, {
168
- className: _engineStars.default.iconStar,
169
- color: active ? primary : dark
170
- }))), /*#__PURE__*/_react.default.createElement("div", {
171
- className: _engineStars.default.scoreTitle
172
- }, title));
74
+ }, `${linkMessage}`), /*#__PURE__*/_react.default.createElement("span", null, `${endMessage}`)));
173
75
  };
174
76
 
77
+ ToolTip.contextTypes = {
78
+ skin: _provider.default.childContextTypes.skin
79
+ };
80
+ ToolTip.propTypes = process.env.NODE_ENV !== "production" ? {
81
+ toolTip: _propTypes.default.shape({
82
+ preMessage: _propTypes.default.string,
83
+ linkMessage: _propTypes.default.string,
84
+ endMessage: _propTypes.default.string,
85
+ onClick: _propTypes.default.func
86
+ }),
87
+ id: _propTypes.default.string.isRequired
88
+ } : {};
89
+
90
+ class EngineStars extends _react.default.Component {
91
+ constructor(props, context) {
92
+ super(props, context);
93
+
94
+ this.handleClick = e => {
95
+ e.stopPropagation();
96
+ e.preventDefault();
97
+ const {
98
+ onClick
99
+ } = this.props;
100
+ onClick && onClick(e);
101
+ };
102
+
103
+ this.handleClick = this.handleClick.bind(this);
104
+ }
105
+
106
+ render() {
107
+ const {
108
+ skin
109
+ } = this.context;
110
+ const {
111
+ disabled,
112
+ type,
113
+ stars,
114
+ title,
115
+ active = false,
116
+ onClick = _noop2.default,
117
+ toolTip = null
118
+ } = this.props;
119
+ const dark = (0, _get2.default)('common.dark', skin);
120
+ const light = (0, _get2.default)('common.light', skin);
121
+ const primary = (0, _get2.default)('common.primary', skin);
122
+ const IconType = ICONS[type];
123
+ return /*#__PURE__*/_react.default.createElement("div", {
124
+ "data-tip": disabled,
125
+ "data-engine": type,
126
+ onClick: disabled || active ? _noop2.default : this.handleClick,
127
+ "data-for": disabled && type,
128
+ className: (0, _classnames.default)([_engineStars.default.engineStars, disabled ? _engineStars.default.disabled : '', active ? _engineStars.default.active : '', onClick !== _noop2.default ? _engineStars.default.clickable : null])
129
+ }, /*#__PURE__*/_react.default.createElement(ToolTip, {
130
+ toolTip: toolTip,
131
+ id: type
132
+ }), /*#__PURE__*/_react.default.createElement("span", {
133
+ className: _engineStars.default.engineIcon,
134
+ style: {
135
+ backgroundColor: onClick === _noop2.default ? light : primary
136
+ }
137
+ }, /*#__PURE__*/_react.default.createElement(IconType, {
138
+ className: _engineStars.default.iconHeader,
139
+ width: "30"
140
+ })), /*#__PURE__*/_react.default.createElement("div", {
141
+ className: _engineStars.default.score,
142
+ style: {
143
+ color: active ? primary : dark
144
+ }
145
+ }, /*#__PURE__*/_react.default.createElement("p", {
146
+ "data-name": "star-counter"
147
+ }, stars), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyStar, {
148
+ className: _engineStars.default.iconStar,
149
+ color: active ? primary : dark
150
+ }))), /*#__PURE__*/_react.default.createElement("div", {
151
+ className: _engineStars.default.scoreTitle
152
+ }, title));
153
+ }
154
+
155
+ }
156
+
157
+ EngineStars.contextTypes = {
158
+ skin: _provider.default.childContextTypes.skin
159
+ };
175
160
  EngineStars.propTypes = process.env.NODE_ENV !== "production" ? {
176
161
  type: _propTypes.default.string.isRequired,
177
162
  stars: _propTypes.default.number.isRequired,
@@ -179,7 +164,6 @@ EngineStars.propTypes = process.env.NODE_ENV !== "production" ? {
179
164
  active: _propTypes.default.bool,
180
165
  disabled: _propTypes.default.bool,
181
166
  onClick: _propTypes.default.func,
182
- className: _propTypes.default.string,
183
167
  toolTip: _propTypes.default.shape({
184
168
  preMessage: _propTypes.default.string,
185
169
  linkMessage: _propTypes.default.string,
@@ -187,9 +171,6 @@ EngineStars.propTypes = process.env.NODE_ENV !== "production" ? {
187
171
  onClick: _propTypes.default.func
188
172
  })
189
173
  } : {};
190
- EngineStars.contextTypes = {
191
- skin: _provider.default.childContextTypes.skin
192
- };
193
174
  var _default = EngineStars;
194
175
  exports.default = _default;
195
176
  //# sourceMappingURL=engine-stars.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"engine-stars.js","names":["ICONS","microlearning","TimerIcon","learner","LearnerIcon","battle","BoltIcon","certifications","CertificationIcon","bonus","BonusIcon","article","ArticleIcon","scorm","ScormIcon","video","VideoIcon","podcast","PodcastIcon","review","RevisionIcon","ToolTipContent","preMessage","linkMessage","endMessage","onClick","color","handleContentMouseOver","style","toolTipContent","propTypes","PropTypes","string","func","EngineStars","props","legacyContext","skin","GetSkinFromContext","translate","GetTranslateFromContext","toolTip","disabled","type","stars","title","active","className","handleClick","e","stopPropagation","preventDefault","dark","light","IconType","primary","engineStarsContentId","useState","uuidV5","URL","undefined","toolTipIsVisible","setToolTipIsVisible","mouseLeaveTimer","setMouseLeaveTimer","buttonRef","useRef","handleKeyPress","useCallback","event","toggleStateOnKeyPress","handleMouseOver","clearTimeout","handleMouseLeave","setTimeout","toolTipContentProps","useMemo","toolTipProps","closeToolTipInformationTextAriaLabel","TooltipContent","_props","classnames","engineStars","clickable","engineIcon","backgroundColor","iconHeader","score","iconStar","scoreTitle","isRequired","number","bool","shape","contextTypes","Provider","childContextTypes"],"sources":["../../../src/template/activity/engine-stars.js"],"sourcesContent":["import classnames from 'classnames';\nimport React, {useCallback, useMemo, useState, useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {get, noop} from 'lodash/fp';\nimport {v5 as uuidV5} from 'uuid';\nimport {\n NovaCompositionCoorpacademyStar as StarIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon,\n NovaCompositionCoorpacademyBolt as BoltIcon,\n NovaSolidSchoolScienceGraduationHat as CertificationIcon,\n NovaSolidContentContentBook1 as LearnerIcon,\n NovaSolidVoteRewardsRewardsBadge1 as BonusIcon,\n NovaCompositionCoorpacademyScorm as ScormIcon,\n NovaCompositionCoorpacademyArticle as ArticleIcon,\n NovaCompositionCoorpacademyVideo as VideoIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon,\n NovaCompositionCoorpacademyRevision as RevisionIcon\n} from '@coorpacademy/nova-icons';\nimport Provider, {GetSkinFromContext, GetTranslateFromContext} from '../../atom/provider';\nimport ToolTip, {toggleStateOnKeyPress} from '../../atom/tooltip';\nimport Link from '../../atom/link';\nimport style from './engine-stars.css';\n\nconst ICONS = {\n microlearning: TimerIcon,\n learner: LearnerIcon,\n battle: BoltIcon,\n certifications: CertificationIcon,\n bonus: BonusIcon,\n article: ArticleIcon,\n scorm: ScormIcon,\n video: VideoIcon,\n podcast: PodcastIcon,\n review: RevisionIcon\n};\n\nconst ToolTipContent = ({\n preMessage,\n linkMessage,\n endMessage,\n onClick,\n color,\n handleContentMouseOver\n}) => (\n <p\n className={style.toolTipContent}\n onMouseOver={handleContentMouseOver}\n data-testid=\"react-tooltip-content\"\n >\n <span>{preMessage}</span>\n <Link\n onClick={onClick}\n style={{\n color\n }}\n >\n {linkMessage}\n </Link>\n <span>{endMessage}</span>\n </p>\n);\n\nToolTipContent.propTypes = {\n preMessage: PropTypes.string,\n linkMessage: PropTypes.string,\n endMessage: PropTypes.string,\n color: PropTypes.string,\n onClick: PropTypes.func,\n handleContentMouseOver: PropTypes.func\n};\n\nconst EngineStars = (props, legacyContext) => {\n const skin = GetSkinFromContext(legacyContext);\n const translate = GetTranslateFromContext(legacyContext);\n const {\n toolTip = null,\n disabled,\n type,\n stars,\n title,\n active = false,\n onClick = noop,\n className\n } = props;\n\n const handleClick = e => {\n e.stopPropagation();\n e.preventDefault();\n onClick(e);\n };\n const dark = get('common.dark', skin);\n const light = get('common.light', skin);\n const IconType = ICONS[type];\n\n const primary = get('common.primary', skin);\n\n // to replace by useId when React17 is bumped to React18\n const [engineStarsContentId] = useState(\n disabled ? uuidV5('engine-stars', uuidV5.URL) : undefined\n );\n const [toolTipIsVisible, setToolTipIsVisible] = useState(false);\n const [mouseLeaveTimer, setMouseLeaveTimer] = useState(undefined);\n const buttonRef = useRef(null);\n\n const handleKeyPress = useCallback(\n event => {\n toggleStateOnKeyPress(toolTipIsVisible, setToolTipIsVisible, buttonRef)(event);\n },\n [toolTipIsVisible]\n );\n\n const handleMouseOver = useCallback(() => {\n mouseLeaveTimer && clearTimeout(mouseLeaveTimer);\n setToolTipIsVisible(true);\n }, [mouseLeaveTimer]);\n\n const handleContentMouseOver = useCallback(() => {\n mouseLeaveTimer && /* istanbul ignore next */ clearTimeout(mouseLeaveTimer);\n }, [mouseLeaveTimer]);\n\n const handleMouseLeave = useCallback(() => {\n setMouseLeaveTimer(setTimeout(() => setToolTipIsVisible(false), 500));\n }, []);\n\n const toolTipContentProps = useMemo(\n () =>\n toolTip\n ? {\n preMessage: toolTip.preMessage,\n linkMessage: toolTip.linkMessage,\n endMessage: toolTip.endMessage,\n color: primary,\n onClick: toolTip.onClick\n }\n : null,\n [primary, toolTip]\n );\n\n const toolTipProps = {\n closeToolTipInformationTextAriaLabel: translate(\n 'Press the escape key to close the information text'\n )\n };\n\n const TooltipContent = useCallback(\n _props => (\n <ToolTipContent\n {...{...toolTipContentProps, ..._props}}\n handleContentMouseOver={handleContentMouseOver}\n />\n ),\n [handleContentMouseOver, toolTipContentProps]\n );\n\n return (\n <button\n ref={buttonRef}\n data-tip={disabled}\n data-engine={type}\n data-testid={`engine-stars-${type}`}\n // eslint-disable-next-line no-nested-ternary\n onClick={disabled ? handleKeyPress : active ? noop : handleClick}\n data-for={engineStarsContentId}\n className={classnames([\n style.engineStars,\n disabled ? style.disabled : '',\n active ? style.active : '',\n onClick !== noop ? style.clickable : null,\n className\n ])}\n type=\"button\"\n data-tooltip-place=\"left\"\n onKeyDown={handleKeyPress}\n onMouseLeave={handleMouseLeave}\n onMouseOver={handleMouseOver}\n >\n {disabled ? (\n <ToolTip\n {...toolTipProps}\n anchorId={engineStarsContentId}\n toolTipIsVisible={toolTipIsVisible}\n TooltipContent={TooltipContent}\n mouseLeaveTimer={mouseLeaveTimer}\n />\n ) : null}\n <span\n className={style.engineIcon}\n style={{\n backgroundColor: onClick === noop ? light : primary\n }}\n >\n <IconType className={style.iconHeader} width=\"30\" />\n </span>\n <div\n className={style.score}\n style={{\n color: active ? primary : dark\n }}\n >\n <p data-name=\"star-counter\">{stars}</p>\n <span>\n <StarIcon className={style.iconStar} color={active ? primary : dark} />\n </span>\n </div>\n <div className={style.scoreTitle}>{title}</div>\n </button>\n );\n};\n\nEngineStars.propTypes = {\n type: PropTypes.string.isRequired,\n stars: PropTypes.number.isRequired,\n title: PropTypes.string.isRequired,\n active: PropTypes.bool,\n disabled: PropTypes.bool,\n onClick: PropTypes.func,\n className: PropTypes.string,\n toolTip: PropTypes.shape({\n preMessage: PropTypes.string,\n linkMessage: PropTypes.string,\n endMessage: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nEngineStars.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default EngineStars;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AAaA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,aAAa,EAAEC,2CADH;EAEZC,OAAO,EAAEC,uCAFG;EAGZC,MAAM,EAAEC,0CAHI;EAIZC,cAAc,EAAEC,8CAJJ;EAKZC,KAAK,EAAEC,4CALK;EAMZC,OAAO,EAAEC,6CANG;EAOZC,KAAK,EAAEC,2CAPK;EAQZC,KAAK,EAAEC,2CARK;EASZC,OAAO,EAAEC,gDATG;EAUZC,MAAM,EAAEC;AAVI,CAAd;;AAaA,MAAMC,cAAc,GAAG,CAAC;EACtBC,UADsB;EAEtBC,WAFsB;EAGtBC,UAHsB;EAItBC,OAJsB;EAKtBC,KALsB;EAMtBC;AANsB,CAAD,kBAQrB;EACE,SAAS,EAAEC,oBAAA,CAAMC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;IAIvBP,OAAO,EAAEM,kBAAA,CAAUE;EAJI,CAAhB;AARa,CAAxB;AAgBAC,WAAW,CAAC4D,YAAZ,GAA2B;EACzBzD,IAAI,EAAE0D,iBAAA,CAASC,iBAAT,CAA2B3D;AADR,CAA3B;eAIeH,W"}
1
+ {"version":3,"file":"engine-stars.js","names":["ICONS","microlearning","TimerIcon","learner","LearnerIcon","battle","BoltIcon","certifications","CertificationIcon","bonus","BonusIcon","article","ArticleIcon","scorm","ScormIcon","video","VideoIcon","podcast","PodcastIcon","review","RevisionIcon","ToolTip","toolTip","id","context","skin","preMessage","endMessage","linkMessage","onClick","primary","handleClick","style","toolTipContent","color","contextTypes","Provider","childContextTypes","propTypes","PropTypes","shape","string","func","isRequired","EngineStars","React","Component","constructor","props","e","stopPropagation","preventDefault","bind","render","disabled","type","stars","title","active","dark","light","IconType","classnames","engineStars","clickable","engineIcon","backgroundColor","iconHeader","score","iconStar","scoreTitle","number","bool"],"sources":["../../../src/template/activity/engine-stars.js"],"sourcesContent":["import classnames from 'classnames';\nimport React from 'react';\nimport ReactTooltip from 'react-tooltip';\nimport PropTypes from 'prop-types';\nimport {get, noop} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyStar as StarIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon,\n NovaCompositionCoorpacademyBolt as BoltIcon,\n NovaSolidSchoolScienceGraduationHat as CertificationIcon,\n NovaSolidContentContentBook1 as LearnerIcon,\n NovaSolidVoteRewardsRewardsBadge1 as BonusIcon,\n NovaCompositionCoorpacademyScorm as ScormIcon,\n NovaCompositionCoorpacademyArticle as ArticleIcon,\n NovaCompositionCoorpacademyVideo as VideoIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon,\n NovaCompositionCoorpacademyRevision as RevisionIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport Link from '../../atom/link';\nimport style from './engine-stars.css';\n\nconst ICONS = {\n microlearning: TimerIcon,\n learner: LearnerIcon,\n battle: BoltIcon,\n certifications: CertificationIcon,\n bonus: BonusIcon,\n article: ArticleIcon,\n scorm: ScormIcon,\n video: VideoIcon,\n podcast: PodcastIcon,\n review: RevisionIcon\n};\n\nconst ToolTip = ({toolTip, id}, context) => {\n if (!toolTip) {\n return null;\n }\n\n const {skin} = context;\n const {preMessage, endMessage, linkMessage, onClick} = toolTip;\n const primary = get('common.primary', skin);\n\n const handleClick = onClick;\n\n return (\n <ReactTooltip\n id={id}\n className={style.toolTip}\n data-event-off=\"click\"\n place=\"left\"\n effect=\"solid\"\n delayHide={500}\n >\n <p className={style.toolTipContent}>\n <span>{`${preMessage}`}</span>\n <Link\n onClick={handleClick}\n style={{\n color: primary\n }}\n >\n {`${linkMessage}`}\n </Link>\n <span>{`${endMessage}`}</span>\n </p>\n </ReactTooltip>\n );\n};\n\nToolTip.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nToolTip.propTypes = {\n toolTip: PropTypes.shape({\n preMessage: PropTypes.string,\n linkMessage: PropTypes.string,\n endMessage: PropTypes.string,\n onClick: PropTypes.func\n }),\n id: PropTypes.string.isRequired\n};\n\nclass EngineStars extends React.Component {\n static propTypes = {\n type: PropTypes.string.isRequired,\n stars: PropTypes.number.isRequired,\n title: PropTypes.string.isRequired,\n active: PropTypes.bool,\n disabled: PropTypes.bool,\n onClick: PropTypes.func,\n toolTip: PropTypes.shape({\n preMessage: PropTypes.string,\n linkMessage: PropTypes.string,\n endMessage: PropTypes.string,\n onClick: PropTypes.func\n })\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick = e => {\n e.stopPropagation();\n e.preventDefault();\n const {onClick} = this.props;\n onClick && onClick(e);\n };\n\n render() {\n const {skin} = this.context;\n const {\n disabled,\n type,\n stars,\n title,\n active = false,\n onClick = noop,\n toolTip = null\n } = this.props;\n const dark = get('common.dark', skin);\n const light = get('common.light', skin);\n const primary = get('common.primary', skin);\n const IconType = ICONS[type];\n\n return (\n <div\n data-tip={disabled}\n data-engine={type}\n onClick={disabled || active ? noop : this.handleClick}\n data-for={disabled && type}\n className={classnames([\n style.engineStars,\n disabled ? style.disabled : '',\n active ? style.active : '',\n onClick !== noop ? style.clickable : null\n ])}\n >\n <ToolTip toolTip={toolTip} id={type} />\n\n <span\n className={style.engineIcon}\n style={{\n backgroundColor: onClick === noop ? light : primary\n }}\n >\n <IconType className={style.iconHeader} width=\"30\" />\n </span>\n <div\n className={style.score}\n style={{\n color: active ? primary : dark\n }}\n >\n <p data-name=\"star-counter\">{stars}</p>\n <span>\n <StarIcon className={style.iconStar} color={active ? primary : dark} />\n </span>\n </div>\n <div className={style.scoreTitle}>{title}</div>\n </div>\n );\n }\n}\n\nexport default EngineStars;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AAaA;;AACA;;AACA;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,aAAa,EAAEC,2CADH;EAEZC,OAAO,EAAEC,uCAFG;EAGZC,MAAM,EAAEC,0CAHI;EAIZC,cAAc,EAAEC,8CAJJ;EAKZC,KAAK,EAAEC,4CALK;EAMZC,OAAO,EAAEC,6CANG;EAOZC,KAAK,EAAEC,2CAPK;EAQZC,KAAK,EAAEC,2CARK;EASZC,OAAO,EAAEC,gDATG;EAUZC,MAAM,EAAEC;AAVI,CAAd;;AAaA,MAAMC,OAAO,GAAG,CAAC;EAACC,OAAD;EAAUC;AAAV,CAAD,EAAgBC,OAAhB,KAA4B;EAC1C,IAAI,CAACF,OAAL,EAAc;IACZ,OAAO,IAAP;EACD;;EAED,MAAM;IAACG;EAAD,IAASD,OAAf;EACA,MAAM;IAACE,UAAD;IAAaC,UAAb;IAAyBC,WAAzB;IAAsCC;EAAtC,IAAiDP,OAAvD;EACA,MAAMQ,OAAO,GAAG,mBAAI,gBAAJ,EAAsBL,IAAtB,CAAhB;EAEA,MAAMM,WAAW,GAAGF,OAApB;EAEA,o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AC;IAA7C,EANF,CAdF,eAsBE;MACE,SAAS,EAAEnC,oBAAA,CAAMoC,KADnB;MAEE,KAAK,EAAE;QACLlC,KAAK,EAAEwB,MAAM,GAAG5B,OAAH,GAAa6B;MADrB;IAFT,gBAME;MAAG,aAAU;IAAb,GAA6BH,KAA7B,CANF,eAOE,wDACE,6BAAC,0CAAD;MAAU,SAAS,EAAExB,oBAAA,CAAMqC,QAA3B;MAAqC,KAAK,EAAEX,MAAM,GAAG5B,OAAH,GAAa6B;IAA/D,EADF,CAPF,CAtBF,eAiCE;MAAK,SAAS,EAAE3B,oBAAA,CAAMsC;IAAtB,GAAmCb,KAAnC,CAjCF,CADF;EAqCD;;AArFuC;;AAApCb,W,CAgBGT,Y,GAAe;EACpBV,IAAI,EAAEW,iBAAA,CAASC,iBAAT,CAA2BZ;AADb,C;AAhBlBmB,W,CACGN,S,2CAAY;EACjBiB,IAAI,EAAEhB,kBAAA,CAAUE,MAAV,CAAiBE,UADN;EAEjBa,KAAK,EAAEjB,kBAAA,CAAUgC,MAAV,CAAiB5B,UAFP;EAGjBc,KAAK,EAAElB,kBAAA,CAAUE,MAAV,CAAiBE,UAHP;EAIjBe,MAAM,EAAEnB,kBAAA,CAAUiC,IAJD;EAKjBlB,QAAQ,EAAEf,kBAAA,CAAUiC,IALH;EAMjB3C,OAAO,EAAEU,kBAAA,CAAUG,IANF;EAOjBpB,OAAO,EAAEiB,kBAAA,CAAUC,KAAV,CAAgB;IACvBd,UAAU,EAAEa,kBAAA,CAAUE,MADC;IAEvBb,WAAW,EAAEW,kBAAA,CAAUE,MAFA;IAGvBd,UAAU,EAAEY,kBAAA,CAAUE,MAHC;IAIvBZ,OAAO,EAAEU,kBAAA,CAAUG;EAJI,CAAhB;AAPQ,C;eAuFNE,W"}
@@ -39,7 +39,6 @@ declare namespace Progression {
39
39
  active: PropTypes.Requireable<boolean>;
40
40
  disabled: PropTypes.Requireable<boolean>;
41
41
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
42
- className: PropTypes.Requireable<string>;
43
42
  toolTip: PropTypes.Requireable<PropTypes.InferProps<{
44
43
  preMessage: PropTypes.Requireable<string>;
45
44
  linkMessage: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/activity/index.js"],"names":[],"mappings":";AAmBA,0EA0GC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/activity/index.js"],"names":[],"mappings":";AAeA,0EAuGC"}