@coorpacademy/components 11.20.6-alpha.4 → 11.20.6-alpha.7

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 (57) hide show
  1. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  2. package/es/molecule/cm-popin/index.js +5 -3
  3. package/es/molecule/cm-popin/index.js.map +1 -1
  4. package/es/molecule/cm-popin/types.d.ts +4 -0
  5. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  6. package/es/molecule/cm-popin/types.js +7 -1
  7. package/es/molecule/cm-popin/types.js.map +1 -1
  8. package/es/template/app-player/loading/index.d.ts +4 -0
  9. package/es/template/app-player/player/index.d.ts +8 -0
  10. package/es/template/app-player/player/slides/index.d.ts +4 -0
  11. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  12. package/es/template/app-player/popin-correction/index.d.ts +4 -0
  13. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  14. package/es/template/app-player/popin-end/index.d.ts +4 -0
  15. package/es/template/app-review/index.d.ts +4 -0
  16. package/es/template/app-review/index.d.ts.map +1 -1
  17. package/es/template/app-review/player/prop-types.d.ts +4 -0
  18. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  19. package/es/template/app-review/prop-types.d.ts +4 -0
  20. package/es/template/app-review/prop-types.d.ts.map +1 -1
  21. package/es/template/back-office/brand-update/index.d.ts +4 -0
  22. package/es/template/common/dashboard/index.d.ts +8 -0
  23. package/es/template/common/search-page/index.d.ts +4 -0
  24. package/es/template/external-course/index.d.ts +4 -0
  25. package/es/util/button-icons.d.ts +1 -0
  26. package/es/util/button-icons.d.ts.map +1 -1
  27. package/es/util/button-icons.js +3 -2
  28. package/es/util/button-icons.js.map +1 -1
  29. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  30. package/lib/molecule/cm-popin/index.js +4 -2
  31. package/lib/molecule/cm-popin/index.js.map +1 -1
  32. package/lib/molecule/cm-popin/types.d.ts +4 -0
  33. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  34. package/lib/molecule/cm-popin/types.js +9 -1
  35. package/lib/molecule/cm-popin/types.js.map +1 -1
  36. package/lib/template/app-player/loading/index.d.ts +4 -0
  37. package/lib/template/app-player/player/index.d.ts +8 -0
  38. package/lib/template/app-player/player/slides/index.d.ts +4 -0
  39. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  40. package/lib/template/app-player/popin-correction/index.d.ts +4 -0
  41. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  42. package/lib/template/app-player/popin-end/index.d.ts +4 -0
  43. package/lib/template/app-review/index.d.ts +4 -0
  44. package/lib/template/app-review/index.d.ts.map +1 -1
  45. package/lib/template/app-review/player/prop-types.d.ts +4 -0
  46. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  47. package/lib/template/app-review/prop-types.d.ts +4 -0
  48. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  49. package/lib/template/back-office/brand-update/index.d.ts +4 -0
  50. package/lib/template/common/dashboard/index.d.ts +8 -0
  51. package/lib/template/common/search-page/index.d.ts +4 -0
  52. package/lib/template/external-course/index.d.ts +4 -0
  53. package/lib/util/button-icons.d.ts +1 -0
  54. package/lib/util/button-icons.d.ts.map +1 -1
  55. package/lib/util/button-icons.js +2 -1
  56. package/lib/util/button-icons.js.map +1 -1
  57. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";AAgCA,kDAgQC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";AAiCA,kDAkQC"}
@@ -1,5 +1,5 @@
1
1
  import React, { useRef, useEffect, useMemo } from 'react';
2
- import { NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond, NovaSolidApplicationsWindowUpload3 as WindowUpload, NovaLineSettingsCookie as Cookie, NovaSolidSpaceMoonRocket as MoonRocket, NovaCompositionCoorpacademyPadlock as LockIcon, NovaLineStatusCheckCircle1 as CheckCircle1, NovaSolidFilesBasicFileLines as FileLinesIcon } from '@coorpacademy/nova-icons';
2
+ import { NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond, NovaSolidApplicationsWindowUpload3 as WindowUpload, NovaLineSettingsCookie as Cookie, NovaSolidSpaceMoonRocket as MoonRocket, NovaCompositionCoorpacademyPadlock as LockIcon, NovaLineStatusCheckCircle1 as CheckCircle1, NovaSolidFilesBasicFileLines as FileLinesIcon, NovaSolidInterfaceFeedbackInterfaceAlertRounded as AlertIcon } from '@coorpacademy/nova-icons';
3
3
  import map from 'lodash/fp/map';
4
4
  import isEmpty from 'lodash/fp/isEmpty';
5
5
  import classNames from 'classnames';
@@ -44,7 +44,8 @@ const CMPopin = props => {
44
44
  AlertDiamond,
45
45
  WindowUpload,
46
46
  MoonRocket,
47
- CheckCircle1
47
+ CheckCircle1,
48
+ AlertIcon
48
49
  };
49
50
  const LogoComponent = logo[icon];
