@coorpacademy/components 11.38.6-alpha.27 → 11.38.6-alpha.29

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 (161) hide show
  1. package/es/atom/input-search/index.d.ts +0 -2
  2. package/es/atom/input-search/index.d.ts.map +1 -1
  3. package/es/atom/input-search/index.js +13 -46
  4. package/es/atom/input-search/index.js.map +1 -1
  5. package/es/atom/input-search/style.css +0 -96
  6. package/es/molecule/card/customer.css +0 -3
  7. package/es/molecule/card/favorite.css +3 -3
  8. package/es/molecule/card/index.d.ts.map +1 -1
  9. package/es/molecule/card/index.js +27 -11
  10. package/es/molecule/card/index.js.map +1 -1
  11. package/es/molecule/card/notification.css +28 -12
  12. package/es/molecule/card/notification.d.ts.map +1 -1
  13. package/es/molecule/card/notification.js +24 -4
  14. package/es/molecule/card/notification.js.map +1 -1
  15. package/es/molecule/card/style.css +4 -53
  16. package/es/molecule/card-content/index.d.ts.map +1 -1
  17. package/es/molecule/card-content/index.js +59 -37
  18. package/es/molecule/card-content/index.js.map +1 -1
  19. package/es/molecule/card-content/style.css +27 -72
  20. package/es/molecule/cm-popin/types.d.ts +0 -2
  21. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  22. package/es/molecule/external-content-button/style.css +1 -0
  23. package/es/molecule/multi-filter-panel/index.d.ts +0 -2
  24. package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
  25. package/es/molecule/multi-filter-panel/prop-types.d.ts +0 -2
  26. package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  27. package/es/molecule/search-form/index.d.ts +0 -5
  28. package/es/molecule/search-form/index.d.ts.map +1 -1
  29. package/es/molecule/search-form/index.js +16 -26
  30. package/es/molecule/search-form/index.js.map +1 -1
  31. package/es/molecule/search-form/style.css +6 -21
  32. package/es/organism/brand-table/index.d.ts +0 -2
  33. package/es/organism/content-skill-modal/index.d.ts +0 -4
  34. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  35. package/es/organism/content-skill-modal/types.d.ts +0 -4
  36. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  37. package/es/organism/filter-checkbox-and-search/index.d.ts +0 -2
  38. package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  39. package/es/organism/filter-checkbox-and-search/props-types.d.ts +0 -2
  40. package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  41. package/es/organism/list-items/index.d.ts +0 -2
  42. package/es/organism/mooc-header/index.d.ts +0 -14
  43. package/es/organism/mooc-header/index.d.ts.map +1 -1
  44. package/es/organism/mooc-header/index.js +12 -123
  45. package/es/organism/mooc-header/index.js.map +1 -1
  46. package/es/organism/mooc-header/style.css +8 -181
  47. package/es/template/app-player/loading/index.d.ts +0 -2
  48. package/es/template/app-player/player/index.d.ts +0 -4
  49. package/es/template/app-player/player/slides/index.d.ts +0 -2
  50. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  51. package/es/template/app-player/popin-correction/index.d.ts +0 -2
  52. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  53. package/es/template/app-player/popin-end/index.d.ts +0 -2
  54. package/es/template/app-review/index.d.ts +0 -2
  55. package/es/template/app-review/index.d.ts.map +1 -1
  56. package/es/template/app-review/player/prop-types.d.ts +0 -2
  57. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  58. package/es/template/app-review/prop-types.d.ts +0 -2
  59. package/es/template/app-review/prop-types.d.ts.map +1 -1
  60. package/es/template/back-office/brand-update/index.d.ts +0 -12
  61. package/es/template/common/dashboard/index.d.ts +0 -4
  62. package/es/template/common/search-page/index.d.ts +0 -2
  63. package/es/template/external-course/index.d.ts +0 -2
  64. package/es/util/check-is-mobile.d.ts +1 -1
  65. package/es/util/check-is-mobile.d.ts.map +1 -1
  66. package/es/util/check-is-mobile.js +2 -4
  67. package/es/util/check-is-mobile.js.map +1 -1
  68. package/es/util/external-content.d.ts +38 -4
  69. package/es/util/external-content.d.ts.map +1 -1
  70. package/es/util/external-content.js +27 -4
  71. package/es/util/external-content.js.map +1 -1
  72. package/es/util/icons.d.ts +8 -0
  73. package/es/util/icons.d.ts.map +1 -0
  74. package/es/util/icons.js +8 -0
  75. package/es/util/icons.js.map +1 -0
  76. package/es/variables/colors.d.ts +5 -0
  77. package/es/variables/colors.d.ts.map +1 -1
  78. package/es/variables/colors.js +6 -1
  79. package/es/variables/colors.js.map +1 -1
  80. package/lib/atom/input-search/index.d.ts +0 -2
  81. package/lib/atom/input-search/index.d.ts.map +1 -1
  82. package/lib/atom/input-search/index.js +13 -46
  83. package/lib/atom/input-search/index.js.map +1 -1
  84. package/lib/atom/input-search/style.css +0 -96
  85. package/lib/molecule/card/customer.css +0 -3
  86. package/lib/molecule/card/favorite.css +3 -3
  87. package/lib/molecule/card/index.d.ts.map +1 -1
  88. package/lib/molecule/card/index.js +26 -10
  89. package/lib/molecule/card/index.js.map +1 -1
  90. package/lib/molecule/card/notification.css +28 -12
  91. package/lib/molecule/card/notification.d.ts.map +1 -1
  92. package/lib/molecule/card/notification.js +23 -3
  93. package/lib/molecule/card/notification.js.map +1 -1
  94. package/lib/molecule/card/style.css +4 -53
  95. package/lib/molecule/card-content/index.d.ts.map +1 -1
  96. package/lib/molecule/card-content/index.js +58 -36
  97. package/lib/molecule/card-content/index.js.map +1 -1
  98. package/lib/molecule/card-content/style.css +27 -72
  99. package/lib/molecule/cm-popin/types.d.ts +0 -2
  100. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  101. package/lib/molecule/external-content-button/style.css +1 -0
  102. package/lib/molecule/multi-filter-panel/index.d.ts +0 -2
  103. package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
  104. package/lib/molecule/multi-filter-panel/prop-types.d.ts +0 -2
  105. package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  106. package/lib/molecule/search-form/index.d.ts +0 -5
  107. package/lib/molecule/search-form/index.d.ts.map +1 -1
  108. package/lib/molecule/search-form/index.js +17 -27
  109. package/lib/molecule/search-form/index.js.map +1 -1
  110. package/lib/molecule/search-form/style.css +6 -21
  111. package/lib/organism/brand-table/index.d.ts +0 -2
  112. package/lib/organism/content-skill-modal/index.d.ts +0 -4
  113. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  114. package/lib/organism/content-skill-modal/types.d.ts +0 -4
  115. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  116. package/lib/organism/filter-checkbox-and-search/index.d.ts +0 -2
  117. package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  118. package/lib/organism/filter-checkbox-and-search/props-types.d.ts +0 -2
  119. package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  120. package/lib/organism/list-items/index.d.ts +0 -2
  121. package/lib/organism/mooc-header/index.d.ts +0 -14
  122. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  123. package/lib/organism/mooc-header/index.js +12 -123
  124. package/lib/organism/mooc-header/index.js.map +1 -1
  125. package/lib/organism/mooc-header/style.css +8 -181
  126. package/lib/template/app-player/loading/index.d.ts +0 -2
  127. package/lib/template/app-player/player/index.d.ts +0 -4
  128. package/lib/template/app-player/player/slides/index.d.ts +0 -2
  129. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  130. package/lib/template/app-player/popin-correction/index.d.ts +0 -2
  131. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  132. package/lib/template/app-player/popin-end/index.d.ts +0 -2
  133. package/lib/template/app-review/index.d.ts +0 -2
  134. package/lib/template/app-review/index.d.ts.map +1 -1
  135. package/lib/template/app-review/player/prop-types.d.ts +0 -2
  136. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  137. package/lib/template/app-review/prop-types.d.ts +0 -2
  138. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  139. package/lib/template/back-office/brand-update/index.d.ts +0 -12
  140. package/lib/template/common/dashboard/index.d.ts +0 -4
  141. package/lib/template/common/search-page/index.d.ts +0 -2
  142. package/lib/template/external-course/index.d.ts +0 -2
  143. package/lib/util/check-is-mobile.d.ts +1 -1
  144. package/lib/util/check-is-mobile.d.ts.map +1 -1
  145. package/lib/util/check-is-mobile.js +2 -4
  146. package/lib/util/check-is-mobile.js.map +1 -1
  147. package/lib/util/external-content.d.ts +38 -4
  148. package/lib/util/external-content.d.ts.map +1 -1
  149. package/lib/util/external-content.js +28 -5
  150. package/lib/util/external-content.js.map +1 -1
  151. package/lib/util/icons.d.ts +8 -0
  152. package/lib/util/icons.d.ts.map +1 -0
  153. package/lib/util/icons.js +12 -0
  154. package/lib/util/icons.js.map +1 -0
  155. package/lib/variables/colors.d.ts +5 -0
  156. package/lib/variables/colors.d.ts.map +1 -1
  157. package/lib/variables/colors.js +6 -1
  158. package/lib/variables/colors.js.map +1 -1
  159. package/locales/en/global.json +5 -0
  160. package/locales/lt/global.json +24 -24
  161. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","names":["React","PropTypes","classnames","NovaCompositionNavigationMore","MoreIcon","NovaSolidLoginLocked","LockIcon","NovaSolidLocksLockUnlock1","UnlockIcon","NovaCompositionCoorpacademyCheck","CheckIcon","style","NOTIFICATION_ICON","addFavorite","removeFavorite","lock","unlock","handleOverlayClick","e","stopPropagation","preventDefault","Notification","props","message","icon","IconType","_get","createElement","onClick","className","showOverlay","notificationWrapper","notification","color","stroke","role","propTypes","process","env","NODE_ENV","string","isRequired","oneOf","_keys"],"sources":["../../../src/molecule/card/notification.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaCompositionNavigationMore as MoreIcon,\n NovaSolidLoginLocked as LockIcon,\n NovaSolidLocksLockUnlock1 as UnlockIcon,\n NovaCompositionCoorpacademyCheck as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport style from './notification.css';\n\nconst NOTIFICATION_ICON = {\n addFavorite: CheckIcon,\n removeFavorite: MoreIcon,\n lock: LockIcon,\n unlock: UnlockIcon\n};\n\nconst handleOverlayClick = e => {\n e.stopPropagation();\n e.preventDefault();\n return false;\n};\n\nconst Notification = props => {\n const {message, icon} = props;\n\n const IconType = get(icon, NOTIFICATION_ICON);\n return (\n <div\n data-name=\"notification\"\n data-type={icon}\n onClick={handleOverlayClick}\n className={classnames(style.showOverlay, style.notificationWrapper)}\n >\n <div className={style.notification}>\n <IconType className={style.icon} style={{color: null}} stroke={null} />\n <div className={style.message}>\n <span role=\"status\">{message}</span>\n </div>\n </div>\n </div>\n );\n};\nNotification.propTypes = {\n message: PropTypes.string.isRequired,\n icon: PropTypes.oneOf(keys(NOTIFICATION_ICON)).isRequired\n};\n\nexport default Notification;\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,6BAA6B,IAAIC,QAAQ,EACzCC,oBAAoB,IAAIC,QAAQ,EAChCC,yBAAyB,IAAIC,UAAU,EACvCC,gCAAgC,IAAIC,SAAS,QACxC,0BAA0B;AACjC,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,MAAMC,iBAAiB,GAAG;EACxBC,WAAW,EAAEH,SAAS;EACtBI,cAAc,EAAEV,QAAQ;EACxBW,IAAI,EAAET,QAAQ;EACdU,MAAM,EAAER;AACV,CAAC;AAED,MAAMS,kBAAkB,GAAGC,CAAC,IAAI;EAC9BA,CAAC,CAACC,eAAe,CAAC,CAAC;EACnBD,CAAC,CAACE,cAAc,CAAC,CAAC;EAClB,OAAO,KAAK;AACd,CAAC;AAED,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IAACC,OAAO;IAAEC;EAAI,CAAC,GAAGF,KAAK;EAE7B,MAAMG,QAAQ,GAAGC,IAAA,CAAIF,IAAI,EAAEZ,iBAAiB,CAAC;EAC7C,oBACEZ,KAAA,CAAA2B,aAAA;IACE,aAAU,cAAc;IACxB,aAAWH,IAAK;IAChBI,OAAO,EAAEX,kBAAmB;IAC5BY,SAAS,EAAE3B,UAAU,CAACS,KAAK,CAACmB,WAAW,EAAEnB,KAAK,CAACoB,mBAAmB;EAAE,gBAEpE/B,KAAA,CAAA2B,aAAA;IAAKE,SAAS,EAAElB,KAAK,CAACqB;EAAa,gBACjChC,KAAA,CAAA2B,aAAA,CAACF,QAAQ;IAACI,SAAS,EAAElB,KAAK,CAACa,IAAK;IAACb,KAAK,EAAE;MAACsB,KAAK,EAAE;IAAI,CAAE;IAACC,MAAM,EAAE;EAAK,CAAE,CAAC,eACvElC,KAAA,CAAA2B,aAAA;IAAKE,SAAS,EAAElB,KAAK,CAACY;EAAQ,gBAC5BvB,KAAA,CAAA2B,aAAA;IAAMQ,IAAI,EAAC;EAAQ,GAAEZ,OAAc,CAChC,CACF,CACF,CAAC;AAEV,CAAC;AACDF,YAAY,CAACe,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACvBhB,OAAO,EAAEtB,SAAS,CAACuC,MAAM,CAACC,UAAU;EACpCjB,IAAI,EAAEvB,SAAS,CAACyC,KAAK,CAACC,KAAA,CAAK/B,iBAAiB,CAAC,CAAC,CAAC6B;AACjD,CAAC;AAED,eAAepB,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"notification.js","names":["React","PropTypes","classnames","NovaSolidLoginLocked","LockIcon","NovaSolidLocksLockUnlock1","UnlockIcon","NovaCompositionCoorpacademyCheck","CheckIcon","NovaSolidStatusClose","CloseIcon","COLORS","style","NOTIFICATION_ICON","addFavorite","removeFavorite","lock","unlock","NOTIFICATIONS_COLORS","color","cm_blue_700","backgroundColor","primary_100","neutral_500","cm_grey_100","handleOverlayClick","e","stopPropagation","preventDefault","Notification","props","message","icon","IconType","_get","createElement","onClick","className","showOverlay","notificationWrapper","notification","iconWrapper","stroke","role","propTypes","process","env","NODE_ENV","string","isRequired","oneOf","_keys"],"sources":["../../../src/molecule/card/notification.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaSolidLocksLockUnlock1 as UnlockIcon,\n NovaCompositionCoorpacademyCheck as CheckIcon,\n NovaSolidStatusClose as CloseIcon\n} from '@coorpacademy/nova-icons';\nimport {COLORS} from '../../variables/colors';\nimport style from './notification.css';\n\nconst NOTIFICATION_ICON = {\n addFavorite: CheckIcon,\n removeFavorite: CloseIcon,\n lock: LockIcon,\n unlock: UnlockIcon\n};\n\nconst NOTIFICATIONS_COLORS = {\n addFavorite: {color: COLORS.cm_blue_700, backgroundColor: COLORS.primary_100},\n removeFavorite: {color: COLORS.neutral_500, backgroundColor: COLORS.cm_grey_100}\n};\n\nconst handleOverlayClick = e => {\n e.stopPropagation();\n e.preventDefault();\n return false;\n};\n\nconst Notification = props => {\n const {message, icon} = props;\n const IconType = get(icon, NOTIFICATION_ICON);\n const {color, backgroundColor} = get(icon, NOTIFICATIONS_COLORS);\n return (\n <div\n data-name=\"notification\"\n data-type={icon}\n onClick={handleOverlayClick}\n className={classnames(style.showOverlay, style.notificationWrapper)}\n >\n <div className={style.notification}>\n <div className={style.iconWrapper} style={{backgroundColor}}>\n <IconType className={style.icon} style={{color}} stroke={null} />\n </div>\n <div className={style.message}>\n <span role=\"status\">{message}</span>\n </div>\n </div>\n </div>\n );\n};\nNotification.propTypes = {\n message: PropTypes.string.isRequired,\n icon: PropTypes.oneOf(keys(NOTIFICATION_ICON)).isRequired\n};\n\nexport default Notification;\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,oBAAoB,IAAIC,QAAQ,EAChCC,yBAAyB,IAAIC,UAAU,EACvCC,gCAAgC,IAAIC,SAAS,EAC7CC,oBAAoB,IAAIC,SAAS,QAC5B,0BAA0B;AACjC,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,KAA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zB,KAAK,CAACoB,IAAK;IAACpB,KAAK,EAAE;MAACO;IAAK,CAAE;IAACuB,MAAM,EAAE;EAAK,CAAE,CAC7D,CAAC,eACN1C,KAAA,CAAAmC,aAAA;IAAKE,SAAS,EAAEzB,KAAK,CAACmB;EAAQ,gBAC5B/B,KAAA,CAAAmC,aAAA;IAAMQ,IAAI,EAAC;EAAQ,GAAEZ,OAAc,CAChC,CACF,CACF,CAAC;AAEV,CAAC;AACDF,YAAY,CAACe,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACvBhB,OAAO,EAAE9B,SAAS,CAAC+C,MAAM,CAACC,UAAU;EACpCjB,IAAI,EAAE/B,SAAS,CAACiD,KAAK,CAACC,KAAA,CAAKtC,iBAAiB,CAAC,CAAC,CAACoC;AACjD,CAAC;AAED,eAAepB,YAAY","ignoreList":[]}
@@ -31,12 +31,14 @@
31
31
  animation: fadeIn 1s ease-out forwards;
32
32
  cursor: pointer;
33
33
  box-shadow: 0 0 13px 0 rgba(0, 0, 0, 0.11);
34
+ border: 2px solid white;
34
35
  }
35
36
 
36
37
  .defaultStyle[disabled] .favorite {
37
38
  z-index: 0;
38
39
  }
39
40
 
41
+
40
42
  .grid.empty {
41
43
  padding-bottom: 25px;
42
44
  opacity: 0.6;
@@ -44,17 +46,11 @@
44
46
 
45
47
  .course {
46
48
  composes: defaultStyle;
47
- border-radius: 8px;
49
+ border-radius: 12px;
48
50
  width: 256px;
49
51
  height: 297px;
50
52
  }
51
53
 
52
- .chapter {
53
- composes: defaultStyle;
54
- border-radius: 8px;
55
- width: 203px;
56
- height: 297px;
57
- }
58
54
 
59
55
  .coorpmanager.course {
60
56
  border-radius: 5px;
@@ -62,12 +58,6 @@
62
58
  height: 201px;
63
59
  }
64
60
 
65
- .coorpmanager.chapter {
66
- border-radius: 5px;
67
- width: 138px;
68
- height: 201px;
69
- }
70
-
71
61
  .course .imageWrapper {
72
62
  width: 100%;
73
63
  height: 100%;
@@ -76,18 +66,6 @@
76
66
  left: 0;
77
67
  }
78
68
 
79
- .chapter .chapterImageWrapper {
80
- max-height: 77px;
81
- width: 100%;
82
- position: absolute;
83
- top: 0;
84
- left: 0;
85
- }
86
-
87
- .coorpmanager.chapter .chapterImageWrapper {
88
- max-height: 52px;
89
- }
90
-
91
69
  .defaultStyle .image {
92
70
  overflow: hidden;
93
71
  background-position: 50%;
@@ -157,8 +135,7 @@
157
135
  }
158
136
 
159
137
  .course .defaultStyle:hover,
160
- .chapter .defaultStyle:hover {
161
- background: light;
138
+ .defaultStyle:hover {
162
139
  cursor: pointer;
163
140
  transition: background 0.25s ease-in-out;
164
141
  }
@@ -361,18 +338,6 @@
361
338
  transition: transform 0.25s ease-in-out;
362
339
  }
363
340
 
364
- .externalIcon {
365
- color: white;
366
- width: 45px;
367
- height: 45px;
368
- }
369
-
370
- .coorpmanager .externalIcon {
371
- color: white;
372
- width: 23px;
373
- height: 23px;
374
- }
375
-
376
341
  .externalIconCircleWrapper::after {
377
342
  animation: pulse 3s linear 0s infinite;
378
343
  animation-play-state: paused;
@@ -431,19 +396,6 @@
431
396
  margin-top: 20px;
432
397
  }
433
398
 
434
- .coorpmanager .externalIconWithImage {
435
- color: white;
436
- width: 25px;
437
- height: 25px;
438
- padding: 0 0 0 1px;
439
- }
440
-
441
- .externalIconWithImage {
442
- color: white;
443
- width: 28px;
444
- height: 28px;
445
- }
446
-
447
399
  .externalIconCircleWithImageWrapper::after,
448
400
  .externalIconCircleWithImageWrapper::before {
449
401
  content: '';
@@ -452,7 +404,6 @@
452
404
  top: 0;
453
405
  left: 0;
454
406
  position: absolute;
455
-
456
407
  border-radius: 50%;
457
408
  transform: scale(1);
458
409
  opacity: 0;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/card-content/index.js"],"names":[],"mappings":";;;;;;;;;;AAsHA;;;;;;;;;;;;;;gBA8EC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/card-content/index.js"],"names":[],"mappings":";;;;;;;;;;AAiIA;;;;;;;;;;;;;;gBA0EC"}
@@ -1,13 +1,17 @@
1
1
  import _keys from "lodash/fp/keys";
2
2
  import _isNil from "lodash/fp/isNil";
3
+ import _getOr from "lodash/fp/getOr";
3
4
  import _get from "lodash/fp/get";
4
5
  import React from 'react';
5
6
  import PropTypes from 'prop-types';
6
7
  import classnames from 'classnames';
7
- import { NovaCompositionCoorpacademyAdaptive as AdaptivIcon, NovaSolidStatusCheckCircle2 as CheckIcon, NovaCompositionCoorpacademyTimer as TimerIcon } from '@coorpacademy/nova-icons';
8
- import { isExternalContent, EXTERNAL_CONTENT_ICONS } from '../../util/external-content';
8
+ import { NovaCompositionCoorpacademyAdaptive as AdaptivIcon, NovaSolidStatusCheckCircle2 as CheckIcon } from '@coorpacademy/nova-icons';
9
9
  import Provider from '../../atom/provider';
10
10
  import ContentBadge from '../../atom/content-badge';
11
+ import Tag from '../../atom/tag';
12
+ import { COLORS } from '../../variables/colors';
13
+ import { isExternalContent } from '../../util/external-content';
14
+ import { ICONS_NAMES_MAP } from '../../util/icons';
11
15
  import style from './style.css';
12
16
  export const MODES = {
13
17
  HERO: 'hero',
@@ -20,42 +24,63 @@ export const THEMES = {
20
24
  const ContentTypeInfo = ({
21
25
  mode,
22
26
  type,
23
- externalContent
27
+ adaptiv,
28
+ ariaLabel,
29
+ isCourse,
30
+ empty,
31
+ theme
24
32
  }, context) => {
25
33
  const {
26
34
  translate
27
35
  } = context;
28
- if (mode !== MODES.CARD) {
36
+ if (mode !== MODES.CARD || empty || theme === 'coorpmanager') {
29
37
  return null;
30
38
  }
31
- if (type === 'chapter') {
32
- return /*#__PURE__*/React.createElement("div", {
33
- className: style.microLearningIcon
34
- }, /*#__PURE__*/React.createElement(TimerIcon, {
35
- className: style.timerIcon
36
- }), /*#__PURE__*/React.createElement("span", {
37
- className: style.microLearninglabel
38
- }, "5' learning"));
39
- }
40
- if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {
41
- const textColor = EXTERNAL_CONTENT_ICONS[type].color;
42
- return /*#__PURE__*/React.createElement("div", {
43
- className: style.contentTypeInfo,
44
- style: {
45
- color: textColor
46
- }
47
- }, type === 'scorm' ? translate('external_content_scorm') : '', type === 'video' ? translate('external_content_video') : '', type === 'article' ? translate('external_content_article') : '', type === 'podcast' ? translate('external_content_podcast') : '');
48
- }
49
- return null;
39
+ const getLabel = contentType => {
40
+ switch (contentType) {
41
+ case 'scorm':
42
+ return translate('content_type_scorm');
43
+ case 'video':
44
+ return translate('content_type_video');
45
+ case 'article':
46
+ return translate('content_type_article');
47
+ case 'podcast':
48
+ return translate('content_type_podcast');
49
+ case 'course':
50
+ return translate('content_type_course');
51
+ default:
52
+ return `5'learning`;
53
+ }
54
+ };
55
+ const label = getLabel(type);
56
+ const iconName = _getOr('stopwatch', type, ICONS_NAMES_MAP);
57
+ return /*#__PURE__*/React.createElement("div", {
58
+ className: style.contentTypeInfos
59
+ }, /*#__PURE__*/React.createElement(Tag, {
60
+ size: "S",
61
+ label: label,
62
+ icon: {
63
+ iconName
64
+ }
65
+ }), adaptiv ? /*#__PURE__*/React.createElement("div", {
66
+ className: classnames(style.adaptiveIcon, isCourse ? style.iconShadow : null)
67
+ }, /*#__PURE__*/React.createElement(AdaptivIcon, {
68
+ height: 20,
69
+ "aria-label": _get('adaptive', ariaLabel)
70
+ })) : null);
50
71
  };
51
72
  ContentTypeInfo.contextTypes = {
52
73
  skin: Provider.childContextTypes.skin,
53
74
  translate: Provider.childContextTypes.translate
54
75
  };
55
76
  ContentTypeInfo.propTypes = process.env.NODE_ENV !== "production" ? {
56
- externalContent: PropTypes.bool,
57
77
  type: PropTypes.string,
58
- mode: PropTypes.string
78
+ mode: PropTypes.string,
79
+ adaptiv: PropTypes.bool,
80
+ ariaLabel: PropTypes.string,
81
+ isCourse: PropTypes.bool,
82
+ empty: PropTypes.bool,
83
+ theme: PropTypes.oneOf(_keys(THEMES))
59
84
  } : {};
60
85
  const CardTitle = ({
61
86
  title,
@@ -117,14 +142,14 @@ const ContentInfo = ({
117
142
  theme = 'default',
118
143
  'aria-label': ariaLabel
119
144
  }) => {
120
- const progressBarColor = '#3EC483';
145
+ const progressBarColor = COLORS.cm_positive_500;
121
146
  const inlineProgressValueStyle = {
122
147
  backgroundColor: progressBarColor,
123
148
  width: `${progress * 100}%`
124
149
  };
125
- const externalContent = isExternalContent(type);
126
150
  const courseContent = type === 'course';
127
151
  const chapterContent = type === 'chapter';
152
+ const externalContent = isExternalContent(type);
128
153
  const progressBar = mode === MODES.HERO || !empty && !disabled ? /*#__PURE__*/React.createElement("div", {
129
154
  className: !_isNil(progress) ? style.progressWrapper : style.hideProgressBar
130
155
  }, !disabled ? /*#__PURE__*/React.createElement("div", {
@@ -134,24 +159,21 @@ const ContentInfo = ({
134
159
  role: "progressbar",
135
160
  "aria-label": _get('progression', ariaLabel)
136
161
  }) : null) : null;
137
- const adaptiveIcon = adaptiv ? /*#__PURE__*/React.createElement("div", {
138
- className: classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)
139
- }, /*#__PURE__*/React.createElement(AdaptivIcon, {
140
- height: 25,
141
- "aria-label": _get('adaptive', ariaLabel)
142
- })) : null;
143
162
  return /*#__PURE__*/React.createElement("div", {
144
163
  "data-name": "info",
145
- className: classnames(THEMES[theme], style.infoWrapper, mode === MODES.HERO ? style.hero : style.card, disabled ? style.progressBarDisabled : null, externalContent ? style.externalContent : null)
164
+ className: classnames(THEMES[theme], style.infoWrapper, mode === MODES.HERO ? style.hero : style.card, disabled ? style.progressBarDisabled : null, chapterContent || courseContent || externalContent ? style.standardContent : null)
146
165
  }, /*#__PURE__*/React.createElement(ContentTypeInfo, {
147
166
  mode: mode,
148
167
  type: type,
149
- externalContent: externalContent
168
+ adaptiv: adaptiv,
169
+ isCourse: courseContent,
170
+ empty: empty,
171
+ theme: theme
150
172
  }), /*#__PURE__*/React.createElement("div", {
151
- className: classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)
173
+ className: classnames(style.cardInfo, courseContent ? style.cardCourseTitle : null)
152
174
  }, /*#__PURE__*/React.createElement("div", {
153
175
  className: style.iconWrapper
154
- }, adaptiveIcon, !empty && badgeLabel && badgeCategory && courseContent ? /*#__PURE__*/React.createElement(ContentBadge, {
176
+ }, !empty && badgeLabel && badgeCategory && courseContent ? /*#__PURE__*/React.createElement(ContentBadge, {
155
177
  category: badgeCategory,
156
178
  label: badgeLabel
157
179
  }) : null), /*#__PURE__*/React.createElement(CardTitle, {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","NovaCompositionCoorpacademyTimer","TimerIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","ContentBadge","style","MODES","HERO","CARD","THEMES","default","coorpmanager","ContentTypeInfo","mode","type","externalContent","context","translate","createElement","className","microLearningIcon","timerIcon","microLearninglabel","textColor","color","contentTypeInfo","contextTypes","skin","childContextTypes","propTypes","process","env","NODE_ENV","bool","string","CardTitle","title","empty","courseContent","innerHTML","lightTitle","darkTitle","dangerouslySetInnerHTML","__html","AuthorName","author","certifiedAuthor","ariaLabel","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","theme","progressBarColor","inlineProgressValueStyle","backgroundColor","width","chapterContent","progressBar","_isNil","progressWrapper","hideProgressBar","role","_get","adaptiveIcon","height","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","iconWrapper","category","label","number","oneOf","_keys","shape","progression","adaptive"],"sources":["../../../src/molecule/card-content/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isNil, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon className={style.timerIcon} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n style.innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor, 'aria-label': ariaLabel}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)} />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n aria-label={ariaLabel}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': ariaLabel\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n role=\"progressbar\"\n aria-label={get('progression', ariaLabel)}\n />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}>\n <AdaptivIcon height={25} aria-label={get('adaptive', ariaLabel)} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n THEMES[theme],\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n <div className={style.iconWrapper}>\n {adaptiveIcon}\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n aria-label={get('author', ariaLabel)}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.shape({\n author: PropTypes.string,\n progression: PropTypes.string,\n adaptive: PropTypes.string\n })\n};\n\nexport default ContentInfo;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,mCAAmC,IAAIC,WAAW,EAClDC,2BAA2B,IAAIC,SAAS,EACxCC,gCAAgC,IAAIC,SAAS,QACxC,0BAA0B;AACjC,SAAQC,iBAAiB,EAAEC,sBAAsB,QAAO,6BAA6B;AACrF,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,OAAOC,YAAY,MAAM,0BAA0B;AACnD,OAAOC,KAAK,MAAM,aAAa;AAE/B,OAAO,MAAMC,KAAK,GAAG;EACnBC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,MAAM,GAAG;EACpBC,OAAO,EAAE,IAAI;EACbC,YAAY,EAAEN,KAAK,CAACM;AACtB,CAAC;AAED,MAAMC,eAAe,GAAGA,CAAC;EAACC,IAAI;EAAEC,IAAI;EAAEC;AAAe,C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MAAM;EAC1B7C,KAAK,EAAE3C,SAAS,CAACyC,MAAM;EACvBpB,IAAI,EAAErB,SAAS,CAACyC,MAAM;EACtBrB,IAAI,EAAEpB,SAAS,CAACyC,MAAM;EACtBsB,aAAa,EAAEpD,YAAY,CAACyB,SAAS,CAACkD,QAAQ;EAC9CtB,UAAU,EAAErD,YAAY,CAACyB,SAAS,CAACmD,KAAK;EACxCtB,KAAK,EAAEjE,SAAS,CAACyF,KAAK,CAACC,KAAA,CAAK1E,MAAM,CAAC,CAAC;EACpC,YAAY,EAAEhB,SAAS,CAAC2F,KAAK,CAAC;IAC5BvC,MAAM,EAAEpD,SAAS,CAACyC,MAAM;IACxBmD,WAAW,EAAE5F,SAAS,CAACyC,MAAM;IAC7BoD,QAAQ,EAAE7F,SAAS,CAACyC;EACtB,CAAC;AACH,CAAC;AAED,eAAekB,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","Provider","ContentBadge","Tag","COLORS","isExternalContent","ICONS_NAMES_MAP","style","MODES","HERO","CARD","THEMES","default","coorpmanager","ContentTypeInfo","mode","type","adaptiv","ariaLabel","isCourse","empty","theme","context","translate","getLabel","contentType","label","iconName","_getOr","createElement","className","contentTypeInfos","size","icon","adaptiveIcon","iconShadow","height","_get","contextTypes","skin","childContextTypes","propTypes","process","env","NODE_ENV","string","bool","oneOf","_keys","CardTitle","title","courseContent","innerHTML","lightTitle","darkTitle","dangerouslySetInnerHTML","__html","AuthorName","author","certifiedAuthor","checkIcon","authorIcon","darkAuthorTitle","ContentInfo","disabled","progress","badgeCategory","badgeLabel","progressBarColor","cm_positive_500","inlineProgressValueStyle","backgroundColor","width","chapterContent","externalContent","progressBar","_isNil","progressWrapper","hideProgressBar","role","infoWrapper","hero","card","progressBarDisabled","standardContent","cardInfo","cardCourseTitle","iconWrapper","category","number","shape","progression","adaptive"],"sources":["../../../src/molecule/card-content/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, getOr, isNil, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport Tag from '../../atom/tag';\nimport {COLORS} from '../../variables/colors';\nimport {isExternalContent} from '../../util/external-content';\nimport {ICONS_NAMES_MAP} from '../../util/icons';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst ContentTypeInfo = ({mode, type, adaptiv, ariaLabel, isCourse, empty, theme}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD || empty || theme === 'coorpmanager') {\n return null;\n }\n const getLabel = contentType => {\n switch (contentType) {\n case 'scorm':\n return translate('content_type_scorm');\n case 'video':\n return translate('content_type_video');\n case 'article':\n return translate('content_type_article');\n case 'podcast':\n return translate('content_type_podcast');\n case 'course':\n return translate('content_type_course');\n default:\n return `5'learning`;\n }\n };\n const label = getLabel(type);\n const iconName = getOr('stopwatch', type, ICONS_NAMES_MAP);\n return (\n <div className={style.contentTypeInfos}>\n <Tag size=\"S\" label={label} icon={{iconName}} />\n {adaptiv ? (\n <div className={classnames(style.adaptiveIcon, isCourse ? style.iconShadow : null)}>\n <AdaptivIcon height={20} aria-label={get('adaptive', ariaLabel)} />\n </div>\n ) : null}\n </div>\n );\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n type: PropTypes.string,\n mode: PropTypes.string,\n adaptiv: PropTypes.bool,\n ariaLabel: PropTypes.string,\n isCourse: PropTypes.bool,\n empty: PropTypes.bool,\n theme: PropTypes.oneOf(keys(THEMES))\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n style.innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor, 'aria-label': ariaLabel}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)} />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n aria-label={ariaLabel}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': ariaLabel\n}) => {\n const progressBarColor = COLORS.cm_positive_500;\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n const externalContent = isExternalContent(type);\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n role=\"progressbar\"\n aria-label={get('progression', ariaLabel)}\n />\n ) : null}\n </div>\n ) : null;\n return (\n <div\n data-name=\"info\"\n className={classnames(\n THEMES[theme],\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n chapterContent || courseContent || externalContent ? style.standardContent : null\n )}\n >\n <ContentTypeInfo\n mode={mode}\n type={type}\n adaptiv={adaptiv}\n isCourse={courseContent}\n empty={empty}\n theme={theme}\n />\n <div className={classnames(style.cardInfo, courseContent ? style.cardCourseTitle : null)}>\n <div className={style.iconWrapper}>\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n aria-label={get('author', ariaLabel)}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.shape({\n author: PropTypes.string,\n progression: PropTypes.string,\n adaptive: PropTypes.string\n })\n};\n\nexport default ContentInfo;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,mCAAmC,IAAIC,WAAW,EAClDC,2BAA2B,IAAIC,SAAS,QACnC,0BAA0B;AACjC,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,OAAOC,YAAY,MAAM,0BAA0B;AACnD,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SAAQC,MAAM,QAAO,wBAA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ors;
10
10
  @value xtraLightGrey from colors;
11
11
  @value white from colors;
12
-
13
- .microLearningCardInfo {
14
- flex: 1 0 auto;
15
- }
16
-
17
- .microLearningIcon {
18
- display: flex;
19
- flex-direction: column;
20
- align-self: center;
21
- margin-top: 53px;
22
- }
23
-
24
- .coorpmanager .microLearningIcon {
25
- display: flex;
26
- flex-direction: column;
27
- align-self: center;
28
- margin-top: 35px;
29
- }
30
-
31
- .timerIcon {
32
- height: 40px;
33
- width: 40px;
34
- }
35
-
36
- .coorpmanager .timerIcon {
37
- height: 30px;
38
- width: 30px;
39
- }
40
-
41
- .microLearningIcon svg {
42
- background:white;
43
- border-radius: 50%;
44
- margin: 0 auto;
45
- padding: 3px;
46
- box-sizing: content-box;
47
- color: lightBlack;
48
- }
49
-
50
- .microLearninglabel {
51
- font-family: 'Gilroy';
52
- font-size: 10px;
53
- font-weight: 800;
54
- color: lightBlack;
55
- text-transform: uppercase;
56
- }
57
-
58
- .coorpmanager .microLearninglabel {
59
- font-size: 6px;
60
- }
12
+ @value cm_grey_200 from colors;
61
13
 
62
14
  .infoWrapper {
63
15
  display: flex;
16
+ gap: 4px;
64
17
  flex-direction: column;
65
18
  position: relative;
66
- justify-content: center;
67
- padding: 0 16px;
19
+ justify-content: flex-end;
20
+ padding-left: 16px;
21
+ padding-right: 16px;
68
22
  width: 100%;
69
23
  box-sizing: border-box;
70
24
  }
@@ -131,7 +85,7 @@
131
85
  margin-top: 0px;
132
86
  }
133
87
 
134
- .externalContent.coorpmanager .author {
88
+ .standardContent.coorpmanager .author {
135
89
  margin-top: 5px;
136
90
  }
137
91
 
@@ -155,7 +109,6 @@
155
109
 
156
110
  .infoWrapper.card {
157
111
  height: 100%;
158
- justify-content: flex-end;
159
112
  }
160
113
 
161
114
  .infoWrapper.empty {
@@ -177,11 +130,9 @@
177
130
  }
178
131
 
179
132
  .adaptiveIcon {
180
- font-size: 5px;
181
133
  width: 25px;
182
- height: 25px;
134
+ height: 20px;
183
135
  color: lightBlack;
184
- margin-right: 5px;
185
136
  }
186
137
 
187
138
  .iconWrapper {
@@ -210,48 +161,52 @@
210
161
  .progressWrapper {
211
162
  position: relative;
212
163
  left: 0;
213
- width: 194px;
164
+ width: 150px;
214
165
  height: 4px;
215
166
  border-radius: 2px;
216
167
  overflow: hidden;
217
168
  margin: 16px auto;
218
- background: light;
169
+ background: cm_grey_200;
219
170
  }
220
171
 
221
172
  .coorpmanager .progressWrapper {
173
+ width: 140px;
222
174
  height: 2px;
223
175
  margin: 11px auto;
224
176
  }
225
177
 
226
- .card .progressWrapper {
227
- width: 150px;
228
- }
229
-
230
178
  .hero .progressWrapper {
231
179
  margin: 0 auto;
232
180
  }
233
181
 
234
- .contentTypeInfo {
235
- font-family: 'Gilroy';
236
- font-size: 10px;
237
- font-weight: 700;
238
- }
239
-
240
- .coorpmanager.externalContent .contentTypeInfo {
241
- font-size: 6px;
182
+ .contentTypeInfos {
183
+ display: flex;
184
+ align-items: center;
185
+ gap: 8px;
242
186
  }
243
187
 
244
- .externalContent .cardInfo {
188
+ .standardContent .cardInfo {
245
189
  flex-grow: 2;
246
190
  max-height: 115px;
247
191
  overflow: hidden;
248
192
  }
249
193
 
250
- .coorpmanager.externalContent .cardInfo {
194
+ .standardContent.infoWrapper {
195
+ padding-top: 50%;
196
+ }
197
+
198
+ .coorpmanager.standardContent .cardInfo {
251
199
  flex-grow: 2;
252
200
  max-height: 79px;
253
201
  }
254
202
 
203
+ .cardInfo.cardCourseTitle {
204
+ flex-grow: 0;
205
+ display: flex;
206
+ justify-content: flex-end;
207
+ flex-direction: column;
208
+ }
209
+
255
210
  @media mobile {
256
211
  .author {
257
212
  font-size: 12px;
@@ -648,8 +648,6 @@ declare const propTypes: {
648
648
  onClear: PropTypes.Requireable<(...args: any[]) => any>;
649
649
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
650
650
  onBlur: PropTypes.Requireable<(...args: any[]) => any>;
651
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
652
- inputRef: PropTypes.Requireable<(...args: any[]) => any>;
653
651
  theme: PropTypes.Requireable<string>;
654
652
  dataTestId: PropTypes.Requireable<string>;
655
653
  }>>;
@@ -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;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAC,SAAS,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE3D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -42,6 +42,7 @@
42
42
  }
43
43
 
44
44
  .title {
45
+ text-transform: uppercase;
45
46
  font-family: 'Gilroy';
46
47
  font-size: 17px;
47
48
  font-weight: bold;
@@ -39,8 +39,6 @@ declare const MultiFilterPanel: {
39
39
  onClear: import("prop-types").Requireable<(...args: any[]) => any>;
40
40
  onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
41
41
  onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
42
- onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
43
- inputRef: import("prop-types").Requireable<(...args: any[]) => any>;
44
42
  theme: import("prop-types").Requireable<string>;
45
43
  dataTestId: import("prop-types").Requireable<string>;
46
44
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAqBlF,QAAA,MAAM,gBAAgB;YAAW,qBAAqB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDhF,CAAC;AAQF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAqBlF,QAAA,MAAM,gBAAgB;YAAW,qBAAqB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDhF,CAAC;AAQF,eAAe,gBAAgB,CAAC"}
@@ -37,8 +37,6 @@ declare const propTypes: {
37
37
  onClear: PropTypes.Requireable<(...args: any[]) => any>;
38
38
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
39
39
  onBlur: PropTypes.Requireable<(...args: any[]) => any>;
40
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
41
- inputRef: PropTypes.Requireable<(...args: any[]) => any>;
42
40
  theme: PropTypes.Requireable<string>;
43
41
  dataTestId: PropTypes.Requireable<string>;
44
42
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAC3F,OAAyC,EACvC,4BAA4B,EAC7B,MAAM,uDAAuD,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAed,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,4BAA4B,CAAC;CACvC,CAAC;AAEF,oBAAY,kBAAkB,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEzE,oBAAY,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAC3F,OAAyC,EACvC,4BAA4B,EAC7B,MAAM,uDAAuD,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAed,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,4BAA4B,CAAC;CACvC,CAAC;AAEF,oBAAY,kBAAkB,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEzE,oBAAY,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -8,8 +8,6 @@ declare namespace SearchForm {
8
8
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
9
9
  onSearchFocus: PropTypes.Requireable<(...args: any[]) => any>;
10
10
  onSearchBlur: PropTypes.Requireable<(...args: any[]) => any>;
11
- onSearchKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
12
- inputRef: PropTypes.Requireable<(...args: any[]) => any>;
13
11
  search: PropTypes.Requireable<PropTypes.InferProps<{
14
12
  value: PropTypes.Requireable<string>;
15
13
  placeholder: PropTypes.Validator<string>;
@@ -17,14 +15,11 @@ declare namespace SearchForm {
17
15
  onClear: PropTypes.Requireable<(...args: any[]) => any>;
18
16
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
19
17
  onBlur: PropTypes.Requireable<(...args: any[]) => any>;
20
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
21
- inputRef: PropTypes.Requireable<(...args: any[]) => any>;
22
18
  theme: PropTypes.Requireable<string>;
23
19
  dataTestId: PropTypes.Requireable<string>;
24
20
  }>>;
25
21
  'search-reset-aria-label': PropTypes.Requireable<string>;
26
22
  dataTestId: PropTypes.Requireable<string>;
27
- theme: PropTypes.Requireable<string>;
28
23
  };
29
24
  }
30
25
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/search-form/index.js"],"names":[],"mappings":";AAOA,mEAkEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/search-form/index.js"],"names":[],"mappings":";AAOA,mEA0CC"}