@coorpacademy/components 11.19.1-alpha.4 → 11.19.1

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 (181) hide show
  1. package/es/atom/button-link/index.js +2 -2
  2. package/es/atom/button-link/index.js.map +1 -1
  3. package/es/atom/button-link/style.css +1 -0
  4. package/es/atom/drag-and-drop/index.d.ts +1 -0
  5. package/es/atom/drag-and-drop/index.d.ts.map +1 -1
  6. package/es/atom/drag-and-drop/index.js +24 -6
  7. package/es/atom/drag-and-drop/index.js.map +1 -1
  8. package/es/atom/drag-and-drop/style.css +22 -7
  9. package/es/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
  10. package/es/atom/input-file-draggable/index.d.ts.map +1 -0
  11. package/es/atom/{image-upload → input-file-draggable}/index.js +34 -11
  12. package/es/atom/input-file-draggable/index.js.map +1 -0
  13. package/es/atom/input-file-draggable/style.css +81 -0
  14. package/es/atom/title/style.css +1 -1
  15. package/es/atom/video-upload/index.d.ts +1 -0
  16. package/es/molecule/brand-form-group/index.js +5 -5
  17. package/es/molecule/brand-form-group/index.js.map +1 -1
  18. package/es/molecule/card/index.d.ts.map +1 -1
  19. package/es/molecule/card/index.js +2 -6
  20. package/es/molecule/card/index.js.map +1 -1
  21. package/es/molecule/card/style.css +2 -2
  22. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  23. package/es/molecule/cm-popin/index.js +27 -20
  24. package/es/molecule/cm-popin/index.js.map +1 -1
  25. package/es/molecule/cm-popin/style.css +112 -73
  26. package/es/molecule/cm-popin/types.d.ts +182 -5
  27. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  28. package/es/molecule/cm-popin/types.js +5 -3
  29. package/es/molecule/cm-popin/types.js.map +1 -1
  30. package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
  31. package/es/molecule/drag-and-drop-wrapper/index.js +3 -3
  32. package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  33. package/es/molecule/setup-slider/index.js +3 -3
  34. package/es/molecule/setup-slider/index.js.map +1 -1
  35. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
  36. package/es/molecule/title-radio-wrapper/index.d.ts +18 -17
  37. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  38. package/es/molecule/title-radio-wrapper/index.js +2 -2
  39. package/es/molecule/title-radio-wrapper/index.js.map +1 -1
  40. package/es/molecule/title-radio-wrapper/types.d.ts +20 -19
  41. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  42. package/es/molecule/title-radio-wrapper/types.js +2 -2
  43. package/es/molecule/title-radio-wrapper/types.js.map +1 -1
  44. package/es/organism/list-item/index.d.ts.map +1 -1
  45. package/es/organism/list-item/index.js +2 -5
  46. package/es/organism/list-item/index.js.map +1 -1
  47. package/es/organism/list-item/style.css +3 -7
  48. package/es/organism/list-items/index.d.ts.map +1 -1
  49. package/es/organism/list-items/index.js +1 -3
  50. package/es/organism/list-items/index.js.map +1 -1
  51. package/es/organism/list-items/style.css +1 -4
  52. package/es/organism/rewards-form/index.d.ts +2 -1
  53. package/es/organism/select-opponents/index.d.ts +18 -17
  54. package/es/organism/select-opponents/index.d.ts.map +1 -1
  55. package/es/organism/select-opponents/types.d.ts +18 -17
  56. package/es/organism/select-opponents/types.d.ts.map +1 -1
  57. package/es/organism/setup-header/style.css +3 -1
  58. package/es/organism/title-and-input/index.d.ts +18 -17
  59. package/es/organism/title-and-input/index.d.ts.map +1 -1
  60. package/es/organism/title-and-input/types.d.ts +18 -17
  61. package/es/organism/title-and-input/types.d.ts.map +1 -1
  62. package/es/organism/wizard-contents/index.d.ts +2 -1
  63. package/es/template/app-player/loading/index.d.ts +178 -2
  64. package/es/template/app-player/player/index.d.ts +356 -4
  65. package/es/template/app-player/player/slides/index.d.ts +178 -2
  66. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  67. package/es/template/app-player/popin-correction/index.d.ts +178 -2
  68. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  69. package/es/template/app-player/popin-end/index.d.ts +178 -2
  70. package/es/template/app-review/index.d.ts +178 -2
  71. package/es/template/app-review/index.d.ts.map +1 -1
  72. package/es/template/app-review/player/prop-types.d.ts +178 -2
  73. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  74. package/es/template/app-review/prop-types.d.ts +178 -2
  75. package/es/template/app-review/prop-types.d.ts.map +1 -1
  76. package/es/template/back-office/brand-update/index.d.ts +178 -2
  77. package/es/template/cockpit/jw-uploader/index.d.ts +1 -0
  78. package/es/template/common/dashboard/index.d.ts +356 -4
  79. package/es/template/common/search-page/index.d.ts +178 -2
  80. package/es/template/common/search-page/index.d.ts.map +1 -1
  81. package/es/template/common/search-page/index.js +2 -20
  82. package/es/template/common/search-page/index.js.map +1 -1
  83. package/es/template/external-course/index.d.ts +178 -2
  84. package/es/util/proptypes.d.ts +1 -1
  85. package/es/util/proptypes.d.ts.map +1 -1
  86. package/es/util/proptypes.js +6 -5
  87. package/es/util/proptypes.js.map +1 -1
  88. package/lib/atom/button-link/index.js +2 -2
  89. package/lib/atom/button-link/index.js.map +1 -1
  90. package/lib/atom/button-link/style.css +1 -0
  91. package/lib/atom/drag-and-drop/index.d.ts +1 -0
  92. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  93. package/lib/atom/drag-and-drop/index.js +24 -6
  94. package/lib/atom/drag-and-drop/index.js.map +1 -1
  95. package/lib/atom/drag-and-drop/style.css +22 -7
  96. package/lib/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
  97. package/lib/atom/input-file-draggable/index.d.ts.map +1 -0
  98. package/lib/atom/{image-upload → input-file-draggable}/index.js +34 -10
  99. package/lib/atom/input-file-draggable/index.js.map +1 -0
  100. package/lib/atom/input-file-draggable/style.css +81 -0
  101. package/lib/atom/title/style.css +1 -1
  102. package/lib/atom/video-upload/index.d.ts +1 -0
  103. package/lib/molecule/brand-form-group/index.js +5 -5
  104. package/lib/molecule/brand-form-group/index.js.map +1 -1
  105. package/lib/molecule/card/index.d.ts.map +1 -1
  106. package/lib/molecule/card/index.js +2 -6
  107. package/lib/molecule/card/index.js.map +1 -1
  108. package/lib/molecule/card/style.css +2 -2
  109. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  110. package/lib/molecule/cm-popin/index.js +29 -19
  111. package/lib/molecule/cm-popin/index.js.map +1 -1
  112. package/lib/molecule/cm-popin/style.css +112 -73
  113. package/lib/molecule/cm-popin/types.d.ts +182 -5
  114. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  115. package/lib/molecule/cm-popin/types.js +6 -3
  116. package/lib/molecule/cm-popin/types.js.map +1 -1
  117. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
  118. package/lib/molecule/drag-and-drop-wrapper/index.js +3 -3
  119. package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  120. package/lib/molecule/setup-slider/index.js +3 -3
  121. package/lib/molecule/setup-slider/index.js.map +1 -1
  122. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
  123. package/lib/molecule/title-radio-wrapper/index.d.ts +18 -17
  124. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  125. package/lib/molecule/title-radio-wrapper/index.js +2 -2
  126. package/lib/molecule/title-radio-wrapper/index.js.map +1 -1
  127. package/lib/molecule/title-radio-wrapper/types.d.ts +20 -19
  128. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  129. package/lib/molecule/title-radio-wrapper/types.js +2 -2
  130. package/lib/molecule/title-radio-wrapper/types.js.map +1 -1
  131. package/lib/organism/list-item/index.d.ts.map +1 -1
  132. package/lib/organism/list-item/index.js +3 -5
  133. package/lib/organism/list-item/index.js.map +1 -1
  134. package/lib/organism/list-item/style.css +3 -7
  135. package/lib/organism/list-items/index.d.ts.map +1 -1
  136. package/lib/organism/list-items/index.js +1 -3
  137. package/lib/organism/list-items/index.js.map +1 -1
  138. package/lib/organism/list-items/style.css +1 -4
  139. package/lib/organism/rewards-form/index.d.ts +2 -1
  140. package/lib/organism/select-opponents/index.d.ts +18 -17
  141. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  142. package/lib/organism/select-opponents/types.d.ts +18 -17
  143. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  144. package/lib/organism/setup-header/style.css +3 -1
  145. package/lib/organism/title-and-input/index.d.ts +18 -17
  146. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  147. package/lib/organism/title-and-input/types.d.ts +18 -17
  148. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  149. package/lib/organism/wizard-contents/index.d.ts +2 -1
  150. package/lib/template/app-player/loading/index.d.ts +178 -2
  151. package/lib/template/app-player/player/index.d.ts +356 -4
  152. package/lib/template/app-player/player/slides/index.d.ts +178 -2
  153. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  154. package/lib/template/app-player/popin-correction/index.d.ts +178 -2
  155. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  156. package/lib/template/app-player/popin-end/index.d.ts +178 -2
  157. package/lib/template/app-review/index.d.ts +178 -2
  158. package/lib/template/app-review/index.d.ts.map +1 -1
  159. package/lib/template/app-review/player/prop-types.d.ts +178 -2
  160. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  161. package/lib/template/app-review/prop-types.d.ts +178 -2
  162. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  163. package/lib/template/back-office/brand-update/index.d.ts +178 -2
  164. package/lib/template/cockpit/jw-uploader/index.d.ts +1 -0
  165. package/lib/template/common/dashboard/index.d.ts +356 -4
  166. package/lib/template/common/search-page/index.d.ts +178 -2
  167. package/lib/template/common/search-page/index.d.ts.map +1 -1
  168. package/lib/template/common/search-page/index.js +2 -24
  169. package/lib/template/common/search-page/index.js.map +1 -1
  170. package/lib/template/external-course/index.d.ts +178 -2
  171. package/lib/util/proptypes.d.ts +1 -1
  172. package/lib/util/proptypes.d.ts.map +1 -1
  173. package/lib/util/proptypes.js +10 -7
  174. package/lib/util/proptypes.js.map +1 -1
  175. package/package.json +3 -3
  176. package/es/atom/image-upload/index.d.ts.map +0 -1
  177. package/es/atom/image-upload/index.js.map +0 -1
  178. package/es/atom/image-upload/style.css +0 -28
  179. package/lib/atom/image-upload/index.d.ts.map +0 -1
  180. package/lib/atom/image-upload/index.js.map +0 -1
  181. package/lib/atom/image-upload/style.css +0 -28
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["IconType","lockedContent","style","lockIcon","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","renderHeader","title","headerIcon","TopTitleIcon","headerContent","headerTitle","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","background","popinCookie","popin","popinHeader","cookieTitleContainer","titleContainer","contentSection","message","__html","descriptionBtn","itemsContainer","buttonContainer","largeButton","button","label","handleOnclick","customStyle","propTypes"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React 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} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\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 style from './style.css';\nimport propTypes from './types';\n\nconst IconType = {\n lockedContent: <LockIcon className={style.lockIcon} />\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 renderHeader = () => {\n if (header) {\n const {title, headerIcon, backgroundImage} = header;\n const TopTitleIcon = IconType[headerIcon];\n if (title) {\n return (\n <div className={style.headerContent}>\n {TopTitleIcon}\n <div className={style.headerTitle}>\n <Title {...title} />\n </div>\n </div>\n );\n }\n return <img className={style.headerBackground} src={backgroundImage} />;\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 return null;\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 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 const renderItems = () => {\n const {type, list} = items;\n return type === 'content' ? <CardsGrid {...list} /> : null;\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={mode === 'cookie' ? style.popinCookie : style.popin}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <ButtonLinkIconOnly\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </header>\n {mode !== 'items' ? (\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 {items ? (\n <div className={style.itemsContainer} data-name={'cm-popin-cards'}>\n {renderItems()}\n </div>\n ) : 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;\n\nexport default CMPopin;\n"],"mappings":";;;;;AAAA;;AACA;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,QAAQ,GAAG;EACfC,aAAa,eAAE,6BAAC,6CAAD;IAAU,SAAS,EAAEC,cAAA,CAAMC;EAA3B;AADA,CAAjB;;AAIA,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,YAAY,GAAG,MAAM;IACzB,IAAIlB,MAAJ,EAAY;MACV,MAAM;QAACmB,KAAD;QAAQC,UAAR;QAAoBJ;MAApB,IAAuChB,MAA7C;MACA,MAAMqB,YAAY,GAAGhC,QAAQ,CAAC+B,UAAD,CAA7B;;MACA,IAAID,KAAJ,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ACE,6BAAC,mBAAD;IACE,KAAK,EAAEnE,YAAY,CAACoE,KADtB;IAEE,OAAO,EAAEpE,YAAY,CAACqE,aAFxB;IAGE,aAAY,gBAAerE,YAAY,CAAC0C,IAAK,EAH/C;IAIE,cAAY1C,YAAY,CAAC,YAAD,CAJ1B;IAKE,IAAI,EAAEA,YAAY,CAAC0C,IALrB;IAME,WAAW,EAAE1C,YAAY,CAACsE;EAN5B,EADF,CADW,GAWT,IAxBN,EAyBGhE,WAAW,gBACV;IAAK,SAAS,EAAEA,WAAW,CAAC4D,WAAZ,GAA0BzE,cAAA,CAAMyE,WAAhC,GAA8CzE,cAAA,CAAM0E;EAApE,gBACE,6BAAC,mBAAD;IACE,KAAK,EAAE7D,WAAW,CAAC8D,KADrB;IAEE,OAAO,EAAE9D,WAAW,CAAC+D,aAFvB;IAGE,aAAY,gBAAe/D,WAAW,CAACoC,IAAK,EAH9C;IAIE,cAAYpC,WAAW,CAAC,YAAD,CAJzB;IAKE,IAAI,EAAEA,WAAW,CAACoC,IALpB;IAME,WAAW,EAAEpC,WAAW,CAACgE;EAN3B,EADF,CADU,GAWR,IApCN,CADD,GAuCG,IAvFN,CALF,CADF;AAiGD,CA7MD;;AA+MA3E,OAAO,CAAC4E,SAAR,2CAAoBA,cAApB;eAEe5E,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","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","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","popin","background","popinHeader","cookieTitleContainer","titleContainer","contentSection","message","__html","descriptionBtn","buttonContainer","largeButton","button","label","handleOnclick","customStyle","propTypes"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React 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 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\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\n const wrapperPopinStyle = classNames(\n mode === 'cookie' && style.popinCookie,\n mode === 'list' && style.popinFilesList,\n style.popin\n );\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}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <ButtonLinkIconOnly\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\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\n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B;IAGE,aAAW,cAHb;IAIE,cAAY1E,WAAW,CAAC,YAAD,CAJzB;IAKE,IAAI,EAAEA,WAAW,CAAC0C,IALpB;IAME,WAAW,EAAE1C,WAAW,CAAC2E;EAN3B,EADF,CADU,GAWR,IAZN,EAaG1E,YAAY,gBACX;IAAK,SAAS,EAAEA,YAAY,CAACsE,WAAb,GAA2BhF,cAAA,CAAMgF,WAAjC,GAA+ChF,cAAA,CAAMiF;EAArE,gBACE,6BAAC,mBAAD;IACE,KAAK,EAAEvE,YAAY,CAACwE,KADtB;IAEE,OAAO,EAAExE,YAAY,CAACyE,aAFxB;IAGE,aAAY,gBAAezE,YAAY,CAACyC,IAAK,EAH/C;IAIE,cAAYzC,YAAY,CAAC,YAAD,CAJ1B;IAKE,IAAI,EAAEA,YAAY,CAACyC,IALrB;IAME,WAAW,EAAEzC,YAAY,CAAC0E;EAN5B,EADF,CADW,GAWT,IAxBN,EAyBGpE,WAAW,gBACV;IAAK,SAAS,EAAEA,WAAW,CAACgE,WAAZ,GAA0BhF,cAAA,CAAMgF,WAAhC,GAA8ChF,cAAA,CAAMiF;EAApE,gBACE,6BAAC,mBAAD;IACE,KAAK,EAAEjE,WAAW,CAACkE,KADrB;IAEE,OAAO,EAAElE,WAAW,CAACmE,aAFvB;IAGE,aAAY,gBAAenE,WAAW,CAACmC,IAAK,EAH9C;IAIE,cAAYnC,WAAW,CAAC,YAAD,CAJzB;IAKE,IAAI,EAAEA,WAAW,CAACmC,IALpB;IAME,WAAW,EAAEnC,WAAW,CAACoE;EAN3B,EADF,CADU,GAWR,IApCN,CADD,GAuCG,IAnFN,CALF,CADF;AA6FD,CAxOD;;AA0OA/E,OAAO,CAACgF,SAAR,2CAAoBA,cAApB;eAEehF,O"}
@@ -73,9 +73,11 @@
73
73
  line-height: 20px;
74
74
  margin: 0;
75
75
  }
76
+
76
77
  .message p {
77
78
  margin: 10px 0px;
78
79
  }
80
+
79
81
  @keyframes popup {
80
82
  0% {
81
83
  transform: scale(0);
@@ -140,25 +142,21 @@
140
142
  }
141
143
 
142
144
  .headerContent {
145
+ gap: 16px;
143
146
  display: flex;
147
+ justify-content: start;
148
+ align-items: center;
144
149
  width: 100%;
145
- gap: 16px;
146
- padding: 8px;
150
+ padding-bottom: 16px;
151
+ border-bottom: 1px solid cm_grey_100;
147
152
  }
148
153
 
149
- .headerTitle {
150
- width: 612px;
151
- margin-bottom: 16px;
152
- padding: 2px 0px 2px;
153
- }
154
154
 
155
155
  .lockIcon {
156
156
  height: 48px;
157
157
  width: 48px;
158
158
  background-color: negative_100;
159
159
  border-radius: 16px;
160
- min-width: 48px;
161
- min-height: 48px;
162
160
  color: cm_negative_200;
163
161
  }
164
162
 
@@ -178,13 +176,6 @@
178
176
  margin: 20px 32px;
179
177
  }
180
178
 
181
- .cookieTitleContainer {
182
- align-items: center;
183
- display: flex;
184
- flex-direction: column;
185
- width: 100%;
186
- }
187
-
188
179
  .titleContainer {
189
180
  padding-top: 40px;
190
181
  align-items: center;
@@ -193,61 +184,6 @@
193
184
  width: 100%;
194
185
  }
195
186
 
196
- .cookieHeader {
197
- width: 100%;
198
- background-color: cm_grey_700;
199
- padding: 16px 24px;
200
- border-radius: 10px 10px 0px 0px;
201
- display: flex;
202
- align-items: center;
203
- }
204
-
205
- .popinCookie {
206
- max-width: 550px;
207
- flex-grow: 0;
208
- margin: 16px;
209
- border-radius: 10px;
210
- background-color: cm_grey_50;
211
- animation: popup 0.7s;
212
- position: fixed;
213
- bottom: 32px;
214
- left: 32px;
215
- z-index: 1000;
216
- }
217
- .cookieTitle {
218
- font-family: "Gilroy";
219
- font-style: normal;
220
- font-weight: 700;
221
- font-size: 24px;
222
- line-height: 32px;
223
- color: white;
224
- padding-left: 16px;
225
- }
226
- .cookieIcon {
227
- height: 20px;
228
- width: 20px;
229
- }
230
- .cookieIconContainer {
231
- width: 39px;
232
- height: 39px;
233
- border-radius: 8px;
234
- background-color: cm_blue_50;
235
- display: flex;
236
- justify-content: center;
237
- align-items: center;
238
- }
239
- .popinCookie .button {
240
- width: 100%;
241
- padding: 0px 8px 0px 0px
242
- }
243
- .popinCookie .button span {
244
- margin: 0
245
- }
246
-
247
- .popinCookie .message {
248
- padding: 24px 24px 40px 24px
249
- }
250
-
251
187
  .descriptionBtn {
252
188
  font-family: "Gilroy";
253
189
  font-weight: 500;
@@ -262,7 +198,6 @@
262
198
  margin-bottom: 24px;
263
199
  }
264
200
 
265
-
266
201
  .firstBtnSwitchContainer {
267
202
  height: 56px;
268
203
  background-color: cm_grey_75;
@@ -270,9 +205,11 @@
270
205
  display: flex;
271
206
  align-items: center;
272
207
  }
208
+
273
209
  .firstBtnSwitchContainer div:first-child {
274
210
  margin-left: 9px;
275
211
  }
212
+
276
213
  .singleSwitchContainer div:first-child {
277
214
  margin-left: 9px;
278
215
  }
@@ -289,11 +226,80 @@
289
226
  width: 100%;
290
227
  margin-top: 24px;
291
228
  }
229
+
292
230
  a {
293
231
  color: cm_primary_blue;
294
232
  text-decoration: none;
295
233
  }
296
234
 
235
+ /* ---------- COOKIES ---------- */
236
+ .popinCookie {
237
+ max-width: 550px;
238
+ flex-grow: 0;
239
+ margin: 16px;
240
+ border-radius: 10px;
241
+ background-color: cm_grey_50;
242
+ animation: popup 0.7s;
243
+ position: fixed;
244
+ bottom: 32px;
245
+ left: 32px;
246
+ z-index: 1000;
247
+ }
248
+
249
+ .cookieHeader {
250
+ width: 100%;
251
+ background-color: cm_grey_700;
252
+ padding: 16px 24px;
253
+ border-radius: 10px 10px 0px 0px;
254
+ display: flex;
255
+ align-items: center;
256
+ }
257
+
258
+ .cookieIconContainer {
259
+ width: 39px;
260
+ height: 39px;
261
+ border-radius: 8px;
262
+ background-color: cm_blue_50;
263
+ display: flex;
264
+ justify-content: center;
265
+ align-items: center;
266
+ }
267
+
268
+ .cookieIcon {
269
+ height: 20px;
270
+ width: 20px;
271
+ }
272
+
273
+ .cookieTitle {
274
+ font-family: "Gilroy";
275
+ font-style: normal;
276
+ font-weight: 700;
277
+ font-size: 24px;
278
+ line-height: 32px;
279
+ color: white;
280
+ padding-left: 16px;
281
+ }
282
+
283
+ .cookieTitleContainer {
284
+ display: flex;
285
+ align-items: center;
286
+ flex-direction: column;
287
+ width: 100%;
288
+ }
289
+
290
+ .popinCookie .button {
291
+ width: 100%;
292
+ padding: 0px 8px 0px 0px
293
+ }
294
+
295
+ .popinCookie .button span {
296
+ margin: 0
297
+ }
298
+
299
+ .popinCookie .message {
300
+ padding: 24px 24px 40px 24px
301
+ }
302
+
297
303
  .popinCookie .buttonContainer {
298
304
  min-height: 44px;
299
305
  padding-bottom: 16px;
@@ -301,6 +307,7 @@ a {
301
307
  padding-left: 24px;
302
308
  padding-right: 16px;
303
309
  }
310
+
304
311
  .popinCookie .largeButton {
305
312
  padding: 0px 8px 0px 0px
306
313
  }
@@ -309,9 +316,41 @@ a {
309
316
  max-height: 369px;
310
317
  overflow-y: auto;
311
318
  width: 100%;
312
- border-top: 1px solid cm_grey_100;
313
319
  }
314
320
 
321
+ /* ---------- FILES DETAILS ---------- */
322
+ .popinFilesList {
323
+ font-family: "Gilroy";
324
+ width: 70%;
325
+ padding: 16px;
326
+ border-radius: 20px;
327
+ background-color: white;
328
+ animation: popup 0.7s;
329
+ }
330
+
331
+ .filesListIconContainer {
332
+ composes: lockIcon;
333
+ display: flex;
334
+ justify-content: center;
335
+ align-items: center;
336
+ border-radius: 12px;
337
+ background-color: cm_blue_50;
338
+ color: cm_primary_blue;
339
+ }
340
+
341
+ .filesListIcon {
342
+ height: 20px;
343
+ width: 20px;
344
+ }
345
+
346
+ .filesListContainer {
347
+ max-height: 600px;
348
+ width: 100%;
349
+ margin-top: 24px;
350
+ overflow: scroll;
351
+ }
352
+
353
+ /* ---------- MEDIA QUERIES ---------- */
315
354
  @media tablet {
316
355
  .popin {
317
356
  width: 80%;
@@ -1,6 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import { TitleProps } from '../../atom/title/types';
3
3
  import CardsGrid from '../../organism/cards-grid';
4
+ import ListItems from '../../organism/list-items';
4
5
  declare const propTypes: {
5
6
  content: PropTypes.Requireable<string>;
6
7
  mode: PropTypes.Requireable<string>;
@@ -45,6 +46,7 @@ declare const propTypes: {
45
46
  backgroundImageUrl: PropTypes.Requireable<string>;
46
47
  descriptionText: PropTypes.Requireable<string>;
47
48
  cookieTitle: PropTypes.Requireable<string>;
49
+ headerSubtitle: PropTypes.Requireable<string>;
48
50
  descriptionBtnTxt: PropTypes.Requireable<string>;
49
51
  listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
50
52
  title: PropTypes.Requireable<string>;
@@ -65,10 +67,185 @@ declare const propTypes: {
65
67
  }> | null | undefined)[]>;
66
68
  items: PropTypes.Requireable<PropTypes.InferProps<{
67
69
  type: PropTypes.Requireable<string>;
68
- list: PropTypes.Requireable<PropTypes.InferProps<{
70
+ list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
69
71
  list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
70
72
  loading: PropTypes.Requireable<boolean>;
71
- }>>;
73
+ }> | PropTypes.InferProps<{
74
+ 'aria-label': PropTypes.Requireable<string>;
75
+ buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
76
+ type: PropTypes.Requireable<string>;
77
+ label: PropTypes.Requireable<string>;
78
+ 'aria-label': PropTypes.Requireable<string>;
79
+ 'data-name': PropTypes.Requireable<string>;
80
+ 'data-testid': PropTypes.Requireable<string>;
81
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
82
+ position: PropTypes.Requireable<string>;
83
+ type: PropTypes.Requireable<string>;
84
+ }>>;
85
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
86
+ link: PropTypes.Requireable<PropTypes.InferProps<{
87
+ href: PropTypes.Requireable<string>;
88
+ download: PropTypes.Requireable<boolean>;
89
+ target: PropTypes.Requireable<string>;
90
+ }>>;
91
+ disabled: PropTypes.Requireable<boolean>;
92
+ className: PropTypes.Requireable<string>;
93
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
94
+ }>>;
95
+ selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
96
+ title: PropTypes.Requireable<string>;
97
+ placeholder: PropTypes.Requireable<string>;
98
+ description: PropTypes.Requireable<string>;
99
+ hint: PropTypes.Requireable<string>;
100
+ options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
101
+ selected: PropTypes.Validator<boolean>;
102
+ name: PropTypes.Validator<string>;
103
+ value: PropTypes.Requireable<string>;
104
+ }>>[]>;
105
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
106
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
107
+ multiple: PropTypes.Requireable<boolean>;
108
+ modified: PropTypes.Requireable<boolean>;
109
+ disabled: PropTypes.Requireable<boolean>;
110
+ error: PropTypes.Requireable<string>;
111
+ theme: PropTypes.Requireable<string>;
112
+ }>>;
113
+ content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
114
+ items: PropTypes.Requireable<(PropTypes.InferProps<{
115
+ title: PropTypes.Validator<string>;
116
+ dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
117
+ label: PropTypes.Requireable<string>;
118
+ type: PropTypes.Requireable<string>;
119
+ className: PropTypes.Requireable<string>;
120
+ }> | null | undefined)[]>;
121
+ buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
122
+ type: PropTypes.Requireable<string>;
123
+ label: PropTypes.Requireable<string>;
124
+ ariaLabel: PropTypes.Requireable<string>;
125
+ dataName: PropTypes.Requireable<string>;
126
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
127
+ position: PropTypes.Requireable<string>;
128
+ type: PropTypes.Requireable<string>;
129
+ }>>;
130
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
131
+ }>>;
132
+ buttonLinkIcon: PropTypes.Requireable<PropTypes.InferProps<{
133
+ size: PropTypes.Requireable<string>;
134
+ 'aria-label': PropTypes.Requireable<string>;
135
+ 'data-name': PropTypes.Requireable<string>;
136
+ icon: PropTypes.Requireable<string>;
137
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
138
+ link: PropTypes.Requireable<PropTypes.InferProps<{
139
+ href: PropTypes.Requireable<string>;
140
+ download: PropTypes.Requireable<boolean>;
141
+ target: PropTypes.Requireable<string>;
142
+ }>>;
143
+ disabled: PropTypes.Requireable<boolean>;
144
+ className: PropTypes.Requireable<string>;
145
+ }>>;
146
+ bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
147
+ buttonAriaLabel: PropTypes.Requireable<string>;
148
+ menuAriaLabel: PropTypes.Requireable<string>;
149
+ buttons: PropTypes.Requireable<(PropTypes.InferProps<{
150
+ 'data-name': PropTypes.Requireable<string>;
151
+ label: PropTypes.Requireable<string>;
152
+ type: PropTypes.Requireable<string>;
153
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
154
+ }> | null | undefined)[]>;
155
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
156
+ }>>;
157
+ tags: PropTypes.Requireable<(PropTypes.InferProps<{
158
+ label: PropTypes.Requireable<string>;
159
+ type: PropTypes.Requireable<string>;
160
+ }> | null | undefined)[]>;
161
+ isBulkStyle: PropTypes.Requireable<boolean>;
162
+ order: PropTypes.Requireable<number>;
163
+ 'aria-label': PropTypes.Requireable<string>;
164
+ contentType: PropTypes.Requireable<string>;
165
+ id: PropTypes.Requireable<string>;
166
+ }> | null | undefined)[]>;
167
+ type: PropTypes.Requireable<string>;
168
+ itemType: PropTypes.Requireable<string>;
169
+ onDrop: PropTypes.Requireable<(...args: any[]) => any>;
170
+ isDraggable: PropTypes.Requireable<boolean>;
171
+ tableHeader: PropTypes.Requireable<(string | null | undefined)[]>;
172
+ }> | PropTypes.InferProps<{
173
+ type: PropTypes.Requireable<string>;
174
+ columns: PropTypes.Requireable<(PropTypes.InferProps<{
175
+ title: PropTypes.Validator<string>;
176
+ }> | null | undefined)[]>;
177
+ rows: PropTypes.Requireable<(PropTypes.InferProps<{
178
+ fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
179
+ type: PropTypes.Requireable<string>;
180
+ current: PropTypes.Requireable<boolean>;
181
+ selected: PropTypes.Requireable<boolean>;
182
+ icon: PropTypes.Requireable<string>;
183
+ value: PropTypes.Requireable<string>;
184
+ }> | null | undefined> | null | undefined)[]>;
185
+ isRowExpandible: PropTypes.Requireable<boolean>;
186
+ lastField: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
187
+ type: PropTypes.Requireable<string>;
188
+ disabled: PropTypes.Requireable<boolean>;
189
+ buttonAriaLabel: PropTypes.Requireable<string>;
190
+ menuAriaLabel: PropTypes.Requireable<string>;
191
+ buttons: PropTypes.Validator<(PropTypes.InferProps<{
192
+ 'data-name': PropTypes.Requireable<string>;
193
+ disabled: PropTypes.Requireable<boolean>;
194
+ label: PropTypes.Validator<string>;
195
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
196
+ type: PropTypes.Requireable<string>;
197
+ }> | null | undefined)[]>;
198
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
199
+ menuButtonClassName: PropTypes.Requireable<string>;
200
+ isBulkMenu: PropTypes.Requireable<boolean>;
201
+ }> | null | undefined>>;
202
+ }> | null | undefined)[]>;
203
+ stickyFirstColumn: PropTypes.Requireable<boolean>;
204
+ stickyLastColumn: PropTypes.Requireable<boolean>;
205
+ columnWidth: PropTypes.Requireable<string>;
206
+ ariaDescribedby: PropTypes.Requireable<string>;
207
+ lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
208
+ componentType: PropTypes.Requireable<string>;
209
+ type: PropTypes.Requireable<string>;
210
+ label: PropTypes.Requireable<string>;
211
+ 'aria-label': PropTypes.Requireable<string>;
212
+ 'data-name': PropTypes.Requireable<string>;
213
+ 'data-testid': PropTypes.Requireable<string>;
214
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
215
+ position: PropTypes.Requireable<string>;
216
+ type: PropTypes.Requireable<string>;
217
+ }>>;
218
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
219
+ link: PropTypes.Requireable<PropTypes.InferProps<{
220
+ href: PropTypes.Requireable<string>;
221
+ download: PropTypes.Requireable<boolean>;
222
+ target: PropTypes.Requireable<string>;
223
+ }>>;
224
+ disabled: PropTypes.Requireable<boolean>;
225
+ className: PropTypes.Requireable<string>;
226
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
227
+ }> | PropTypes.InferProps<{
228
+ componentType: PropTypes.Requireable<string>;
229
+ disabled: PropTypes.Requireable<boolean>;
230
+ buttonAriaLabel: PropTypes.Requireable<string>;
231
+ menuAriaLabel: PropTypes.Requireable<string>;
232
+ buttons: PropTypes.Validator<(PropTypes.InferProps<{
233
+ 'data-name': PropTypes.Requireable<string>;
234
+ disabled: PropTypes.Requireable<boolean>;
235
+ label: PropTypes.Validator<string>;
236
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
237
+ type: PropTypes.Requireable<string>;
238
+ }> | null | undefined)[]>;
239
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
240
+ menuButtonClassName: PropTypes.Requireable<string>;
241
+ isBulkMenu: PropTypes.Requireable<boolean>;
242
+ }> | null | undefined>>;
243
+ isNestedTable: PropTypes.Requireable<boolean>;
244
+ emptyStateFirstMessage: PropTypes.Requireable<string>;
245
+ emptyStateSecondMessage: PropTypes.Requireable<string>;
246
+ }> | null | undefined>>;
247
+ title: PropTypes.Requireable<string>;
248
+ }> | null | undefined>>;
72
249
  }>>;