50
51
  const backgroundImageStyle = backgroundImageUrl ? {
@@ -229,7 +230,8 @@ const CMPopin = props => {
229
230
  "data-name": `cm-popin-cta-${secondButton.type}`,
230
231
  "aria-label": secondButton['aria-label'],
231
232
  type: secondButton.type,
232
- customStyle: secondButton.customStyle
233
+ customStyle: secondButton.customStyle,
234
+ icon: secondButton.icon
233
235
  })) : null, thirdButton ? /*#__PURE__*/React.createElement("div", {
234
236
  className: thirdButton.largeButton ? style.largeButton : style.button
235
237
  }, /*#__PURE__*/React.createElement(Cta, {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useRef","useEffect","useMemo","NovaSolidInterfaceFeedbackInterfaceAlertDiamond","AlertDiamond","NovaSolidApplicationsWindowUpload3","WindowUpload","NovaLineSettingsCookie","Cookie","NovaSolidSpaceMoonRocket","MoonRocket","NovaCompositionCoorpacademyPadlock","LockIcon","NovaLineStatusCheckCircle1","CheckCircle1","NovaSolidFilesBasicFileLines","FileLinesIcon","map","isEmpty","classNames","Provider","Cta","ButtonLinkIconOnly","InputSwitch","Title","CardsGrid","ListItems","style","propTypes","IconType","lockedContent","lockIcon","fileZipped","filesListIconContainer","filesListIcon","CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","items","logo","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","handleCloseButton","nodeRef","closePopin","e","current","contains","target","handleKeyDown","key","document","addEventListener","removeEventListener","renderHeader","title","headerIcon","TopTitleIcon","headerContent","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","convert","cap","el","type","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","renderItems","list","itemsContainer","filesListContainer","wrapperPopinStyle","popinCookie","popinFilesList","popinItems","popin","background","popinHeader","onCloseButton","cookieTitleContainer","titleContainer","contentSection","message","__html","descriptionBtn","buttonContainer","largeButton","button","label","handleOnclick","customStyle","contextTypes","translate","childContextTypes"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React, {useRef, useEffect, useMemo} from 'react';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket,\n NovaCompositionCoorpacademyPadlock as LockIcon,\n NovaLineStatusCheckCircle1 as CheckCircle1,\n NovaSolidFilesBasicFileLines as FileLinesIcon\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport classNames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Cta from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\nimport style from './style.css';\nimport propTypes from './types';\n\nconst IconType = {\n lockedContent: <LockIcon className={style.lockIcon} />,\n fileZipped: (\n <div className={style.filesListIconContainer}>\n <FileLinesIcon className={style.filesListIcon} />\n </div>\n )\n};\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth,\n items\n } = props;\n const logo = {\n AlertDiamond,\n WindowUpload,\n MoonRocket,\n CheckCircle1\n };\n const LogoComponent = logo[icon];\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const handleCloseButton = useMemo(() => () => onClose(), [onClose]);\n const nodeRef = useRef(null);\n useEffect(() => {\n if (mode === 'items') {\n const closePopin = e => {\n if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {\n handleCloseButton();\n }\n };\n const handleKeyDown = e => {\n if (e?.key === 'Escape') {\n handleCloseButton();\n }\n };\n document.addEventListener('click', closePopin);\n document.addEventListener('touchstart', closePopin);\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('click', closePopin);\n document.removeEventListener('touchstart', closePopin);\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [handleCloseButton, mode, onClose]);\n const renderHeader = () => {\n if (header) {\n const {title, headerIcon, backgroundImage} = header;\n const TopTitleIcon = IconType[headerIcon];\n\n return (\n <>\n {title ? (\n <div className={style.headerContent}>\n {TopTitleIcon}\n <Title {...title} />\n </div>\n ) : null}\n {backgroundImage ? (\n <img className={style.headerBackground} src={backgroundImage} />\n ) : null}\n </>\n );\n }\n\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n\n return null;\n };\n\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n\n const renderItems = () => {\n const {type, list} = items;\n if (isEmpty(list)) return null;\n\n if (type === 'content')\n return (\n <div className={style.itemsContainer} data-name={'cm-popin-cards'}>\n <CardsGrid {...list} />\n </div>\n );\n if (type === 'list')\n return (\n <div className={style.filesListContainer}>\n <ListItems {...list} />\n </div>\n );\n\n return null;\n };\n const wrapperPopinStyle = classNames(\n mode === 'cookie' && style.popinCookie,\n mode === 'list' && style.popinFilesList,\n mode === 'items' && style.popinItems,\n style.popin\n );\n return (\n <div\n className={mode !== 'cookie' ? style.background : null}\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={wrapperPopinStyle} ref={nodeRef}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <div className={style.onCloseButton}>\n <ButtonLinkIconOnly\n onClick={handleCloseButton}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n </div>\n ) : null}\n </header>\n {mode !== 'items' && mode !== 'list' ? (\n <div\n className={\n mode === 'cookie' || mode === 'information'\n ? style.cookieTitleContainer\n : style.titleContainer\n }\n >\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n {content ? (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n ) : null}\n </div>\n {descriptionText ? (\n <p\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n ) : null}\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {!isEmpty(items) ? renderItems() : null}\n {renderBtnSwitch()}\n {firstButton || secondButton || thirdButton ? (\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n aria-label={firstButton['aria-label']}\n type={firstButton.type}\n customStyle={firstButton.customStyle}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-label={secondButton['aria-label']}\n type={secondButton.type}\n customStyle={secondButton.customStyle}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={thirdButton.label}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n aria-label={thirdButton['aria-label']}\n type={thirdButton.type}\n customStyle={thirdButton.customStyle}\n />\n </div>\n ) : null}\n </div>\n ) : null}\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = propTypes;\nCMPopin.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default CMPopin;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,MAAf,EAAuBC,SAAvB,EAAkCC,OAAlC,QAAgD,OAAhD;AACA,SACEC,+CAA+C,IAAIC,YADrD,EAEEC,k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ApCN,CADD,GAuCG,IArFN,CALF,CADF;AA+FD,CAhQD;;AAkQAtF,OAAO,CAACP,SAAR,2CAAoBA,SAApB;AACAO,OAAO,CAACuF,YAAR,GAAuB;EACrBC,SAAS,EAAEvG,QAAQ,CAACwG,iBAAT,CAA2BD;AADjB,CAAvB;AAIA,eAAexF,OAAf"}
1
+ {"version":3,"file":"index.js","names":["React","useRef","useEffect","useMemo","NovaSolidInterfaceFeedbackInterfaceAlertDiamond","AlertDiamond","NovaSolidApplicationsWindowUpload3","WindowUpload","NovaLineSettingsCookie","Cookie","NovaSolidSpaceMoonRocket","MoonRocket","NovaCompositionCoorpacademyPadlock","LockIcon","NovaLineStatusCheckCircle1","CheckCircle1","NovaSolidFilesBasicFileLines","FileLinesIcon","NovaSolidInterfaceFeedbackInterfaceAlertRounded","AlertIcon","map","isEmpty","classNames","Provider","Cta","ButtonLinkIconOnly","InputSwitch","Title","CardsGrid","ListItems","style","propTypes","IconType","lockedContent","lockIcon","fileZipped","filesListIconContainer","filesListIcon","CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","items","logo","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","handleCloseButton","nodeRef","closePopin","e","current","contains","target","handleKeyDown","key","document","addEventListener","removeEventListener","renderHeader","title","headerIcon","TopTitleIcon","headerContent","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","convert","cap","el","type","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","renderItems","list","itemsContainer","filesListContainer","wrapperPopinStyle","popinCookie","popinFilesList","popinItems","popin","background","popinHeader","onCloseButton","cookieTitleContainer","titleContainer","contentSection","message","__html","descriptionBtn","buttonContainer","largeButton","button","label","handleOnclick","customStyle","contextTypes","translate","childContextTypes"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React, {useRef, useEffect, useMemo} from 'react';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket,\n NovaCompositionCoorpacademyPadlock as LockIcon,\n NovaLineStatusCheckCircle1 as CheckCircle1,\n NovaSolidFilesBasicFileLines as FileLinesIcon,\n NovaSolidInterfaceFeedbackInterfaceAlertRounded as AlertIcon\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport classNames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Cta from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\nimport style from './style.css';\nimport propTypes from './types';\n\nconst IconType = {\n lockedContent: <LockIcon className={style.lockIcon} />,\n fileZipped: (\n <div className={style.filesListIconContainer}>\n <FileLinesIcon className={style.filesListIcon} />\n </div>\n )\n};\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth,\n items\n } = props;\n const logo = {\n AlertDiamond,\n WindowUpload,\n MoonRocket,\n CheckCircle1,\n AlertIcon\n };\n const LogoComponent = logo[icon];\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const handleCloseButton = useMemo(() => () => onClose(), [onClose]);\n const nodeRef = useRef(null);\n useEffect(() => {\n if (mode === 'items') {\n const closePopin = e => {\n if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {\n handleCloseButton();\n }\n };\n const handleKeyDown = e => {\n if (e?.key === 'Escape') {\n handleCloseButton();\n }\n };\n document.addEventListener('click', closePopin);\n document.addEventListener('touchstart', closePopin);\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('click', closePopin);\n document.removeEventListener('touchstart', closePopin);\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [handleCloseButton, mode, onClose]);\n const renderHeader = () => {\n if (header) {\n const {title, headerIcon, backgroundImage} = header;\n const TopTitleIcon = IconType[headerIcon];\n\n return (\n <>\n {title ? (\n <div className={style.headerContent}>\n {TopTitleIcon}\n <Title {...title} />\n </div>\n ) : null}\n {backgroundImage ? (\n <img className={style.headerBackground} src={backgroundImage} />\n ) : null}\n </>\n );\n }\n\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n\n return null;\n };\n\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n\n const renderItems = () => {\n const {type, list} = items;\n if (isEmpty(list)) return null;\n\n if (type === 'content')\n return (\n <div className={style.itemsContainer} data-name={'cm-popin-cards'}>\n <CardsGrid {...list} />\n </div>\n );\n if (type === 'list')\n return (\n <div className={style.filesListContainer}>\n <ListItems {...list} />\n </div>\n );\n\n return null;\n };\n const wrapperPopinStyle = classNames(\n mode === 'cookie' && style.popinCookie,\n mode === 'list' && style.popinFilesList,\n mode === 'items' && style.popinItems,\n style.popin\n );\n return (\n <div\n className={mode !== 'cookie' ? style.background : null}\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={wrapperPopinStyle} ref={nodeRef}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <div className={style.onCloseButton}>\n <ButtonLinkIconOnly\n onClick={handleCloseButton}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n </div>\n ) : null}\n </header>\n {mode !== 'items' && mode !== 'list' ? (\n <div\n className={\n mode === 'cookie' || mode === 'information'\n ? style.cookieTitleContainer\n : style.titleContainer\n }\n >\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n {content ? (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n ) : null}\n </div>\n {descriptionText ? (\n <p\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n ) : null}\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {!isEmpty(items) ? renderItems() : null}\n {renderBtnSwitch()}\n {firstButton || secondButton || thirdButton ? (\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n aria-label={firstButton['aria-label']}\n type={firstButton.type}\n customStyle={firstButton.customStyle}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-label={secondButton['aria-label']}\n type={secondButton.type}\n customStyle={secondButton.customStyle}\n icon={secondButton.icon}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={thirdButton.label}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n aria-label={thirdButton['aria-label']}\n type={thirdButton.type}\n customStyle={thirdButton.customStyle}\n />\n </div>\n ) : null}\n </div>\n ) : null}\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = propTypes;\nCMPopin.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default CMPopin;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,MAAf,EAAuBC,SAAvB,EAAkCC,OAAlC,QAAgD,OAAhD;AACA,SACEC,+CAA+C,IAAIC,YADrD,EAEEC,kCAAkC,IAAIC,YAFxC,EAGEC,sBAAsB,IAAIC,MAH5B,EAIEC,wBAAwB,IAAIC,UAJ9B,EAKEC,kCAAkC,IAAIC,QALxC,EAMEC,0BAA0B,IAAIC,YANhC,EAOEC,4BAA4B,IAAIC,aAPlC,EAQEC,+CAA+C,IAAIC,SARrD,QASO,0BATP;AAUA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,GAAP,MAAgB,wBAAhB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AACA,OAAOC,SAAP,MAAsB,SAAtB;AAEA,MAAMC,QAAQ,GAAG;EACfC,aAAa,eAAE,oBAAC,QA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ACgF,aAFxB;IAGE,aAAY,gBAAehF,YAAY,CAACgD,IAAK,EAH/C;IAIE,cAAYhD,YAAY,CAAC,YAAD,CAJ1B;IAKE,IAAI,EAAEA,YAAY,CAACgD,IALrB;IAME,WAAW,EAAEhD,YAAY,CAACiF,WAN5B;IAOE,IAAI,EAAEjF,YAAY,CAACG;EAPrB,EADF,CADW,GAYT,IAzBN,EA0BGG,WAAW,gBACV;IAAK,SAAS,EAAEA,WAAW,CAACuE,WAAZ,GAA0B1F,KAAK,CAAC0F,WAAhC,GAA8C1F,KAAK,CAAC2F;EAApE,gBACE,oBAAC,GAAD;IACE,KAAK,EAAExE,WAAW,CAACyE,KADrB;IAEE,OAAO,EAAEzE,WAAW,CAAC0E,aAFvB;IAGE,aAAY,gBAAe1E,WAAW,CAAC0C,IAAK,EAH9C;IAIE,cAAY1C,WAAW,CAAC,YAAD,CAJzB;IAKE,IAAI,EAAEA,WAAW,CAAC0C,IALpB;IAME,WAAW,EAAE1C,WAAW,CAAC2E;EAN3B,EADF,CADU,GAWR,IArCN,CADD,GAwCG,IAtFN,CALF,CADF;AAgGD,CAlQD;;AAoQAtF,OAAO,CAACP,SAAR,2CAAoBA,SAApB;AACAO,OAAO,CAACuF,YAAR,GAAuB;EACrBC,SAAS,EAAEvG,QAAQ,CAACwG,iBAAT,CAA2BD;AADjB,CAAvB;AAIA,eAAexF,OAAf"}
@@ -32,6 +32,10 @@ declare const propTypes: {
32
32
  'aria-label': PropTypes.Requireable<string>;
33
33
  largeButton: PropTypes.Requireable<boolean>;
34
34
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
35
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
36
+ position: PropTypes.Requireable<string>;
37
+ type: PropTypes.Requireable<string>;
38
+ }>>;
35
39
  }>>;
36
40
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
37
41
  label: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":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AChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;QACzB,IAAI,EACA,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,GAChD,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;CACH,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,9 +1,11 @@
1
+ import _keys from "lodash/fp/keys";
1
2
  import PropTypes from 'prop-types';
2
3
  import Cta from '../../atom/button-link';
3
4
  import InputSwitch from '../../atom/input-switch';
4
5
  import Title from '../../atom/title';
5
6
  import CardsGrid from '../../organism/cards-grid';
6
7
  import ListItems from '../../organism/list-items';
8
+ import { ICONS } from '../../util/button-icons';
7
9
  const propTypes = {
8
10
  content: PropTypes.string,
9
11
  mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items', 'list']),
@@ -26,7 +28,11 @@ const propTypes = {
26
28
  type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),
27
29
  'aria-label': PropTypes.string,
28
30
  largeButton: PropTypes.bool,
29
- customStyle: Cta.propTypes.customStyle
31
+ customStyle: Cta.propTypes.customStyle,
32
+ icon: PropTypes.shape({
33
+ position: PropTypes.oneOf(['right', 'left']),
34
+ type: PropTypes.oneOf(_keys(ICONS))
35
+ })
30
36
  }),
31
37
  thirdButton: PropTypes.shape({
32
38
  label: PropTypes.string,
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","Cta","InputSwitch","Title","CardsGrid","ListItems","propTypes","content","string","mode","oneOf","header","shape","title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","headerSubtitle","descriptionBtnTxt","listBtnSwicth","arrayOf","items","list","oneOfType"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport {TitleProps} from '../../atom/title/types';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items', 'list']),\n header: PropTypes.shape({\n title: PropTypes.shape(Title.propTypes),\n headerIcon: PropTypes.string,\n backgroundImage: PropTypes.string\n }),\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n headerSubtitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),\n items: PropTypes.shape({\n type: PropTypes.oneOf(['content', 'list']),\n list: PropTypes.oneOfType([\n PropTypes.shape(CardsGrid.propTypes),\n PropTypes.shape(ListItems.propTypes)\n ])\n })\n};\n\ntype PopinHeaderProps = {\n title: TitleProps;\n backgroundImage: string;\n headerIcon: string;\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';\n onClose?: () => void;\n popinHeader?: PopinHeaderProps;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n items?: {\n type: 'content' | 'list';\n list:\n | PropTypes.InferProps<typeof CardsGrid.propTypes>\n | PropTypes.InferProps<typeof ListItems.propTypes>;\n };\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,wBAAhB;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AAEA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AAEA,MAAMC,SAAS,GAAG;EAChBC,OAAO,EAAEP,SAAS,CAACQ,MADH;EAEhBC,IAAI,EAAET,SAAS,CAACU,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,EAAmC,OAAnC,EAA4C,MAA5C,CAAhB,CAFU;EAGhBC,MAAM,EAAEX,SAAS,CAACY,KAAV,CAAgB;IACtBC,KAAK,EAAEb,SAAS,CAACY,KAAV,CAAgBT,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,CAAciB;EANA,CAAhB,CAxBG;EAgChBG,OAAO,EAAE1B,SAAS,CAACmB,IAhCH;EAiChBQ,IAAI,EAAE3B,SAAS,CAACQ,MAjCA;EAkChBoB,kBAAkB,EAAE5B,SAAS,CAACQ,MAlCd;EAmChBqB,eAAe,EAAE7B,SAAS,CAACQ,MAnCX;EAoChBsB,WAAW,EAAE9B,SAAS,CAACQ,MApCP;EAqChBuB,cAAc,EAAE/B,SAAS,CAACQ,MArCV;EAsChBwB,iBAAiB,EAAEhC,SAAS,CAACQ,MAtCb;EAuChByB,aAAa,EAAEjC,SAAS,CAACkC,OAAV,CAAkBlC,SAAS,CAACY,KAAV,CAAgBV,WAAW,CAACI,SAA5B,CAAlB,CAvCC;EAwChB6B,KAAK,EAAEnC,SAAS,CAACY,KAAV,CAAgB;IACrBU,IAAI,EAAEtB,SAAS,CAACU,KAAV,CAAgB,CAAC,SAAD,EAAY,MAAZ,CAAhB,CADe;IAErB0B,IAAI,EAAEpC,SAAS,CAACqC,SAAV,CAAoB,CACxBrC,SAAS,CAACY,KAAV,CAAgBR,SAAS,CAACE,SAA1B,CADwB,EAExBN,SAAS,CAACY,KAAV,CAAgBP,SAAS,CAACC,SAA1B,CAFwB,CAApB;EAFe,CAAhB;AAxCS,CAAlB;AAmFA,eAAeA,SAAf"}
1
+ {"version":3,"file":"types.js","names":["PropTypes","Cta","InputSwitch","Title","CardsGrid","ListItems","ICONS","propTypes","content","string","mode","oneOf","header","shape","title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","secondButton","icon","position","thirdButton","onClose","backgroundImageUrl","descriptionText","cookieTitle","headerSubtitle","descriptionBtnTxt","listBtnSwicth","arrayOf","items","list","oneOfType"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport {TitleProps} from '../../atom/title/types';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\nimport {ICONS} from '../../util/button-icons';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items', 'list']),\n header: PropTypes.shape({\n title: PropTypes.shape(Title.propTypes),\n headerIcon: PropTypes.string,\n backgroundImage: PropTypes.string\n }),\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle,\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS))\n })\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n headerSubtitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),\n items: PropTypes.shape({\n type: PropTypes.oneOf(['content', 'list']),\n list: PropTypes.oneOfType([\n PropTypes.shape(CardsGrid.propTypes),\n PropTypes.shape(ListItems.propTypes)\n ])\n })\n};\n\ntype PopinHeaderProps = {\n title: TitleProps;\n backgroundImage: string;\n headerIcon: string;\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';\n onClose?: () => void;\n popinHeader?: PopinHeaderProps;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n items?: {\n type: 'content' | 'list';\n list:\n | PropTypes.InferProps<typeof CardsGrid.propTypes>\n | PropTypes.InferProps<typeof ListItems.propTypes>;\n };\n};\n\nexport default propTypes;\n"],"mappings":";AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAOC,GAAP,MAAgB,wBAAhB;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AAEA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,SAAQC,KAAR,QAAoB,yBAApB;AAEA,MAAMC,SAAS,GAAG;EAChBC,OAAO,EAAER,SAAS,CAACS,MADH;EAEhBC,IAAI,EAAEV,SAAS,CAACW,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,EAAmC,OAAnC,EAA4C,MAA5C,CAAhB,CAFU;EAGhBC,MAAM,EAAEZ,SAAS,CAACa,KAAV,CAAgB;IACtBC,KAAK,EAAEd,SAAS,CAACa,KAAV,CAAgBV,KAAK,CAACI,SAAtB,CADe;IAEtBQ,UAAU,EAAEf,SAAS,CAACS,MAFA;IAGtBO,eAAe,EAAEhB,SAAS,CAACS;EAHL,CAAhB,CAHQ;EAQhBQ,WAAW,EAAEjB,SAAS,CAACa,KAAV,CAAgB;IAC3BK,KAAK,EAAElB,SAAS,CAACS,MADU;IAE3BU,aAAa,EAAEnB,SAAS,CAACoB,IAFE;IAG3B,cAAcpB,SAAS,CAACS,MAHG;IAI3BY,WAAW,EAAErB,SAAS,CAACsB,IAJI;IAK3BC,IA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AAkB,EAAE9B,SAAS,CAACS,MAtCd;EAuChBsB,eAAe,EAAE/B,SAAS,CAACS,MAvCX;EAwChBuB,WAAW,EAAEhC,SAAS,CAACS,MAxCP;EAyChBwB,cAAc,EAAEjC,SAAS,CAACS,MAzCV;EA0ChByB,iBAAiB,EAAElC,SAAS,CAACS,MA1Cb;EA2ChB0B,aAAa,EAAEnC,SAAS,CAACoC,OAAV,CAAkBpC,SAAS,CAACa,KAAV,CAAgBX,WAAW,CAACK,SAA5B,CAAlB,CA3CC;EA4ChB8B,KAAK,EAAErC,SAAS,CAACa,KAAV,CAAgB;IACrBU,IAAI,EAAEvB,SAAS,CAACW,KAAV,CAAgB,CAAC,SAAD,EAAY,MAAZ,CAAhB,CADe;IAErB2B,IAAI,EAAEtC,SAAS,CAACuC,SAAV,CAAoB,CACxBvC,SAAS,CAACa,KAAV,CAAgBT,SAAS,CAACG,SAA1B,CADwB,EAExBP,SAAS,CAACa,KAAV,CAAgBR,SAAS,CAACE,SAA1B,CAFwB,CAApB;EAFe,CAAhB;AA5CS,CAAlB;AAuFA,eAAeA,SAAf"}
@@ -34,6 +34,10 @@ declare namespace PlayerLoading {
34
34
  'aria-label': PropTypes.Requireable<string>;
35
35
  largeButton: PropTypes.Requireable<boolean>;
36
36
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
37
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
38
+ position: PropTypes.Requireable<string>;
39
+ type: PropTypes.Requireable<string>;
40
+ }>>;
37
41
  }>>;
38
42
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
39
43
  label: PropTypes.Requireable<string>;
@@ -85,6 +85,10 @@ declare namespace SlidePlayer {
85
85
  'aria-label': PropTypes.Requireable<string>;
86
86
  largeButton: PropTypes.Requireable<boolean>;
87
87
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
88
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
89
+ position: PropTypes.Requireable<string>;
90
+ type: PropTypes.Requireable<string>;
91
+ }>>;
88
92
  }>>;
89
93
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
90
94
  label: PropTypes.Requireable<string>;
@@ -329,6 +333,10 @@ declare namespace SlidePlayer {
329
333
  'aria-label': PropTypes.Requireable<string>;
330
334
  largeButton: PropTypes.Requireable<boolean>;
331
335
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
336
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
337
+ position: PropTypes.Requireable<string>;
338
+ type: PropTypes.Requireable<string>;
339
+ }>>;
332
340
  }>>;
333
341
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
334
342
  label: PropTypes.Requireable<string>;
@@ -91,6 +91,10 @@ declare namespace SlidesPlayer {
91
91
  'aria-label': PropTypes.Requireable<string>;
92
92
  largeButton: PropTypes.Requireable<boolean>;
93
93
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
94
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
95
+ position: PropTypes.Requireable<string>;
96
+ type: PropTypes.Requireable<string>;
97
+ }>>;
94
98
  }>>;
95
99
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
96
100
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
@@ -119,6 +119,10 @@ declare class PopinCorrection extends React.Component<any, any, any> {
119
119
  'aria-label': PropTypes.Requireable<string>;
120
120
  largeButton: PropTypes.Requireable<boolean>;
121
121
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
122
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
123
+ position: PropTypes.Requireable<string>;
124
+ type: PropTypes.Requireable<string>;
125
+ }>>;
122
126
  }>>;
123
127
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
124
128
  label: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
@@ -211,6 +211,10 @@ declare namespace PopinEnd {
211
211
  'aria-label': PropTypes.Requireable<string>;
212
212
  largeButton: PropTypes.Requireable<boolean>;
213
213
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
214
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
215
+ position: PropTypes.Requireable<string>;
216
+ type: PropTypes.Requireable<string>;
217
+ }>>;
214
218
  }>>;
215
219
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
216
220
  label: PropTypes.Requireable<string>;
@@ -542,6 +542,10 @@ declare const AppReview: {
542
542
  'aria-label': import("prop-types").Requireable<string>;
543
543
  largeButton: import("prop-types").Requireable<boolean>;
544
544
  customStyle: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
545
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<{
546
+ position: import("prop-types").Requireable<string>;
547
+ type: import("prop-types").Requireable<string>;
548
+ }>>;
545
549
  }>>;