73
250
  };
74
251
  declare type PopinHeaderProps = {
@@ -89,14 +266,14 @@ export declare type QuitPopinButton = {
89
266
  export declare type CMPopinProps = {
90
267
  content: string;
91
268
  icon: string;
92
- mode: string;
269
+ mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';
93
270
  popinHeader?: PopinHeaderProps;
94
271
  descriptionText: string;
95
272
  firstButton?: QuitPopinButton;
96
273
  secondButton?: QuitPopinButton;
97
274
  items?: {
98
- type: string;
99
- list: PropTypes.InferProps<typeof CardsGrid.propTypes>;
275
+ type: 'content' | 'list';
276
+ list: PropTypes.InferProps<typeof CardsGrid.propTypes> | PropTypes.InferProps<typeof ListItems.propTypes>;
100
277
  };
101
278
  };
102
279
  export default propTypes;
@@ -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;AAElD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Cd,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,MAAM,CAAC;IACb,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,MAAM,CAAC;QACb,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,S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AE,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"}
@@ -13,11 +13,13 @@ var _title = _interopRequireDefault(require("../../atom/title"));
13
13
 
14
14
  var _cardsGrid = _interopRequireDefault(require("../../organism/cards-grid"));
15
15
 
16
+ var _listItems = _interopRequireDefault(require("../../organism/list-items"));
17
+
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
20
  const propTypes = {
19
21
  content: _propTypes.default.string,
20
- mode: _propTypes.default.oneOf(['alert', 'information', 'cookie', 'items']),
22
+ mode: _propTypes.default.oneOf(['alert', 'information', 'cookie', 'items', 'list']),
21
23
  header: _propTypes.default.shape({
22
24
  title: _propTypes.default.shape(_title.default.propTypes),
23
25
  headerIcon: _propTypes.default.string,
@@ -52,11 +54,12 @@ const propTypes = {
52
54
  backgroundImageUrl: _propTypes.default.string,
53
55
  descriptionText: _propTypes.default.string,
54
56
  cookieTitle: _propTypes.default.string,
57
+ headerSubtitle: _propTypes.default.string,
55
58
  descriptionBtnTxt: _propTypes.default.string,
56
59
  listBtnSwicth: _propTypes.default.arrayOf(_propTypes.default.shape(_inputSwitch.default.propTypes)),
57
60
  items: _propTypes.default.shape({
58
- type: _propTypes.default.string,
59
- list: _propTypes.default.shape(_cardsGrid.default.propTypes)
61
+ type: _propTypes.default.oneOf(['content', 'list']),
62
+ list: _propTypes.default.oneOfType([_propTypes.default.shape(_cardsGrid.default.propTypes), _propTypes.default.shape(_listItems.default.propTypes)])
60
63
  })
61
64
  };
62
65
  var _default = propTypes;
@@ -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","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch","items","list","CardsGrid"],"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';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items']),\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 descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),\n items: PropTypes.shape({\n type: PropTypes.string,\n list: PropTypes.shape(CardsGrid.propTypes)\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: string;\n popinHeader?: PopinHeaderProps;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n items?: {\n type: string;\n list: PropTypes.InferProps<typeof CardsGrid.propTypes>;\n };\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;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,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;IAG3B,cAAcb,kBAAA,CAAUC,MAHG;IAI3Ba,WAAW,EAAEd,kBAAA,CAAUe,IAJI;IAK3BC,IAAI,EAAEhB,kBAAA,CAAUG,KAAV,CAAgB,CAAC,WAAD,EA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,CAAUK,KAAV,CAAgBwB,oBAAA,CAAY/B,SAA5B,CAAlB,CAtCC;EAuChBgC,KAAK,EAAE9B,kBAAA,CAAUK,KAAV,CAAgB;IACrBW,IAAI,EAAEhB,kBAAA,CAAUC,MADK;IAErB8B,IAAI,EAAE/B,kBAAA,CAAUK,KAAV,CAAgB2B,kBAAA,CAAUlC,SAA1B;EAFe,CAAhB;AAvCS,CAAlB;eA4EeA,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","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 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,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,EAAmC,OAAnC,EAA4C,MAA5C,CAAhB,CAFU;EAGhBC,MAAM,EAAEJ,kBAAA,CAAUK,KAAV,CAAgB;IACtBC,KAAK,EAAEN,k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Ed,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;eAkFeA,S"}
@@ -6,7 +6,7 @@ declare namespace DragAndDropWrapper {
6
6
  name: PropTypes.Requireable<string>;
7
7
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
8
8
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
9
- imageTypes: (props: any, propName: any, componentName: any) => Error | null;
9
+ filesTypes: (props: any, propName: any, componentName: any) => Error | null;
10
10
  error: PropTypes.Requireable<string>;
11
11
  buttonAriaLabel: PropTypes.Requireable<string>;
12
12
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -27,6 +27,7 @@ declare namespace DragAndDropWrapper {
27
27
  children: PropTypes.Requireable<(...args: any[]) => any>;
28
28
  pdfButtonLabel: PropTypes.Requireable<string>;
29
29
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
30
+ multiple: PropTypes.Requireable<boolean>;
30
31
  }> | null | undefined)[]>;
31
32
  'data-name': PropTypes.Requireable<string>;
32
33
  };