546
550
  thirdButton: import("prop-types").Requireable<import("prop-types").InferProps<{
547
551
  label: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpD,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -542,6 +542,10 @@ declare const propTypes: {
542
542
  'aria-label': PropTypes.Requireable<string>;
543
543
  largeButton: PropTypes.Requireable<boolean>;
544
544
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
545
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
546
+ position: PropTypes.Requireable<string>;
547
+ type: PropTypes.Requireable<string>;
548
+ }>>;
545
549
  }>>;
546
550
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
547
551
  label: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,iBAAiB,GAAG;IAC9B,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B,CAAC"}
@@ -546,6 +546,10 @@ declare const propTypes: {
546
546
  'aria-label': PropTypes.Requireable<string>;
547
547
  largeButton: PropTypes.Requireable<boolean>;
548
548
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
549
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
550
+ position: PropTypes.Requireable<string>;
551
+ type: PropTypes.Requireable<string>;
552
+ }>>;
549
553
  }>>;
550
554
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
551
555
  label: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CA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ropTypes.Requireable<boolean>;
738
738
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
739
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
740
+ position: PropTypes.Requireable<string>;
741
+ type: PropTypes.Requireable<string>;
742
+ }>>;
739
743
  }>>;
740
744
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
741
745
  label: PropTypes.Requireable<string>;
@@ -35,6 +35,10 @@ declare namespace Dashboard {
35
35
  'aria-label': PropTypes.Requireable<string>;
36
36
  largeButton: PropTypes.Requireable<boolean>;
37
37
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
38
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
39
+ position: PropTypes.Requireable<string>;
40
+ type: PropTypes.Requireable<string>;
41
+ }>>;
38
42
  }>>;
39
43
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
40
44
  label: PropTypes.Requireable<string>;
@@ -282,6 +286,10 @@ declare namespace Dashboard {
282
286
  'aria-label': PropTypes.Requireable<string>;
283
287
  largeButton: PropTypes.Requireable<boolean>;
284
288
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
289
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
290
+ position: PropTypes.Requireable<string>;
291
+ type: PropTypes.Requireable<string>;
292
+ }>>;
285
293
  }>>;
286
294
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
287
295
  label: PropTypes.Requireable<string>;
@@ -207,6 +207,10 @@ declare namespace SearchPage {
207
207
  'aria-label': PropTypes.Requireable<string>;
208
208
  largeButton: PropTypes.Requireable<boolean>;
209
209
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
210
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
211
+ position: PropTypes.Requireable<string>;
212
+ type: PropTypes.Requireable<string>;
213
+ }>>;
210
214
  }>>;
211
215
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
212
216
  label: PropTypes.Requireable<string>;
@@ -52,6 +52,10 @@ declare namespace ExternalCourse {
52
52
  'aria-label': PropTypes.Requireable<string>;
53
53
  largeButton: PropTypes.Requireable<boolean>;
54
54
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
55
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
56
+ position: PropTypes.Requireable<string>;
57
+ type: PropTypes.Requireable<string>;
58
+ }>>;
55
59
  }>>;
56
60
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
57
61
  label: PropTypes.Requireable<string>;
@@ -18,5 +18,6 @@ export const ICONS: {
18
18
  down: any;
19
19
  pdf: any;
20
20
  back: any;
21
+ delete: any;
21
22
  };
22
23
  //# sourceMappingURL=button-icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;EAoBE"}
1
+ {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;EAqBE"}
@@ -1,4 +1,4 @@
1
- import { NovaSolidRemoveAddAddCircle1 as AddIcon, NovaCompositionCoorpacademyAnalytics as AnalyticsIcon, NovaSolidContentEditionBin as BinIcon, NovaCompositionCoorpacademyBulletPoint as BulletPointIcon, NovaCompositionNavigationArrowLeft as ChevronLeftIcon, NovaCompositionNavigationArrowRight as ChevronRightIcon, NovaSolidStatusClose as CloseIcon, NovaSolidContentEditionPencilWrite as EditIcon, NovaCompositionCoorpacademyEye as EyeIcon, NovaSolidContentContentViewModule1 as ListIcon, NovaSolidLoginLogout1 as LogoutIcon, NovaSolidApplicationsWindowUpload3 as PublishIcon, NovaSolidComputersSdCard as SaveIcon, NovaLineLoginKey1 as KlfIcon, NovaSolidFilesFoldersFolders as FoldersIcon, NovaSolidFilesBasicFileUpload2 as UploadIcon, NovaCompositionNavigationArrowDown as ArrowDown, NovaCompositionNavigationArrowLeft as ArrowLeft, NovaLineFilesOfficeFileOfficePdf as PDF } from '@coorpacademy/nova-icons';
1
+ import { NovaSolidRemoveAddAddCircle1 as AddIcon, NovaCompositionCoorpacademyAnalytics as AnalyticsIcon, NovaSolidContentEditionBin as BinIcon, NovaCompositionCoorpacademyBulletPoint as BulletPointIcon, NovaCompositionNavigationArrowLeft as ChevronLeftIcon, NovaCompositionNavigationArrowRight as ChevronRightIcon, NovaSolidStatusClose as CloseIcon, NovaSolidContentEditionPencilWrite as EditIcon, NovaCompositionCoorpacademyEye as EyeIcon, NovaSolidContentContentViewModule1 as ListIcon, NovaSolidLoginLogout1 as LogoutIcon, NovaSolidApplicationsWindowUpload3 as PublishIcon, NovaSolidComputersSdCard as SaveIcon, NovaLineLoginKey1 as KlfIcon, NovaSolidFilesFoldersFolders as FoldersIcon, NovaSolidFilesBasicFileUpload2 as UploadIcon, NovaCompositionNavigationArrowDown as ArrowDown, NovaCompositionNavigationArrowLeft as ArrowLeft, NovaLineFilesOfficeFileOfficePdf as PDF, NovaSolidContentEditionDelete1 as DeleteIcon } from '@coorpacademy/nova-icons';
2
2
  export const ICONS = {
3
3
  add: AddIcon,
4
4
  analytics: AnalyticsIcon,
@@ -18,6 +18,7 @@ export const ICONS = {
18
18
  upload: UploadIcon,
19
19
  down: ArrowDown,
20
20
  pdf: PDF,
21
- back: ArrowLeft
21
+ back: ArrowLeft,
22
+ delete: DeleteIcon
22
23
  };
23
24
  //# sourceMappingURL=button-icons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-icons.js","names":["NovaSolidRemoveAddAddCircle1","AddIcon","NovaCompositionCoorpacademyAnalytics","AnalyticsIcon","NovaSolidContentEditionBin","BinIcon","NovaCompositionCoorpacademyBulletPoint","BulletPointIcon","NovaCompositionNavigationArrowLeft","ChevronLeftIcon","NovaCompositionNavigationArrowRight","ChevronRightIcon","NovaSolidStatusClose","CloseIcon","NovaSolidContentEditionPencilWrite","EditIcon","NovaCompositionCoorpacademyEye","EyeIcon","NovaSolidContentContentViewModule1","ListIcon","NovaSolidLoginLogout1","LogoutIcon","NovaSolidApplicationsWindowUpload3","PublishIcon","NovaSolidComputersSdCard","SaveIcon","NovaLineLoginKey1","KlfIcon","NovaSolidFilesFoldersFolders","FoldersIcon","NovaSolidFilesBasicFileUpload2","UploadIcon","NovaCompositionNavigationArrowDown","ArrowDown","ArrowLeft","NovaLineFilesOfficeFileOfficePdf","PDF","ICONS","add","analytics","bin","close","edit","key","list","logout","publish","save","see","folders","upload","down","pdf","back"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaCompositionNavigationArrowLeft as ArrowLeft,\n NovaLineFilesOfficeFileOfficePdf as PDF\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIc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nB;AAnBa,CAAd"}
1
+ {"version":3,"file":"button-icons.js","names":["NovaSolidRemoveAddAddCircle1","AddIcon","NovaCompositionCoorpacademyAnalytics","AnalyticsIcon","NovaSolidContentEditionBin","BinIcon","NovaCompositionCoorpacademyBulletPoint","BulletPointIcon","NovaCompositionNavigationArrowLeft","ChevronLeftIcon","NovaCompositionNavigationArrowRight","ChevronRightIcon","NovaSolidStatusClose","CloseIcon","NovaSolidContentEditionPencilWrite","EditIcon","NovaCompositionCoorpacademyEye","EyeIcon","NovaSolidContentContentViewModule1","ListIcon","NovaSolidLoginLogout1","LogoutIcon","NovaSolidApplicationsWindowUpload3","PublishIcon","NovaSolidComputersSdCard","SaveIcon","NovaLineLoginKey1","KlfIcon","NovaSolidFilesFoldersFolders","FoldersIcon","NovaSolidFilesBasicFileUpload2","UploadIcon","NovaCompositionNavigationArrowDown","ArrowDown","ArrowLeft","NovaLineFilesOfficeFileOfficePdf","PDF","NovaSolidContentEditionDelete1","DeleteIcon","ICONS","add","analytics","bin","close","edit","key","list","logout","publish","save","see","folders","upload","down","pdf","back","delete"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaCompositionNavigationArrowLeft as ArrowLeft,\n NovaLineFilesOfficeFileOfficePdf as PDF,\n NovaSolidContentEditionDelete1 as DeleteIcon\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon,\n down: ArrowDown,\n pdf: PDF,\n back: ArrowLeft,\n delete: DeleteIcon\n};\n"],"mappings":"AAAA,SACEA,4BAA4B,IAAIC,OADlC,EAEEC,oCAAoC,IAAIC,aAF1C,EAGEC,0BAA0B,IAAIC,OAHhC,EAIEC,sCAAsC,IAAIC,eAJ5C,EAKEC,kCAAkC,IAAIC,eALxC,EAMEC,mCAAmC,IAAIC,gBANzC,EAOEC,oBAAoB,IAAIC,SAP1B,EAQEC,kCAAkC,IAAIC,QARxC,EASEC,8BAA8B,IAAIC,OATpC,EAUEC,kCAAkC,IAAIC,QAVxC,EAWEC,qBAAqB,IAAIC,UAX3B,EAYEC,kCAAkC,IAAIC,WAZxC,EAaEC,wBAAwB,IAAIC,QAb9B,EAcEC,iBAAiB,IAAIC,OAdvB,EAeEC,4BAA4B,IAAIC,WAflC,EAgBEC,8BAA8B,IAAIC,UAhBpC,EAiBEC,kCAAkC,IAAIC,SAjBxC,EAkBEzB,kCAAkC,IAAI0B,SAlBxC,EAmBEC,gCAAgC,IAAIC,GAnBtC,EAoBEC,8BAA8B,IAAIC,UApBpC,QAqBO,0BArBP;AAuBA,OAAO,MAAMC,KAAK,GAAG;EACnBC,GAAG,EAAEvC,OADc;EAEnBwC,SAAS,EAAEtC,aAFQ;EAGnBuC,GAAG,EAAErC,OAHc;EAInB,gBAAgBE,eAJG;EAKnB,gBAAgBE,eALG;EAMnB,iBAAiBE,gBANE;EAOnBgC,KAAK,EAAE9B,SAPY;EAQnB+B,IAAI,EAAE7B,QARa;EASnB8B,GAAG,EAAElB,OATc;EAUnBmB,IAAI,EAAE3B,QAVa;EAWnB4B,MAAM,EAAE1B,UAXW;EAYnB2B,OAAO,EAAEzB,WAZU;EAanB0B,IAAI,EAAExB,QAba;EAcnByB,GAAG,EAAEjC,OAdc;EAenBkC,OAAO,EAAEtB,WAfU;EAgBnBuB,MAAM,EAAErB,UAhBW;EAiBnBsB,IAAI,EAAEpB,SAjBa;EAkBnBqB,GAAG,EAAElB,GAlBc;EAmBnBmB,IAAI,EAAErB,SAnBa;EAoBnBsB,MAAM,EAAElB;AApBW,CAAd"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";AAgCA,kDAgQC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";AAiCA,kDAkQC"}
@@ -69,7 +69,8 @@ const CMPopin = props => {
69
69
  AlertDiamond: _novaIcons.NovaSolidInterfaceFeedbackInterfaceAlertDiamond,
70
70
  WindowUpload: _novaIcons.NovaSolidApplicationsWindowUpload3,
71
71
  MoonRocket: _novaIcons.NovaSolidSpaceMoonRocket,
72
- CheckCircle1: _novaIcons.NovaLineStatusCheckCircle1
72
+ CheckCircle1: _novaIcons.NovaLineStatusCheckCircle1,
73
+ AlertIcon: _novaIcons.NovaSolidInterfaceFeedbackInterfaceAlertRounded
73
74
  };
74
75
  const LogoComponent = logo[icon];
75
76
  const backgroundImageStyle = backgroundImageUrl ? {
@@ -254,7 +255,8 @@ const CMPopin = props => {
254
255
  "data-name": `cm-popin-cta-${secondButton.type}`,
255
256
  "aria-label": secondButton['aria-label'],
256
257
  type: secondButton.type,
257
- customStyle: secondButton.customStyle
258
+ customStyle: secondButton.customStyle,
259
+ icon: secondButton.icon
258
260
  })) : null, thirdButton ? /*#__PURE__*/_react.default.createElement("div", {
259
261
  className: thirdButton.largeButton ? _style.default.largeButton : _style.default.button
260
262
  }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["IconType","lockedContent","style","lockIcon","fileZipped","filesListIconContainer","filesListIcon","CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","items","logo","AlertDiamond","WindowUpload","MoonRocket","CheckCircle1","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","handleCloseButton","useMemo","nodeRef","useRef","useEffect","closePopin","e","current","contains","target","handleKeyDown","key","document","addEventListener","removeEventListener","renderHeader","title","headerIcon","TopTitleIcon","headerContent","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","map","convert","cap","el","type","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","renderItems","list","isEmpty","itemsContainer","filesListContainer","wrapperPopinStyle","classNames","popinCookie","popinFilesList","popinItems","popin","background","popinHeader","onCloseButton","cookieTitleContainer","titleContainer","contentSection","message","__html","descriptionBtn","buttonContainer","largeButton","button","label","handleOnclick","customStyle","propTypes","contextTypes","translate","Provider","childContextTypes"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React, {useRef, useEffect, useMemo} from 'react';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket,\n NovaCompositionCoorpacademyPadlock as LockIcon,\n NovaLineStatusCheckCircle1 as CheckCircle1,\n NovaSolidFilesBasicFileLines as FileLinesIcon\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport classNames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Cta from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\nimport style from './style.css';\nimport propTypes from './types';\n\nconst IconType = {\n lockedContent: <LockIcon className={style.lockIcon} />,\n fileZipped: (\n <div className={style.filesListIconContainer}>\n <FileLinesIcon className={style.filesListIcon} />\n </div>\n )\n};\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth,\n items\n } = props;\n const logo = {\n AlertDiamond,\n WindowUpload,\n MoonRocket,\n CheckCircle1\n };\n const LogoComponent = logo[icon];\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const handleCloseButton = useMemo(() => () => onClose(), [onClose]);\n const nodeRef = useRef(null);\n useEffect(() => {\n if (mode === 'items') {\n const closePopin = e => {\n if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {\n handleCloseButton();\n }\n };\n const handleKeyDown = e => {\n if (e?.key === 'Escape') {\n handleCloseButton();\n }\n };\n document.addEventListener('click', closePopin);\n document.addEventListener('touchstart', closePopin);\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('click', closePopin);\n document.removeEventListener('touchstart', closePopin);\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [handleCloseButton, mode, onClose]);\n const renderHeader = () => {\n if (header) {\n const {title, headerIcon, backgroundImage} = header;\n const TopTitleIcon = IconType[headerIcon];\n\n return (\n <>\n {title ? (\n <div className={style.headerContent}>\n {TopTitleIcon}\n <Title {...title} />\n </div>\n ) : null}\n {backgroundImage ? (\n <img className={style.headerBackground} src={backgroundImage} />\n ) : null}\n </>\n );\n }\n\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n\n return null;\n };\n\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n\n const renderItems = () => {\n const {type, list} = items;\n if (isEmpty(list)) return null;\n\n if (type === 'content')\n return (\n <div className={style.itemsContainer} data-name={'cm-popin-cards'}>\n <CardsGrid {...list} />\n </div>\n );\n if (type === 'list')\n return (\n <div className={style.filesListContainer}>\n <ListItems {...list} />\n </div>\n );\n\n return null;\n };\n const wrapperPopinStyle = classNames(\n mode === 'cookie' && style.popinCookie,\n mode === 'list' && style.popinFilesList,\n mode === 'items' && style.popinItems,\n style.popin\n );\n return (\n <div\n className={mode !== 'cookie' ? style.background : null}\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={wrapperPopinStyle} ref={nodeRef}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <div className={style.onCloseButton}>\n <ButtonLinkIconOnly\n onClick={handleCloseButton}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n </div>\n ) : null}\n </header>\n {mode !== 'items' && mode !== 'list' ? (\n <div\n className={\n mode === 'cookie' || mode === 'information'\n ? style.cookieTitleContainer\n : style.titleContainer\n }\n >\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n {content ? (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n ) : null}\n </div>\n {descriptionText ? (\n <p\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n ) : null}\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {!isEmpty(items) ? renderItems() : null}\n {renderBtnSwitch()}\n {firstButton || secondButton || thirdButton ? (\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n aria-label={firstButton['aria-label']}\n type={firstButton.type}\n customStyle={firstButton.customStyle}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-label={secondButton['aria-label']}\n type={secondButton.type}\n customStyle={secondButton.customStyle}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={thirdButton.label}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n aria-label={thirdButton['aria-label']}\n type={thirdButton.type}\n customStyle={thirdButton.customStyle}\n />\n </div>\n ) : null}\n </div>\n ) : null}\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = propTypes;\nCMPopin.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default CMPopin;\n"],"mappings":";;;;;AAAA;;AACA;;AASA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,QAAQ,GAAG;EACfC,aAAa,eAAE,6BAAC,6CAAD;IAAU,SAAS,EAAEC,cAAA,CAAMC;EAA3B,EADA;EAEfC,UAAU,eACR;IAAK,SAAS,EAAEF,cAAA,CAAMG;EAAtB,gBACE,6BAAC,uCAAD;IAAe,SAAS,EAAEH,cAAA,CAAMI;EAAhC,EADF;AAHa,CAAjB;;AASA,MAAMC,OAAO,GAAGC,KAAK,IAAI;EACvB,MAAM;IACJC,OADI;IAEJC,IAAI,GAAG,OAFH;IAGJC,WAHI;IAIJC,YAJI;IAKJC,OALI;IAMJC,MANI;IAOJC,IAPI;IAQJC,kBARI;IASJC,eATI;IAUJC,WAVI;IAWJC,WAXI;IAYJC,iBAZI;IAaJC,aAbI;IAcJC;EAdI,IAeFd,KAfJ;EAgBA,MAAMe,IAAI,GAAG;IACXC,YAAY,EAAZA,0DADW;IAEXC,YAAY,EAAZA,6CAFW;IAGXC,UAAU,EAAVA,mCAHW;IAIXC,YAAY,EAAZA;EAJW,CAAb;EAMA,MAAMC,aAAa,GAAGL,IAAI,CAACR,IAAD,CAA1B;EAEA,MAAMc,oBAAoB,GAAGb,kBAAkB,GAC3C;IACEc,eAAe,EAAG,OAAMd,kBAAmB,GAD7C;IAEEe,cAAc,EAAE;EAFlB,CAD2C,GAK3C,IALJ;EAMA,MAAMC,iBAAiB,GAAG,IAAAC,cAAA,EAAQ,MAAM,MAAMpB,OAAO,EAA3B,EAA+B,CAACA,OAAD,CAA/B,CAA1B;EACA,MAAMqB,OAAO,GAAG,IAAAC,aAAA,EAAO,IAAP,CAAhB;EACA,IAAAC,gBAAA,EAAU,MAAM;IACd,IAAI1B,IAAI,KAAK,OAAb,EAAsB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AAY3F,WAAW,CAAC,YAAD,CAJzB;IAKE,IAAI,EAAEA,WAAW,CAACyD,IALpB;IAME,WAAW,EAAEzD,WAAW,CAAC4F;EAN3B,EADF,CADU,GAWR,IAZN,EAaG3F,YAAY,gBACX;IAAK,SAAS,EAAEA,YAAY,CAACuF,WAAb,GAA2BjG,cAAA,CAAMiG,WAAjC,GAA+CjG,cAAA,CAAMkG;EAArE,gBACE,6BAAC,mBAAD;IACE,KAAK,EAAExF,YAAY,CAACyF,KADtB;IAEE,OAAO,EAAEzF,YAAY,CAAC0F,aAFxB;IAGE,aAAY,gBAAe1F,YAAY,CAACwD,IAAK,EAH/C;IAIE,cAAYxD,YAAY,CAAC,YAAD,CAJ1B;IAKE,IAAI,EAAEA,YAAY,CAACwD,IALrB;IAME,WAAW,EAAExD,YAAY,CAAC2F;EAN5B,EADF,CADW,GAWT,IAxBN,EAyBGrF,WAAW,gBACV;IAAK,SAAS,EAAEA,WAAW,CAACiF,WAAZ,GAA0BjG,cAAA,CAAMiG,WAAhC,GAA8CjG,cAAA,CAAMkG;EAApE,gBACE,6BAAC,mBAAD;IACE,KAAK,EAAElF,WAAW,CAACmF,KADrB;IAEE,OAAO,EAAEnF,WAAW,CAACoF,aAFvB;IAGE,aAAY,gBAAepF,WAAW,CAACkD,IAAK,EAH9C;IAIE,cAAYlD,WAAW,CAAC,YAAD,CAJzB;IAKE,IAAI,EAAEA,WAAW,CAACkD,IALpB;IAME,WAAW,EAAElD,WAAW,CAACqF;EAN3B,EADF,CADU,GAWR,IApCN,CADD,GAuCG,IArFN,CALF,CADF;AA+FD,CAhQD;;AAkQAhG,OAAO,CAACiG,SAAR,2CAAoBA,cAApB;AACAjG,OAAO,CAACkG,YAAR,GAAuB;EACrBC,SAAS,EAAEC,iBAAA,CAASC,iBAAT,CAA2BF;AADjB,CAAvB;eAIenG,O"}
1
+ {"version":3,"file":"index.js","names":["IconType","lockedContent","style","lockIcon","fileZipped","filesListIconContainer","filesListIcon","CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","items","logo","AlertDiamond","WindowUpload","MoonRocket","CheckCircle1","AlertIcon","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","handleCloseButton","useMemo","nodeRef","useRef","useEffect","closePopin","e","current","contains","target","handleKeyDown","key","document","addEventListener","removeEventListener","renderHeader","title","headerIcon","TopTitleIcon","headerContent","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","map","convert","cap","el","type","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","renderItems","list","isEmpty","itemsContainer","filesListContainer","wrapperPopinStyle","classNames","popinCookie","popinFilesList","popinItems","popin","background","popinHeader","onCloseButton","cookieTitleContainer","titleContainer","contentSection","message","__html","descriptionBtn","buttonContainer","largeButton","button","label","handleOnclick","customStyle","propTypes","contextTypes","translate","Provider","childContextTypes"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React, {useRef, useEffect, useMemo} from 'react';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket,\n NovaCompositionCoorpacademyPadlock as LockIcon,\n NovaLineStatusCheckCircle1 as CheckCircle1,\n NovaSolidFilesBasicFileLines as FileLinesIcon,\n NovaSolidInterfaceFeedbackInterfaceAlertRounded as AlertIcon\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport classNames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Cta from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\nimport style from './style.css';\nimport propTypes from './types';\n\nconst IconType = {\n lockedContent: <LockIcon className={style.lockIcon} />,\n fileZipped: (\n <div className={style.filesListIconContainer}>\n <FileLinesIcon className={style.filesListIcon} />\n </div>\n )\n};\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth,\n items\n } = props;\n const logo = {\n AlertDiamond,\n WindowUpload,\n MoonRocket,\n CheckCircle1,\n AlertIcon\n };\n const LogoComponent = logo[icon];\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const handleCloseButton = useMemo(() => () => onClose(), [onClose]);\n const nodeRef = useRef(null);\n useEffect(() => {\n if (mode === 'items') {\n const closePopin = e => {\n if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {\n handleCloseButton();\n }\n };\n const handleKeyDown = e => {\n if (e?.key === 'Escape') {\n handleCloseButton();\n }\n };\n document.addEventListener('click', closePopin);\n document.addEventListener('touchstart', closePopin);\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('click', closePopin);\n document.removeEventListener('touchstart', closePopin);\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [handleCloseButton, mode, onClose]);\n const renderHeader = () => {\n if (header) {\n const {title, headerIcon, backgroundImage} = header;\n const TopTitleIcon = IconType[headerIcon];\n\n return (\n <>\n {title ? (\n <div className={style.headerContent}>\n {TopTitleIcon}\n <Title {...title} />\n </div>\n ) : null}\n {backgroundImage ? (\n <img className={style.headerBackground} src={backgroundImage} />\n ) : null}\n </>\n );\n }\n\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n\n return null;\n };\n\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n\n const renderItems = () => {\n const {type, list} = items;\n if (isEmpty(list)) return null;\n\n if (type === 'content')\n return (\n <div className={style.itemsContainer} data-name={'cm-popin-cards'}>\n <CardsGrid {...list} />\n </div>\n );\n if (type === 'list')\n return (\n <div className={style.filesListContainer}>\n <ListItems {...list} />\n </div>\n );\n\n return null;\n };\n const wrapperPopinStyle = classNames(\n mode === 'cookie' && style.popinCookie,\n mode === 'list' && style.popinFilesList,\n mode === 'items' && style.popinItems,\n style.popin\n );\n return (\n <div\n className={mode !== 'cookie' ? style.background : null}\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={wrapperPopinStyle} ref={nodeRef}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <div className={style.onCloseButton}>\n <ButtonLinkIconOnly\n onClick={handleCloseButton}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n </div>\n ) : null}\n </header>\n {mode !== 'items' && mode !== 'list' ? (\n <div\n className={\n mode === 'cookie' || mode === 'information'\n ? style.cookieTitleContainer\n : style.titleContainer\n }\n >\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n {content ? (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n ) : null}\n </div>\n {descriptionText ? (\n <p\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n ) : null}\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {!isEmpty(items) ? renderItems() : null}\n {renderBtnSwitch()}\n {firstButton || secondButton || thirdButton ? (\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n aria-label={firstButton['aria-label']}\n type={firstButton.type}\n customStyle={firstButton.customStyle}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-label={secondButton['aria-label']}\n type={secondButton.type}\n customStyle={secondButton.customStyle}\n icon={secondButton.icon}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={thirdButton.label}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n aria-label={thirdButton['aria-label']}\n type={thirdButton.type}\n customStyle={thirdButton.customStyle}\n />\n </div>\n ) : null}\n </div>\n ) : null}\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = propTypes;\nCMPopin.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default CMPopin;\n"],"mappings":";;;;;AAAA;;AACA;;AAUA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA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SAAS,EAAEA,YAAY,CAACwF,WAAb,GAA2BlG,cAAA,CAAMkG,WAAjC,GAA+ClG,cAAA,CAAMmG;EAArE,gBACE,6BAAC,mBAAD;IACE,KAAK,EAAEzF,YAAY,CAAC0F,KADtB;IAEE,OAAO,EAAE1F,YAAY,CAAC2F,aAFxB;IAGE,aAAY,gBAAe3F,YAAY,CAACyD,IAAK,EAH/C;IAIE,cAAYzD,YAAY,CAAC,YAAD,CAJ1B;IAKE,IAAI,EAAEA,YAAY,CAACyD,IALrB;IAME,WAAW,EAAEzD,YAAY,CAAC4F,WAN5B;IAOE,IAAI,EAAE5F,YAAY,CAACG;EAPrB,EADF,CADW,GAYT,IAzBN,EA0BGG,WAAW,gBACV;IAAK,SAAS,EAAEA,WAAW,CAACkF,WAAZ,GAA0BlG,cAAA,CAAMkG,WAAhC,GAA8ClG,cAAA,CAAMmG;EAApE,gBACE,6BAAC,mBAAD;IACE,KAAK,EAAEnF,WAAW,CAACoF,KADrB;IAEE,OAAO,EAAEpF,WAAW,CAACqF,aAFvB;IAGE,aAAY,gBAAerF,WAAW,CAACmD,IAAK,EAH9C;IAIE,cAAYnD,WAAW,CAAC,YAAD,CAJzB;IAKE,IAAI,EAAEA,WAAW,CAACmD,IALpB;IAME,WAAW,EAAEnD,WAAW,CAACsF;EAN3B,EADF,CADU,GAWR,IArCN,CADD,GAwCG,IAtFN,CALF,CADF;AAgGD,CAlQD;;AAoQAjG,OAAO,CAACkG,SAAR,2CAAoBA,cAApB;AACAlG,OAAO,CAACmG,YAAR,GAAuB;EACrBC,SAAS,EAAEC,iBAAA,CAASC,iBAAT,CAA2BF;AADjB,CAAvB;eAIepG,O"}
@@ -32,6 +32,10 @@ declare const propTypes: {
32
32
  'aria-label': PropTypes.Requireable<string>;
33
33
  largeButton: PropTypes.Requireable<boolean>;
34
34
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
35
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
36
+ position: PropTypes.Requireable<string>;
37
+ type: PropTypes.Requireable<string>;
38
+ }>>;
35
39
  }>>;
36
40
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
37
41
  label: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Cd,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,aAAa,G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EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;QACzB,IAAI,EACA,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,GAChD,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;CACH,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -3,6 +3,8 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
 
6
+ var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
7
+
6
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
7
9
 
8
10
  var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
@@ -15,6 +17,8 @@ var _cardsGrid = _interopRequireDefault(require("../../organism/cards-grid"));
15
17
 
16
18
  var _listItems = _interopRequireDefault(require("../../organism/list-items"));
17
19
 
20
+ var _buttonIcons = require("../../util/button-icons");
21
+
18
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
23
 
20
24
  const propTypes = {
@@ -39,7 +43,11 @@ const propTypes = {
39
43
  type: _propTypes.default.oneOf(['dangerous', 'primary', 'secondary']),
40
44
  'aria-label': _propTypes.default.string,
41
45
  largeButton: _propTypes.default.bool,
42
- customStyle: _buttonLink.default.propTypes.customStyle
46
+ customStyle: _buttonLink.default.propTypes.customStyle,
47
+ icon: _propTypes.default.shape({
48
+ position: _propTypes.default.oneOf(['right', 'left']),
49
+ type: _propTypes.default.oneOf((0, _keys2.default)(_buttonIcons.ICONS))
50
+ })
43
51
  }),
44
52
  thirdButton: _propTypes.default.shape({
45
53
  label: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["propTypes","content","PropTypes","string","mode","oneOf","header","shape","title","Title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","Cta","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","headerSubtitle","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch","items","list","oneOfType","CardsGrid","ListItems"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport {TitleProps} from '../../atom/title/types';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items', 'list']),\n header: PropTypes.shape({\n title: PropTypes.shape(Title.propTypes),\n headerIcon: PropTypes.string,\n backgroundImage: PropTypes.string\n }),\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n headerSubtitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),\n items: PropTypes.shape({\n type: PropTypes.oneOf(['content', 'list']),\n list: PropTypes.oneOfType([\n PropTypes.shape(CardsGrid.propTypes),\n PropTypes.shape(ListItems.propTypes)\n ])\n })\n};\n\ntype PopinHeaderProps = {\n title: TitleProps;\n backgroundImage: string;\n headerIcon: string;\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';\n onClose?: () => void;\n popinHeader?: PopinHeaderProps;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n items?: {\n type: 'content' | 'list';\n list:\n | PropTypes.InferProps<typeof CardsGrid.propTypes>\n | PropTypes.InferProps<typeof ListItems.propTypes>;\n };\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,OAAO,EAAEC,kBAAA,CAAUC,MADH;EAEhBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAg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G3BG,IAAI,EAAEhB,kBAAA,CAAUG,KAAV,CAAgB,CAAC,WAAD,EAAc,SAAd,EAAyB,WAAzB,CAAhB,CAHqB;IAI3B,cAAcH,kBAAA,CAAUC,MAJG;IAK3Ba,WAAW,EAAEd,kBAAA,CAAUe,IALI;IAM3BE,WAAW,EAAEC,mBAAA,CAAIpB,SAAJ,CAAcmB;EANA,CAAhB,CAxBG;EAgChBI,OAAO,EAAErB,kBAAA,CAAUa,IAhCH;EAiChBS,IAAI,EAAEtB,kBAAA,CAAUC,MAjCA;EAkChBsB,kBAAkB,EAAEvB,kBAAA,CAAUC,MAlCd;EAmChBuB,eAAe,EAAExB,kBAAA,CAAUC,MAnCX;EAoChBwB,WAAW,EAAEzB,kBAAA,CAAUC,MApCP;EAqChByB,cAAc,EAAE1B,kBAAA,CAAUC,MArCV;EAsChB0B,iBAAiB,EAAE3B,kBAAA,CAAUC,MAtCb;EAuChB2B,aAAa,EAAE5B,kBAAA,CAAU6B,OAAV,CAAkB7B,kBAAA,CAAUK,KAAV,CAAgByB,oBAAA,CAAYhC,SAA5B,CAAlB,CAvCC;EAwChBiC,KAAK,EAAE/B,kBAAA,CAAUK,KAAV,CAAgB;IACrBW,IAAI,EAAEhB,kBAAA,CAAUG,KAAV,CAAgB,CAAC,SAAD,EAAY,MAAZ,CAAhB,CADe;IAErB6B,IAAI,EAAEhC,kBAAA,CAAUiC,SAAV,CAAoB,CACxBjC,kBAAA,CAAUK,KAAV,CAAgB6B,kBAAA,CAAUpC,SAA1B,CADwB,EAExBE,kBAAA,CAAUK,KAAV,CAAgB8B,kBAAA,CAAUrC,SAA1B,CAFwB,CAApB;EAFe,CAAhB;AAxCS,CAAlB;eAmFeA,S"}
1
+ {"version":3,"file":"types.js","names":["propTypes","content","PropTypes","string","mode","oneOf","header","shape","title","Title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","Cta","secondButton","icon","position","ICONS","thirdButton","onClose","backgroundImageUrl","descriptionText","cookieTitle","headerSubtitle","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch","items","list","oneOfType","CardsGrid","ListItems"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport {TitleProps} from '../../atom/title/types';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\nimport {ICONS} from '../../util/button-icons';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items', 'list']),\n header: PropTypes.shape({\n title: PropTypes.shape(Title.propTypes),\n headerIcon: PropTypes.string,\n backgroundImage: PropTypes.string\n }),\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle,\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS))\n })\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n headerSubtitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),\n items: PropTypes.shape({\n type: PropTypes.oneOf(['content', 'list']),\n list: PropTypes.oneOfType([\n PropTypes.shape(CardsGrid.propTypes),\n PropTypes.shape(ListItems.propTypes)\n ])\n })\n};\n\ntype PopinHeaderProps = {\n title: TitleProps;\n backgroundImage: string;\n headerIcon: string;\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';\n onClose?: () => void;\n popinHeader?: PopinHeaderProps;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n items?: {\n type: 'content' | 'list';\n list:\n | PropTypes.InferProps<typeof CardsGrid.propTypes>\n | PropTypes.InferProps<typeof ListItems.propTypes>;\n };\n};\n\nexport default propTypes;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,OAAO,EAAEC,kBAAA,CAAUC,MADH;EAEhBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,EAAmC,OAAnC,EAA4C,MAA5C,CAAhB,CAFU;EAGhBC,MAAM,EAAEJ,kBAAA,CAAUK,KAAV,CAAgB;IACtBC,KAAK,EAAEN,kBAAA,CAAUK,KAAV,CAAgBE,cAAA,CAAMT,SAAtB,CADe;IAEtBU,UAAU,EAAER,kBAAA,CAAUC,MAFA;IAGtBQ,eAAe,EAAET,kBAAA,CAAUC;EAHL,CAAhB,CAHQ;EAQhBS,WAAW,EAAEV,kBAAA,CAAUK,KAAV,CAAgB;IAC3BM,KAAK,EAAEX,kBAAA,CAAUC,MADU;IAE3BW,aAAa,EAAEZ,kBAAA,CAAUa,IAFE;IAG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IpB,SAAJ,CAAcmB;EANA,CAAhB,CA5BG;EAoChBO,OAAO,EAAExB,kBAAA,CAAUa,IApCH;EAqChBO,IAAI,EAAEpB,kBAAA,CAAUC,MArCA;EAsChBwB,kBAAkB,EAAEzB,kBAAA,CAAUC,MAtCd;EAuChByB,eAAe,EAAE1B,kBAAA,CAAUC,MAvCX;EAwChB0B,WAAW,EAAE3B,kBAAA,CAAUC,MAxCP;EAyChB2B,cAAc,EAAE5B,kBAAA,CAAUC,MAzCV;EA0ChB4B,iBAAiB,EAAE7B,kBAAA,CAAUC,MA1Cb;EA2ChB6B,aAAa,EAAE9B,kBAAA,CAAU+B,OAAV,CAAkB/B,kBAAA,CAAUK,KAAV,CAAgB2B,oBAAA,CAAYlC,SAA5B,CAAlB,CA3CC;EA4ChBmC,KAAK,EAAEjC,kBAAA,CAAUK,KAAV,CAAgB;IACrBW,IAAI,EAAEhB,kBAAA,CAAUG,KAAV,CAAgB,CAAC,SAAD,EAAY,MAAZ,CAAhB,CADe;IAErB+B,IAAI,EAAElC,kBAAA,CAAUmC,SAAV,CAAoB,CACxBnC,kBAAA,CAAUK,KAAV,CAAgB+B,kBAAA,CAAUtC,SAA1B,CADwB,EAExBE,kBAAA,CAAUK,KAAV,CAAgBgC,kBAAA,CAAUvC,SAA1B,CAFwB,CAApB;EAFe,CAAhB;AA5CS,CAAlB;eAuFeA,S"}
@@ -34,6 +34,10 @@ declare namespace PlayerLoading {
34
34
  'aria-label': PropTypes.Requireable<string>;
35
35
  largeButton: PropTypes.Requireable<boolean>;
36
36
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
37
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
38
+ position: PropTypes.Requireable<string>;
39
+ type: PropTypes.Requireable<string>;
40
+ }>>;
37
41
  }>>;
38
42
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
39
43
  label: PropTypes.Requireable<string>;
@@ -85,6 +85,10 @@ declare namespace SlidePlayer {
85
85
  'aria-label': PropTypes.Requireable<string>;
86
86
  largeButton: PropTypes.Requireable<boolean>;
87
87
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
88
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
89
+ position: PropTypes.Requireable<string>;
90
+ type: PropTypes.Requireable<string>;
91
+ }>>;
88
92
  }>>;
89
93
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
90
94
  label: PropTypes.Requireable<string>;
@@ -329,6 +333,10 @@ declare namespace SlidePlayer {
329
333
  'aria-label': PropTypes.Requireable<string>;
330
334
  largeButton: PropTypes.Requireable<boolean>;
331
335
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
336
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
337
+ position: PropTypes.Requireable<string>;
338
+ type: PropTypes.Requireable<string>;
339
+ }>>;
332
340
  }>>;
333
341
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
334
342
  label: PropTypes.Requireable<string>;
@@ -91,6 +91,10 @@ declare namespace SlidesPlayer {
91
91
  'aria-label': PropTypes.Requireable<string>;
92
92
  largeButton: PropTypes.Requireable<boolean>;
93
93
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
94
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
95
+ position: PropTypes.Requireable<string>;
96
+ type: PropTypes.Requireable<string>;
97
+ }>>;
94
98
  }>>;
95
99
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
96
100
  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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;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
@@ -119,6 +119,10 @@ declare class PopinCorrection extends React.Component<any, any, any> {
119
119
  'aria-label': PropTypes.Requireable<string>;
120
120
  largeButton: PropTypes.Requireable<boolean>;
121
121
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
122
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
123
+ position: PropTypes.Requireable<string>;
124
+ type: PropTypes.Requireable<string>;
125
+ }>>;
122
126
  }>>;
123
127
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
124
128
  label: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
@@ -211,6 +211,10 @@ declare namespace PopinEnd {
211
211
  'aria-label': PropTypes.Requireable<string>;
212
212
  largeButton: PropTypes.Requireable<boolean>;
213
213
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
214
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
215
+ position: PropTypes.Requireable<string>;
216
+ type: PropTypes.Requireable<string>;
217
+ }>>;
214
218
  }>>;
215
219
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
216
220
  label: PropTypes.Requireable<string>;
@@ -542,6 +542,10 @@ declare const AppReview: {
542
542
  'aria-label': import("prop-types").Requireable<string>;
543
543
  largeButton: import("prop-types").Requireable<boolean>;
544
544
  customStyle: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
545
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<{
546
+ position: import("prop-types").Requireable<string>;
547
+ type: import("prop-types").Requireable<string>;
548
+ }>>;
545
549
  }>>;
546
550
  thirdButton: import("prop-types").Requireable<import("prop-types").InferProps<{
547
551
  label: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpD,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -542,6 +542,10 @@ declare const propTypes: {
542
542
  'aria-label': PropTypes.Requireable<string>;
543
543
  largeButton: PropTypes.Requireable<boolean>;
544
544
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
545
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
546
+ position: PropTypes.Requireable<string>;
547
+ type: PropTypes.Requireable<string>;
548
+ }>>;
545
549
  }>>;
546
550
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
547
551
  label: PropTypes.Requireable<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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,iBAAiB,GAAG;IAC9B,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B,CAAC"}
@@ -546,6 +546,10 @@ declare const propTypes: {
546
546
  'aria-label': PropTypes.Requireable<string>;
547
547
  largeButton: PropTypes.Requireable<boolean>;
548
548
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
549
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
550
+ position: PropTypes.Requireable<string>;
551
+ type: PropTypes.Requireable<string>;
552
+ }>>;
549
553
  }>>;
550
554
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
551
555
  label: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -736,6 +736,10 @@ declare namespace BrandUpdate {
736
736
  'aria-label': PropTypes.Requireable<string>;
737
737
  largeButton: PropTypes.Requireable<boolean>;
738
738
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
739
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
740
+ position: PropTypes.Requireable<string>;
741
+ type: PropTypes.Requireable<string>;
742
+ }>>;
739
743
  }>>;
740
744
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
741
745
  label: PropTypes.Requireable<string>;
@@ -35,6 +35,10 @@ declare namespace Dashboard {
35
35
  'aria-label': PropTypes.Requireable<string>;
36
36
  largeButton: PropTypes.Requireable<boolean>;
37
37
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
38
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
39
+ position: PropTypes.Requireable<string>;
40
+ type: PropTypes.Requireable<string>;
41
+ }>>;
38
42
  }>>;
39
43
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
40
44
  label: PropTypes.Requireable<string>;
@@ -282,6 +286,10 @@ declare namespace Dashboard {
282
286
  'aria-label': PropTypes.Requireable<string>;
283
287
  largeButton: PropTypes.Requireable<boolean>;
284
288
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
289
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
290
+ position: PropTypes.Requireable<string>;
291
+ type: PropTypes.Requireable<string>;
292
+ }>>;
285
293
  }>>;
286
294
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
287
295
  label: PropTypes.Requireable<string>;
@@ -207,6 +207,10 @@ declare namespace SearchPage {
207
207
  'aria-label': PropTypes.Requireable<string>;
208
208
  largeButton: PropTypes.Requireable<boolean>;
209
209
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
210
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
211
+ position: PropTypes.Requireable<string>;
212
+ type: PropTypes.Requireable<string>;
213
+ }>>;
210
214
  }>>;
211
215
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
212
216
  label: PropTypes.Requireable<string>;
@@ -52,6 +52,10 @@ declare namespace ExternalCourse {
52
52
  'aria-label': PropTypes.Requireable<string>;
53
53
  largeButton: PropTypes.Requireable<boolean>;
54
54
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
55
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
56
+ position: PropTypes.Requireable<string>;
57
+ type: PropTypes.Requireable<string>;
58
+ }>>;
55
59
  }>>;
56
60
  thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
57
61
  label: PropTypes.Requireable<string>;
@@ -18,5 +18,6 @@ export const ICONS: {
18
18
  down: any;
19
19
  pdf: any;
20
20
  back: any;
21
+ delete: any;
21
22
  };
22
23
  //# sourceMappingURL=button-icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;EAoBE"}
1
+ {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;EAqBE"}
@@ -24,7 +24,8 @@ const ICONS = {
24
24
  upload: _novaIcons.NovaSolidFilesBasicFileUpload2,
25
25
  down: _novaIcons.NovaCompositionNavigationArrowDown,
26
26
  pdf: _novaIcons.NovaLineFilesOfficeFileOfficePdf,
27
- back: _novaIcons.NovaCompositionNavigationArrowLeft
27
+ back: _novaIcons.NovaCompositionNavigationArrowLeft,
28
+ delete: _novaIcons.NovaSolidContentEditionDelete1
28
29
  };
29
30
  exports.ICONS = ICONS;
30
31
  //# sourceMappingURL=button-icons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-icons.js","names":["ICONS","add","AddIcon","analytics","AnalyticsIcon","bin","BinIcon","BulletPointIcon","ChevronLeftIcon","ChevronRightIcon","close","CloseIcon","edit","EditIcon","key","KlfIcon","list","ListIcon","logout","LogoutIcon","publish","PublishIcon","save","SaveIcon","see","EyeIcon","folders","FoldersIcon","upload","UploadIcon","down","ArrowDown","pdf","PDF","back","ArrowLeft"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaCompositionNavigationArrowLeft as ArrowLeft,\n NovaLineFilesOfficeFileOfficePdf as PDF\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon,\n down: ArrowDown,\n pdf: PDF,\n back: ArrowLeft\n};\n"],"mappings":";;;;;AAAA;;AAsBO,MAAMA,KAAK,GAAG;EACnBC,GAAG,EAAEC,uCADc;EAEnBC,SAAS,EAAEC,+CAFQ;EAGnBC,GAAG,EAAEC,qCAHc;EAInB,gBAAgBC,iDAJG;EAKnB,gBAAgBC,6CALG;EAMnB,iBAAiBC,8CANE;EAOnBC,KAAK,EAAEC,+BAPY;EAQnBC,IAAI,EAAEC,6CARa;EASnBC,GAAG,EAAEC,4BATc;EAUnBC,IAAI,EAAEC,6CAVa;EAWnBC,MAAM,EAAEC,gCAXW;EAYnBC,OAAO,EAAEC,6CAZU;EAanBC,IAAI,EAAEC,mCAba;EAcnBC,GAAG,EAAEC,yCAdc;EAenBC,OAAO,EAAEC,uCAfU;EAgBnBC,MAAM,EAAEC,yCAhBW;EAiBnBC,IAAI,EAAEC,6CAjBa;EAkBnBC,GAAG,EAAEC,2CAlBc;EAmBnBC,IAAI,EAAEC;AAnBa,CAAd"}
1
+ {"version":3,"file":"button-icons.js","names":["ICONS","add","AddIcon","analytics","AnalyticsIcon","bin","BinIcon","BulletPointIcon","ChevronLeftIcon","ChevronRightIcon","close","CloseIcon","edit","EditIcon","key","KlfIcon","list","ListIcon","logout","LogoutIcon","publish","PublishIcon","save","SaveIcon","see","EyeIcon","folders","FoldersIcon","upload","UploadIcon","down","ArrowDown","pdf","PDF","back","ArrowLeft","delete","DeleteIcon"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaCompositionNavigationArrowLeft as ArrowLeft,\n NovaLineFilesOfficeFileOfficePdf as PDF,\n NovaSolidContentEditionDelete1 as DeleteIcon\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon,\n down: ArrowDown,\n pdf: PDF,\n back: ArrowLeft,\n delete: DeleteIcon\n};\n"],"mappings":";;;;;AAAA;;AAuBO,MAAMA,KAAK,GAAG;EACnBC,GAAG,EAAEC,uCADc;EAEnBC,SAAS,EAAEC,+CAFQ;EAGnBC,GAAG,EAAEC,qCAHc;EAInB,gBAAgBC,iDAJG;EAKnB,gBAAgBC,6CALG;EAMnB,iBAAiBC,8CANE;EAOnBC,KAAK,EAAEC,+BAPY;EAQnBC,IAAI,EAAEC,6CARa;EASnBC,GAAG,EAAEC,4BATc;EAUnBC,IAAI,EAAEC,6CAVa;EAWnBC,MAAM,EAAEC,gCAXW;EAYnBC,OAAO,EAAEC,6CAZU;EAanBC,IAAI,EAAEC,mCAba;EAcnBC,GAAG,EAAEC,yCAdc;EAenBC,OAAO,EAAEC,uCAfU;EAgBnBC,MAAM,EAAEC,yCAhBW;EAiBnBC,IAAI,EAAEC,6CAjBa;EAkBnBC,GAAG,EAAEC,2CAlBc;EAmBnBC,IAAI,EAAEC,6CAnBa;EAoBnBC,MAAM,EAAEC;AApBW,CAAd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.20.6-alpha.4+03091d3bf",
3
+ "version": "11.20.6-alpha.7+a839cc1ea",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -56,7 +56,7 @@
56
56
  "Soualmi Djamel <djamel.soualmi@coorpacademy.com>"
57
57
  ],
58
58
  "dependencies": {
59
- "@coorpacademy/nova-icons": "4.4.2-alpha.48+03091d3bf",
59
+ "@coorpacademy/nova-icons": "4.4.2-alpha.51+a839cc1ea",
60
60
  "@coorpacademy/react-native-animation": "1.0.3",
61
61
  "@jwplayer/jwplayer-react": "^1.1.0",
62
62
  "@types/react": "^17.0.50",
@@ -168,5 +168,5 @@
168
168
  "last 2 versions",
169
169
  "IE 11"
170
170
  ],
171
- "gitHead": "03091d3bf65601894160d0242f0832f3ad5e7bf8"
171
+ "gitHead": "a839cc1ea279ebc15e7a270c29a7bdfd929e7130"
172
172
  }