@coorpacademy/components 11.14.1-alpha.3.27 → 11.14.2

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 (241) hide show
  1. package/es/atom/button/index.d.ts.map +1 -1
  2. package/es/atom/button/index.js +18 -13
  3. package/es/atom/button/index.js.map +1 -1
  4. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  5. package/es/molecule/cm-popin/index.js +5 -4
  6. package/es/molecule/cm-popin/index.js.map +1 -1
  7. package/es/molecule/cm-popin/style.css +61 -40
  8. package/es/molecule/discipline-header/index.d.ts +1 -1
  9. package/es/molecule/discipline-header/index.d.ts.map +1 -1
  10. package/es/molecule/discipline-header/index.js +8 -8
  11. package/es/molecule/discipline-header/index.js.map +1 -1
  12. package/es/molecule/discipline-header/style.css +1 -1
  13. package/es/molecule/hero/index.d.ts +26 -30
  14. package/es/molecule/hero/index.d.ts.map +1 -1
  15. package/es/molecule/hero/index.js +13 -14
  16. package/es/molecule/hero/index.js.map +1 -1
  17. package/es/molecule/hero/style.css +0 -42
  18. package/es/molecule/quick-access-card/index.d.ts +0 -1
  19. package/es/molecule/quick-access-card/index.d.ts.map +1 -1
  20. package/es/molecule/quick-access-card/index.js +21 -77
  21. package/es/molecule/quick-access-card/index.js.map +1 -1
  22. package/es/molecule/quick-access-card/style.css +17 -28
  23. package/es/molecule/quick-access-cards-group/index.d.ts +0 -1
  24. package/es/organism/brand-dashboard/index.d.ts +0 -1
  25. package/es/template/back-office/brand-update/index.d.ts +0 -1
  26. package/es/template/external-course/index.d.ts +69 -21
  27. package/es/template/external-course/index.d.ts.map +1 -1
  28. package/es/template/external-course/index.js +73 -56
  29. package/es/template/external-course/index.js.map +1 -1
  30. package/es/template/external-course/style.css +1 -1
  31. package/es/util/button-icons.d.ts +0 -1
  32. package/es/util/button-icons.d.ts.map +1 -1
  33. package/es/util/button-icons.js +2 -3
  34. package/es/util/button-icons.js.map +1 -1
  35. package/es/variables/breakpoints.css +1 -1
  36. package/lib/atom/button/index.d.ts.map +1 -1
  37. package/lib/atom/button/index.js +18 -13
  38. package/lib/atom/button/index.js.map +1 -1
  39. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  40. package/lib/molecule/cm-popin/index.js +4 -3
  41. package/lib/molecule/cm-popin/index.js.map +1 -1
  42. package/lib/molecule/cm-popin/style.css +61 -40
  43. package/lib/molecule/discipline-header/index.d.ts +1 -1
  44. package/lib/molecule/discipline-header/index.d.ts.map +1 -1
  45. package/lib/molecule/discipline-header/index.js +8 -8
  46. package/lib/molecule/discipline-header/index.js.map +1 -1
  47. package/lib/molecule/discipline-header/style.css +1 -1
  48. package/lib/molecule/hero/index.d.ts +26 -30
  49. package/lib/molecule/hero/index.d.ts.map +1 -1
  50. package/lib/molecule/hero/index.js +14 -15
  51. package/lib/molecule/hero/index.js.map +1 -1
  52. package/lib/molecule/hero/style.css +0 -42
  53. package/lib/molecule/quick-access-card/index.d.ts +0 -1
  54. package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
  55. package/lib/molecule/quick-access-card/index.js +20 -76
  56. package/lib/molecule/quick-access-card/index.js.map +1 -1
  57. package/lib/molecule/quick-access-card/style.css +17 -28
  58. package/lib/molecule/quick-access-cards-group/index.d.ts +0 -1
  59. package/lib/organism/brand-dashboard/index.d.ts +0 -1
  60. package/lib/template/back-office/brand-update/index.d.ts +0 -1
  61. package/lib/template/external-course/index.d.ts +69 -21
  62. package/lib/template/external-course/index.d.ts.map +1 -1
  63. package/lib/template/external-course/index.js +76 -54
  64. package/lib/template/external-course/index.js.map +1 -1
  65. package/lib/template/external-course/style.css +1 -1
  66. package/lib/util/button-icons.d.ts +0 -1
  67. package/lib/util/button-icons.d.ts.map +1 -1
  68. package/lib/util/button-icons.js +1 -2
  69. package/lib/util/button-icons.js.map +1 -1
  70. package/lib/variables/breakpoints.css +1 -1
  71. package/package.json +3 -3
  72. package/es/molecule/expandable-item/index.d.ts +0 -19
  73. package/es/molecule/expandable-item/index.d.ts.map +0 -1
  74. package/es/molecule/expandable-item/index.js +0 -44
  75. package/es/molecule/expandable-item/index.js.map +0 -1
  76. package/es/molecule/expandable-item/style.css +0 -135
  77. package/es/molecule/expandable-item/types.d.ts +0 -20
  78. package/es/molecule/expandable-item/types.d.ts.map +0 -1
  79. package/es/molecule/expandable-item/types.js +0 -11
  80. package/es/molecule/expandable-item/types.js.map +0 -1
  81. package/es/molecule/expandable-list/index.d.ts +0 -18
  82. package/es/molecule/expandable-list/index.d.ts.map +0 -1
  83. package/es/molecule/expandable-list/index.js +0 -22
  84. package/es/molecule/expandable-list/index.js.map +0 -1
  85. package/es/molecule/expandable-list/style.css +0 -20
  86. package/es/molecule/expandable-list/types.d.ts +0 -17
  87. package/es/molecule/expandable-list/types.d.ts.map +0 -1
  88. package/es/molecule/expandable-list/types.js +0 -6
  89. package/es/molecule/expandable-list/types.js.map +0 -1
  90. package/es/molecule/hero/types.d.ts +0 -22
  91. package/es/molecule/hero/types.d.ts.map +0 -1
  92. package/es/molecule/hero/types.js +0 -14
  93. package/es/molecule/hero/types.js.map +0 -1
  94. package/es/molecule/menu-links/index.d.ts +0 -22
  95. package/es/molecule/menu-links/index.d.ts.map +0 -1
  96. package/es/molecule/menu-links/index.js +0 -70
  97. package/es/molecule/menu-links/index.js.map +0 -1
  98. package/es/molecule/menu-links/style.css +0 -161
  99. package/es/molecule/menu-links/types.d.ts +0 -35
  100. package/es/molecule/menu-links/types.d.ts.map +0 -1
  101. package/es/molecule/menu-links/types.js +0 -17
  102. package/es/molecule/menu-links/types.js.map +0 -1
  103. package/es/molecule/privacy-policy-contact/index.d.ts +0 -14
  104. package/es/molecule/privacy-policy-contact/index.d.ts.map +0 -1
  105. package/es/molecule/privacy-policy-contact/index.js +0 -28
  106. package/es/molecule/privacy-policy-contact/index.js.map +0 -1
  107. package/es/molecule/privacy-policy-contact/style.css +0 -38
  108. package/es/molecule/privacy-policy-contact/types.d.ts +0 -10
  109. package/es/molecule/privacy-policy-contact/types.d.ts.map +0 -1
  110. package/es/molecule/privacy-policy-contact/types.js +0 -6
  111. package/es/molecule/privacy-policy-contact/types.js.map +0 -1
  112. package/es/molecule/privacy-policy-download/index.d.ts +0 -38
  113. package/es/molecule/privacy-policy-download/index.d.ts.map +0 -1
  114. package/es/molecule/privacy-policy-download/index.js +0 -27
  115. package/es/molecule/privacy-policy-download/index.js.map +0 -1
  116. package/es/molecule/privacy-policy-download/style.css +0 -65
  117. package/es/molecule/privacy-policy-download/types.d.ts +0 -50
  118. package/es/molecule/privacy-policy-download/types.d.ts.map +0 -1
  119. package/es/molecule/privacy-policy-download/types.js +0 -8
  120. package/es/molecule/privacy-policy-download/types.js.map +0 -1
  121. package/es/template/common/faq-article-page/index.d.ts +0 -27
  122. package/es/template/common/faq-article-page/index.d.ts.map +0 -1
  123. package/es/template/common/faq-article-page/index.js +0 -50
  124. package/es/template/common/faq-article-page/index.js.map +0 -1
  125. package/es/template/common/faq-article-page/style.css +0 -110
  126. package/es/template/common/faq-article-page/types.d.ts +0 -40
  127. package/es/template/common/faq-article-page/types.d.ts.map +0 -1
  128. package/es/template/common/faq-article-page/types.js +0 -20
  129. package/es/template/common/faq-article-page/types.js.map +0 -1
  130. package/es/template/common/faq-cards-page/index.d.ts +0 -34
  131. package/es/template/common/faq-cards-page/index.d.ts.map +0 -1
  132. package/es/template/common/faq-cards-page/index.js +0 -45
  133. package/es/template/common/faq-cards-page/index.js.map +0 -1
  134. package/es/template/common/faq-cards-page/style.css +0 -95
  135. package/es/template/common/faq-cards-page/types.d.ts +0 -44
  136. package/es/template/common/faq-cards-page/types.d.ts.map +0 -1
  137. package/es/template/common/faq-cards-page/types.js +0 -13
  138. package/es/template/common/faq-cards-page/types.js.map +0 -1
  139. package/es/template/common/faq-page/index.d.ts +0 -80
  140. package/es/template/common/faq-page/index.d.ts.map +0 -1
  141. package/es/template/common/faq-page/index.js +0 -44
  142. package/es/template/common/faq-page/index.js.map +0 -1
  143. package/es/template/common/faq-page/style.css +0 -104
  144. package/es/template/common/faq-page/types.d.ts +0 -86
  145. package/es/template/common/faq-page/types.d.ts.map +0 -1
  146. package/es/template/common/faq-page/types.js +0 -13
  147. package/es/template/common/faq-page/types.js.map +0 -1
  148. package/es/template/common/privacy-policy-page/index.d.ts +0 -80
  149. package/es/template/common/privacy-policy-page/index.d.ts.map +0 -1
  150. package/es/template/common/privacy-policy-page/index.js +0 -50
  151. package/es/template/common/privacy-policy-page/index.js.map +0 -1
  152. package/es/template/common/privacy-policy-page/style.css +0 -123
  153. package/es/template/common/privacy-policy-page/types.d.ts +0 -86
  154. package/es/template/common/privacy-policy-page/types.d.ts.map +0 -1
  155. package/es/template/common/privacy-policy-page/types.js +0 -13
  156. package/es/template/common/privacy-policy-page/types.js.map +0 -1
  157. package/lib/molecule/expandable-item/index.d.ts +0 -19
  158. package/lib/molecule/expandable-item/index.d.ts.map +0 -1
  159. package/lib/molecule/expandable-item/index.js +0 -58
  160. package/lib/molecule/expandable-item/index.js.map +0 -1
  161. package/lib/molecule/expandable-item/style.css +0 -135
  162. package/lib/molecule/expandable-item/types.d.ts +0 -20
  163. package/lib/molecule/expandable-item/types.d.ts.map +0 -1
  164. package/lib/molecule/expandable-item/types.js +0 -20
  165. package/lib/molecule/expandable-item/types.js.map +0 -1
  166. package/lib/molecule/expandable-list/index.d.ts +0 -18
  167. package/lib/molecule/expandable-list/index.d.ts.map +0 -1
  168. package/lib/molecule/expandable-list/index.js +0 -33
  169. package/lib/molecule/expandable-list/index.js.map +0 -1
  170. package/lib/molecule/expandable-list/style.css +0 -20
  171. package/lib/molecule/expandable-list/types.d.ts +0 -17
  172. package/lib/molecule/expandable-list/types.d.ts.map +0 -1
  173. package/lib/molecule/expandable-list/types.js +0 -16
  174. package/lib/molecule/expandable-list/types.js.map +0 -1
  175. package/lib/molecule/hero/types.d.ts +0 -22
  176. package/lib/molecule/hero/types.d.ts.map +0 -1
  177. package/lib/molecule/hero/types.js +0 -25
  178. package/lib/molecule/hero/types.js.map +0 -1
  179. package/lib/molecule/menu-links/index.d.ts +0 -22
  180. package/lib/molecule/menu-links/index.d.ts.map +0 -1
  181. package/lib/molecule/menu-links/index.js +0 -88
  182. package/lib/molecule/menu-links/index.js.map +0 -1
  183. package/lib/molecule/menu-links/style.css +0 -161
  184. package/lib/molecule/menu-links/types.d.ts +0 -35
  185. package/lib/molecule/menu-links/types.d.ts.map +0 -1
  186. package/lib/molecule/menu-links/types.js +0 -26
  187. package/lib/molecule/menu-links/types.js.map +0 -1
  188. package/lib/molecule/privacy-policy-contact/index.d.ts +0 -14
  189. package/lib/molecule/privacy-policy-contact/index.d.ts.map +0 -1
  190. package/lib/molecule/privacy-policy-contact/index.js +0 -41
  191. package/lib/molecule/privacy-policy-contact/index.js.map +0 -1
  192. package/lib/molecule/privacy-policy-contact/style.css +0 -38
  193. package/lib/molecule/privacy-policy-contact/types.d.ts +0 -10
  194. package/lib/molecule/privacy-policy-contact/types.d.ts.map +0 -1
  195. package/lib/molecule/privacy-policy-contact/types.js +0 -15
  196. package/lib/molecule/privacy-policy-contact/types.js.map +0 -1
  197. package/lib/molecule/privacy-policy-download/index.d.ts +0 -38
  198. package/lib/molecule/privacy-policy-download/index.d.ts.map +0 -1
  199. package/lib/molecule/privacy-policy-download/index.js +0 -38
  200. package/lib/molecule/privacy-policy-download/index.js.map +0 -1
  201. package/lib/molecule/privacy-policy-download/style.css +0 -65
  202. package/lib/molecule/privacy-policy-download/types.d.ts +0 -50
  203. package/lib/molecule/privacy-policy-download/types.d.ts.map +0 -1
  204. package/lib/molecule/privacy-policy-download/types.js +0 -18
  205. package/lib/molecule/privacy-policy-download/types.js.map +0 -1
  206. package/lib/template/common/faq-article-page/index.d.ts +0 -27
  207. package/lib/template/common/faq-article-page/index.d.ts.map +0 -1
  208. package/lib/template/common/faq-article-page/index.js +0 -63
  209. package/lib/template/common/faq-article-page/index.js.map +0 -1
  210. package/lib/template/common/faq-article-page/style.css +0 -110
  211. package/lib/template/common/faq-article-page/types.d.ts +0 -40
  212. package/lib/template/common/faq-article-page/types.d.ts.map +0 -1
  213. package/lib/template/common/faq-article-page/types.js +0 -30
  214. package/lib/template/common/faq-article-page/types.js.map +0 -1
  215. package/lib/template/common/faq-cards-page/index.d.ts +0 -34
  216. package/lib/template/common/faq-cards-page/index.d.ts.map +0 -1
  217. package/lib/template/common/faq-cards-page/index.js +0 -58
  218. package/lib/template/common/faq-cards-page/index.js.map +0 -1
  219. package/lib/template/common/faq-cards-page/style.css +0 -95
  220. package/lib/template/common/faq-cards-page/types.d.ts +0 -44
  221. package/lib/template/common/faq-cards-page/types.d.ts.map +0 -1
  222. package/lib/template/common/faq-cards-page/types.js +0 -25
  223. package/lib/template/common/faq-cards-page/types.js.map +0 -1
  224. package/lib/template/common/faq-page/index.d.ts +0 -80
  225. package/lib/template/common/faq-page/index.d.ts.map +0 -1
  226. package/lib/template/common/faq-page/index.js +0 -58
  227. package/lib/template/common/faq-page/index.js.map +0 -1
  228. package/lib/template/common/faq-page/style.css +0 -104
  229. package/lib/template/common/faq-page/types.d.ts +0 -86
  230. package/lib/template/common/faq-page/types.d.ts.map +0 -1
  231. package/lib/template/common/faq-page/types.js +0 -24
  232. package/lib/template/common/faq-page/types.js.map +0 -1
  233. package/lib/template/common/privacy-policy-page/index.d.ts +0 -80
  234. package/lib/template/common/privacy-policy-page/index.d.ts.map +0 -1
  235. package/lib/template/common/privacy-policy-page/index.js +0 -65
  236. package/lib/template/common/privacy-policy-page/index.js.map +0 -1
  237. package/lib/template/common/privacy-policy-page/style.css +0 -123
  238. package/lib/template/common/privacy-policy-page/types.d.ts +0 -86
  239. package/lib/template/common/privacy-policy-page/types.d.ts.map +0 -1
  240. package/lib/template/common/privacy-policy-page/types.js +0 -24
  241. package/lib/template/common/privacy-policy-page/types.js.map +0 -1
@@ -44,21 +44,6 @@ const getIcon = feature => {
44
44
  case 'analytics':
45
45
  return _novaIcons.NovaSolidBusinessBusinessGraphLine2;
46
46
 
47
- case 'binoculaire':
48
- return _novaIcons.NovaLineObjectsBinoculars1;
49
-
50
- case 'book':
51
- return _novaIcons.NovaLineContentEditionContentBook;
52
-
53
- case 'network':
54
- return _novaIcons.NovaLineNetworkNetworkAlert;
55
-
56
- case 'chat-bubble-question':
57
- return _novaIcons.NovaLineMessagesChatChatBubbleCircleQuestionMark;
58
-
59
- case 'mobile-phone':
60
- return _novaIcons.NovaLinePhoneMobilePhone;
61
-
62
47
  default:
63
48
  return _novaIcons.NovaSolidContentContentBookAdd;
64
49
  }
@@ -69,20 +54,20 @@ const getBackgroudRadialColors = feature => {
69
54
  case 'manage_users':
70
55
  case 'upload_users':
71
56
  return {
72
- iconBackgroundColor: '#2EC1D6',
57
+ iconColor: '#2EC1D6',
73
58
  degrees: '187'
74
59
  };
75
60
 
76
61
  case 'look_and_feel':
77
62
  case 'dashboard':
78
63
  return {
79
- iconBackgroundColor: '#18BB98',
64
+ iconColor: '#18BB98',
80
65
  degrees: '167'
81
66
  };
82
67
 
83
68
  case 'cockpit':
84
69
  return {
85
- iconBackgroundColor: '#FF7043',
70
+ iconColor: '#FF7043',
86
71
  degrees: '14'
87
72
  };
88
73
 
@@ -90,46 +75,13 @@ const getBackgroudRadialColors = feature => {
90
75
  case 'massive_battle':
91
76
  case 'cms':
92
77
  return {
93
- iconBackgroundColor: '#7340FF',
78
+ iconColor: '#7340FF',
94
79
  degrees: '256'
95
80
  };
96
81
 
97
82
  case 'analytics':
98
83
  return {
99
- iconBackgroundColor: '#FF4040',
100
- degrees: '0'
101
- };
102
-
103
- case 'binoculaire':
104
- return {
105
- iconBackgroundColor: '#FFEFEB',
106
- iconColor: '#FF541F',
107
- degrees: '0'
108
- };
109
-
110
- case 'book':
111
- return {
112
- iconBackgroundColor: '#F1F6FE',
113
- degrees: '0'
114
- };
115
-
116
- case 'network':
117
- return {
118
- iconBackgroundColor: '#FFE5E6',
119
- iconColor: '#FF0A0A',
120
- degrees: '0'
121
- };
122
-
123
- case 'chat-bubble-question':
124
- return {
125
- iconBackgroundColor: '#E8FCF8',
126
- iconColor: '#16AC8C',
127
- degrees: '0'
128
- };
129
-
130
- case 'mobile-phone':
131
- return {
132
- iconBackgroundColor: '#F4F0FF',
84
+ iconColor: '#FF4040',
133
85
  degrees: '0'
134
86
  };
135
87
 
@@ -144,13 +96,11 @@ const QuickAccessCard = (props, context) => {
144
96
  description,
145
97
  feature,
146
98
  href,
147
- openInNewTab = false,
148
- isMoocCard = false
99
+ openInNewTab = false
149
100
  } = props;
150
101
  const {
151
- iconBackgroundColor,
152
- degrees,
153
- iconColor
102
+ iconColor,
103
+ degrees
154
104
  } = getBackgroudRadialColors(feature);
155
105
  const Icon = getIcon(feature);
156
106
  const newTabOnClick = openInNewTab ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyOpenInNewTab, {
@@ -165,7 +115,7 @@ const QuickAccessCard = (props, context) => {
165
115
  target: openInNewTab ? '_blank' : '_self',
166
116
  className: _style.default.link
167
117
  }, /*#__PURE__*/_react.default.createElement("div", {
168
- style: !isMoocCard ? {
118
+ style: {
169
119
  background: `radial-gradient(62.12% 56.45% at 0% 77.29%,
170
120
  hsl(${degrees}deg 68% 40% / 20%) 0%,
171
121
  hsl(${degrees}deg 68% 40% / 0%) 100%),
@@ -176,37 +126,32 @@ const QuickAccessCard = (props, context) => {
176
126
  hsl(${degrees}deg 87% 91%) 0%,
177
127
  hsl(${degrees}deg 87% 91% / 0%) 100%),
178
128
  #FAFAFA`
179
- } : null,
129
+ },
180
130
  className: _style.default.content
181
131
  }, /*#__PURE__*/_react.default.createElement("div", {
182
132
  className: _style.default.iconFeatureWrapper,
183
133
  style: {
184
- backgroundColor: iconBackgroundColor
134
+ backgroundColor: iconColor
185
135
  }
186
136
  }, /*#__PURE__*/_react.default.createElement(Icon, {
187
- className: _style.default.iconFeature,
188
- style: {
189
- color: iconColor
190
- }
137
+ className: _style.default.iconFeature
191
138
  })), /*#__PURE__*/_react.default.createElement("div", {
192
139
  className: _style.default.title
193
140
  }, title, newTabOnClick), /*#__PURE__*/_react.default.createElement("div", {
194
141
  className: _style.default.description
195
142
  }, description), /*#__PURE__*/_react.default.createElement("div", {
196
- className: _style.default.cta
197
- }, /*#__PURE__*/_react.default.createElement("div", {
198
- className: !isMoocCard ? _style.default.iconGotoWrapper : null,
199
- style: !isMoocCard ? {
200
- backgroundColor: iconBackgroundColor
201
- } : null
143
+ className: _style.default.iconGotoWrapper,
144
+ style: {
145
+ backgroundColor: iconColor
146
+ }
202
147
  }, /*#__PURE__*/_react.default.createElement("div", {
203
- className: isMoocCard ? _style.default.hoverMooc : _style.default.hover,
148
+ className: _style.default.hover,
204
149
  style: {
205
- color: isMoocCard ? '#FFFFFF' : iconBackgroundColor
150
+ color: iconColor
206
151
  }
207
152
  }, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationArrowRight, {
208
153
  className: _style.default.iconGoto
209
- })))))));
154
+ }))))));
210
155
  };
211
156
 
212
157
  QuickAccessCard.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -214,8 +159,7 @@ QuickAccessCard.propTypes = process.env.NODE_ENV !== "production" ? {
214
159
  description: _propTypes.default.string,
215
160
  href: _propTypes.default.string,
216
161
  openInNewTab: _propTypes.default.bool,
217
- isMoocCard: _propTypes.default.bool,
218
- feature: _propTypes.default.oneOf(['analytics', 'cms', 'cockpit', 'massive_battle', 'manage_email', 'dashboard', 'look_and_feel', 'manage_users', 'upload_users', 'binoculaire', 'book', 'network', 'chat-bubble-question', 'mobile-phone'])
162
+ feature: _propTypes.default.oneOf(['analytics', 'cms', 'cockpit', 'massive_battle', 'manage_email', 'dashboard', 'look_and_feel', 'manage_users', 'upload_users'])
219
163
  } : {};
220
164
  var _default = QuickAccessCard;
221
165
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["getIcon","feature","ManageUserIcon","UploadUserIcon","ManageEmailIcon","MassiveBattleIcon","CmsIcon","LookAndFeelIcon","DashboardIcon","CockpitIcon","AnalyticsIcon","Binoculaire","ContentBook","NetworkAlert","ChatBubbleCircleQuestionMark","MobilePhone","getBackgroudRadialColors","iconBackgroundColor","degrees","iconColor","QuickAccessCard","props","context","title","description","href","openInNewTab","isMoocCard","Icon","newTabOnClick","style","newTabIcon","quickAccess","link","background","content","iconFeatureWrapper","backgroundColor","iconFeature","color","cta","iconGotoWrapper","hoverMooc","hover","iconGoto","propTypes","PropTypes","string","bool","oneOf"],"sources":["../../../src/molecule/quick-access-card/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaSolidContentContentBookAdd as CockpitIcon,\n NovaSolidUsersActionsUser as ManageUserIcon,\n NovaSolidFilesBasicFileUpload2 as UploadUserIcon,\n NovaSolidEmailAtSign as ManageEmailIcon,\n NovaSolidDesignPaintBrush2 as LookAndFeelIcon,\n NovaSolidContentContentViewList as DashboardIcon,\n NovaSolidContentEditionFlash as MassiveBattleIcon,\n NovaSolidApplicationsWindowApplication5 as CmsIcon,\n NovaSolidBusinessBusinessGraphLine2 as AnalyticsIcon,\n NovaCompositionNavigationArrowRight as ActionIcon,\n NovaCompositionCoorpacademyOpenInNewTab as NewTabIcon,\n NovaLinePhoneMobilePhone as MobilePhone,\n NovaLineMessagesChatChatBubbleCircleQuestionMark as ChatBubbleCircleQuestionMark,\n NovaLineNetworkNetworkAlert as NetworkAlert,\n NovaLineObjectsBinoculars1 as Binoculaire,\n NovaLineContentEditionContentBook as ContentBook\n} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport style from './style.css';\n\nconst getIcon = feature => {\n switch (feature) {\n case 'manage_users':\n return ManageUserIcon;\n case 'upload_users':\n return UploadUserIcon;\n case 'manage_email':\n return ManageEmailIcon;\n case 'massive_battle':\n return MassiveBattleIcon;\n case 'cms':\n return CmsIcon;\n case 'look_and_feel':\n return LookAndFeelIcon;\n case 'dashboard':\n return DashboardIcon;\n case 'cockpit':\n return CockpitIcon;\n case 'analytics':\n return AnalyticsIcon;\n case 'binoculaire':\n return Binoculaire;\n case 'book':\n return ContentBook;\n case 'network':\n return NetworkAlert;\n case 'chat-bubble-question':\n return ChatBubbleCircleQuestionMark;\n case 'mobile-phone':\n return MobilePhone;\n default:\n return CockpitIcon;\n }\n};\n\nconst getBackgroudRadialColors = feature => {\n switch (feature) {\n case 'manage_users':\n case 'upload_users':\n return {\n iconBackgroundColor: '#2EC1D6',\n degrees: '187'\n };\n case 'look_and_feel':\n case 'dashboard':\n return {\n iconBackgroundColor: '#18BB98',\n degrees: '167'\n };\n case 'cockpit':\n return {\n iconBackgroundColor: '#FF7043',\n degrees: '14'\n };\n case 'manage_email':\n case 'massive_battle':\n case 'cms':\n return {\n iconBackgroundColor: '#7340FF',\n degrees: '256'\n };\n case 'analytics':\n return {\n iconBackgroundColor: '#FF4040',\n degrees: '0'\n };\n case 'binoculaire':\n return {\n iconBackgroundColor: '#FFEFEB',\n iconColor: '#FF541F',\n degrees: '0'\n };\n case 'book':\n return {\n iconBackgroundColor: '#F1F6FE',\n degrees: '0'\n };\n case 'network':\n return {\n iconBackgroundColor: '#FFE5E6',\n iconColor: '#FF0A0A',\n degrees: '0'\n };\n case 'chat-bubble-question':\n return {\n iconBackgroundColor: '#E8FCF8',\n iconColor: '#16AC8C',\n degrees: '0'\n };\n case 'mobile-phone':\n return {\n iconBackgroundColor: '#F4F0FF',\n degrees: '0'\n };\n default:\n return null;\n }\n};\n\nconst QuickAccessCard = (props, context) => {\n const {title, description, feature, href, openInNewTab = false, isMoocCard = false} = props;\n const {iconBackgroundColor, degrees, iconColor} = getBackgroudRadialColors(feature);\n const Icon = getIcon(feature);\n const newTabOnClick = openInNewTab ? <NewTabIcon className={style.newTabIcon} /> : null;\n\n return (\n <div data-name=\"quick-access-card\" data-type={feature} className={style.quickAccess}>\n <Link href={href} target={openInNewTab ? '_blank' : '_self'} className={style.link}>\n <div\n style={\n !isMoocCard\n ? {\n background: `radial-gradient(62.12% 56.45% at 0% 77.29%, \n hsl(${degrees}deg 68% 40% / 20%) 0%, \n hsl(${degrees}deg 68% 40% / 0%) 100%), \n radial-gradient(113.85% 103.46% at 93.27% 7.88%,\n hsl(${degrees}deg 67% 51% / 15%) 0%, \n hsl(${degrees}deg 67% 51% / 0%) 100%),\n radial-gradient(49.66% 49.63% at 78.65% 86.26%, \n hsl(${degrees}deg 87% 91%) 0%, \n hsl(${degrees}deg 87% 91% / 0%) 100%), \n #FAFAFA`\n }\n : null\n }\n className={style.content}\n >\n <div\n className={style.iconFeatureWrapper}\n style={{\n backgroundColor: iconBackgroundColor\n }}\n >\n <Icon className={style.iconFeature} style={{color: iconColor}} />\n </div>\n <div className={style.title}>\n {title}\n {newTabOnClick}\n </div>\n <div className={style.description}>{description}</div>\n <div className={style.cta}>\n <div\n className={!isMoocCard ? style.iconGotoWrapper : null}\n style={\n !isMoocCard\n ? {\n backgroundColor: iconBackgroundColor\n }\n : null\n }\n >\n <div\n className={isMoocCard ? style.hoverMooc : style.hover}\n style={{\n color: isMoocCard ? '#FFFFFF' : iconBackgroundColor\n }}\n >\n <ActionIcon className={style.iconGoto} />\n </div>\n </div>\n </div>\n </div>\n </Link>\n </div>\n );\n};\n\nQuickAccessCard.propTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n href: PropTypes.string,\n openInNewTab: PropTypes.bool,\n isMoocCard: PropTypes.bool,\n feature: PropTypes.oneOf([\n 'analytics',\n 'cms',\n 'cockpit',\n 'massive_battle',\n 'manage_email',\n 'dashboard',\n 'look_and_feel',\n 'manage_users',\n 'upload_users',\n 'binoculaire',\n 'book',\n 'network',\n 'chat-bubble-question',\n 'mobile-phone'\n ])\n};\n\nexport default QuickAccessCard;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAkBA;;AACA;;;;AAEA,MAAMA,OAAO,GAAGC,OAAO,IAAI;EACzB,QAAQA,OAAR;IACE,KAAK,cAAL;MACE,OAAOC,oCAAP;;IACF,KAAK,cAAL;MACE,OAAOC,yCAAP;;IACF,KAAK,cAAL;MACE,OAAOC,+BAAP;;IACF,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AA,CAAUG,KAAV,CAAgB,CACvB,WADuB,EAEvB,KAFuB,EAGvB,SAHuB,EAIvB,gBAJuB,EAKvB,cALuB,EAMvB,WANuB,EAOvB,eAPuB,EAQvB,cARuB,EASvB,cATuB,EAUvB,aAVuB,EAWvB,MAXuB,EAYvB,SAZuB,EAavB,sBAbuB,EAcvB,cAduB,CAAhB;AANiB,CAA5B;eAwBe7B,e"}
1
+ {"version":3,"file":"index.js","names":["getIcon","feature","ManageUserIcon","UploadUserIcon","ManageEmailIcon","MassiveBattleIcon","CmsIcon","LookAndFeelIcon","DashboardIcon","CockpitIcon","AnalyticsIcon","getBackgroudRadialColors","iconColor","degrees","QuickAccessCard","props","context","title","description","href","openInNewTab","Icon","newTabOnClick","style","newTabIcon","quickAccess","link","background","content","iconFeatureWrapper","backgroundColor","iconFeature","iconGotoWrapper","hover","color","iconGoto","propTypes","PropTypes","string","bool","oneOf"],"sources":["../../../src/molecule/quick-access-card/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaSolidContentContentBookAdd as CockpitIcon,\n NovaSolidUsersActionsUser as ManageUserIcon,\n NovaSolidFilesBasicFileUpload2 as UploadUserIcon,\n NovaSolidEmailAtSign as ManageEmailIcon,\n NovaSolidDesignPaintBrush2 as LookAndFeelIcon,\n NovaSolidContentContentViewList as DashboardIcon,\n NovaSolidContentEditionFlash as MassiveBattleIcon,\n NovaSolidApplicationsWindowApplication5 as CmsIcon,\n NovaSolidBusinessBusinessGraphLine2 as AnalyticsIcon,\n NovaCompositionNavigationArrowRight as ActionIcon,\n NovaCompositionCoorpacademyOpenInNewTab as NewTabIcon\n} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport style from './style.css';\n\nconst getIcon = feature => {\n switch (feature) {\n case 'manage_users':\n return ManageUserIcon;\n case 'upload_users':\n return UploadUserIcon;\n case 'manage_email':\n return ManageEmailIcon;\n case 'massive_battle':\n return MassiveBattleIcon;\n case 'cms':\n return CmsIcon;\n case 'look_and_feel':\n return LookAndFeelIcon;\n case 'dashboard':\n return DashboardIcon;\n case 'cockpit':\n return CockpitIcon;\n case 'analytics':\n return AnalyticsIcon;\n default:\n return CockpitIcon;\n }\n};\n\nconst getBackgroudRadialColors = feature => {\n switch (feature) {\n case 'manage_users':\n case 'upload_users':\n return {\n iconColor: '#2EC1D6',\n degrees: '187'\n };\n case 'look_and_feel':\n case 'dashboard':\n return {\n iconColor: '#18BB98',\n degrees: '167'\n };\n case 'cockpit':\n return {\n iconColor: '#FF7043',\n degrees: '14'\n };\n case 'manage_email':\n case 'massive_battle':\n case 'cms':\n return {\n iconColor: '#7340FF',\n degrees: '256'\n };\n case 'analytics':\n return {\n iconColor: '#FF4040',\n degrees: '0'\n };\n default:\n return null;\n }\n};\n\nconst QuickAccessCard = (props, context) => {\n const {title, description, feature, href, openInNewTab = false} = props;\n const {iconColor, degrees} = getBackgroudRadialColors(feature);\n const Icon = getIcon(feature);\n const newTabOnClick = openInNewTab ? <NewTabIcon className={style.newTabIcon} /> : null;\n\n return (\n <div data-name=\"quick-access-card\" data-type={feature} className={style.quickAccess}>\n <Link href={href} target={openInNewTab ? '_blank' : '_self'} className={style.link}>\n <div\n style={{\n background: `radial-gradient(62.12% 56.45% at 0% 77.29%, \n hsl(${degrees}deg 68% 40% / 20%) 0%, \n hsl(${degrees}deg 68% 40% / 0%) 100%), \n radial-gradient(113.85% 103.46% at 93.27% 7.88%,\n hsl(${degrees}deg 67% 51% / 15%) 0%, \n hsl(${degrees}deg 67% 51% / 0%) 100%),\n radial-gradient(49.66% 49.63% at 78.65% 86.26%, \n hsl(${degrees}deg 87% 91%) 0%, \n hsl(${degrees}deg 87% 91% / 0%) 100%), \n #FAFAFA`\n }}\n className={style.content}\n >\n <div\n className={style.iconFeatureWrapper}\n style={{\n backgroundColor: iconColor\n }}\n >\n <Icon className={style.iconFeature} />\n </div>\n <div className={style.title}>\n {title}\n {newTabOnClick}\n </div>\n <div className={style.description}>{description}</div>\n <div\n className={style.iconGotoWrapper}\n style={{\n backgroundColor: iconColor\n }}\n >\n <div\n className={style.hover}\n style={{\n color: iconColor\n }}\n >\n <ActionIcon className={style.iconGoto} />\n </div>\n </div>\n </div>\n </Link>\n </div>\n );\n};\n\nQuickAccessCard.propTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n href: PropTypes.string,\n openInNewTab: PropTypes.bool,\n feature: PropTypes.oneOf([\n 'analytics',\n 'cms',\n 'cockpit',\n 'massive_battle',\n 'manage_email',\n 'dashboard',\n 'look_and_feel',\n 'manage_users',\n 'upload_users'\n ])\n};\n\nexport default QuickAccessCard;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAaA;;AACA;;;;AAEA,MAAMA,OAAO,GAAGC,OAAO,IAAI;EACzB,QAAQA,OAAR;IACE,KAAK,cAAL;MACE,OAAOC,oCAAP;;IACF,KAAK,cAAL;MACE,OAAOC,yCAAP;;IACF,KAAK,cAAL;MACE,OAAOC,+BAAP;;IACF,KAAK,gBAAL;MACE,OAAOC,uCAAP;;IACF,KAAK,KAAL;MACE,OAAOC,kDAAP;;IACF,KAAK,eAAL;MACE,OAAOC,qCAAP;;IACF,KAAK,WAAL;MACE,OAAOC,0CAAP;;IACF,KAAK,SAAL;MACE,OAAOC,yCAAP;;IACF,KAAK,WAAL;MACE,OAAOC,8CAAP;;IACF;MACE,OAAOD,yCAAP;EApBJ;AAsBD,CAvBD;;AAyBA,MAAME,wBAAwB,GAAGV,OAAO,IAAI;EAC1C,QAAQA,OAAR;IACE,KAAK,cAAL;IACA,KAAK,cAAL;MACE,OAAO;QACLW,SAAS,EAAE,SADN;QAELC,OAAO,EAAE;MAFJ,CAAP;;IAIF,KAAK,eAAL;IACA,KAAK,WAAL;MACE,OAAO;QACLD,SAAS,EAAE,SADN;QAELC,OAAO,EAAE;MAFJ,CAAP;;IAIF,KAAK,SAAL;MACE,OAAO;QACLD,SAAS,EAAE,SADN;QAELC,OAAO,EAAE;MAFJ,CAAP;;IAIF,KAA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BAME,6BAAC,IAAD;IAAM,SAAS,EAAEW,cAAA,CAAMQ;EAAvB,EANF,CAfF,eAuBE;IAAK,SAAS,EAAER,cAAA,CAAMN;EAAtB,GACGA,KADH,EAEGK,aAFH,CAvBF,eA2BE;IAAK,SAAS,EAAEC,cAAA,CAAML;EAAtB,GAAoCA,WAApC,CA3BF,eA4BE;IACE,SAAS,EAAEK,cAAA,CAAMS,eADnB;IAEE,KAAK,EAAE;MACLF,eAAe,EAAElB;IADZ;EAFT,gBAME;IACE,SAAS,EAAEW,cAAA,CAAMU,KADnB;IAEE,KAAK,EAAE;MACLC,KAAK,EAAEtB;IADF;EAFT,gBAME,6BAAC,8CAAD;IAAY,SAAS,EAAEW,cAAA,CAAMY;EAA7B,EANF,CANF,CA5BF,CADF,CADF,CADF;AAkDD,CAxDD;;AA0DArB,eAAe,CAACsB,SAAhB,2CAA4B;EAC1BnB,KAAK,EAAEoB,kBAAA,CAAUC,MADS;EAE1BpB,WAAW,EAAEmB,kBAAA,CAAUC,MAFG;EAG1BnB,IAAI,EAAEkB,kBAAA,CAAUC,MAHU;EAI1BlB,YAAY,EAAEiB,kBAAA,CAAUE,IAJE;EAK1BtC,OAAO,EAAEoC,kBAAA,CAAUG,KAAV,CAAgB,CACvB,WADuB,EAEvB,KAFuB,EAGvB,SAHuB,EAIvB,gBAJuB,EAKvB,cALuB,EAMvB,WANuB,EAOvB,eAPuB,EAQvB,cARuB,EASvB,cATuB,CAAhB;AALiB,CAA5B;eAkBe1B,e"}
@@ -1,13 +1,12 @@
1
1
  @value colors: "../../variables/colors.css";
2
2
  @value breakpoints: "../../variables/breakpoints.css";
3
3
  @value white from colors;
4
- @value cm_primary_blue from colors;
5
- @value cm_blue_600 from colors;
6
4
  @value cm_tablet from breakpoints;
7
5
 
8
6
  .quickAccess {
9
7
  height: 273px;
10
8
  cursor: pointer;
9
+ position: relative;
11
10
  }
12
11
 
13
12
  .link {
@@ -15,12 +14,9 @@
15
14
  }
16
15
 
17
16
  .content {
18
- height: 225px;
17
+ height: 100%;
19
18
  border-radius: 8px;
20
19
  transition: all 0.5s linear;
21
- padding: 24px;
22
- display: flex;
23
- flex-direction: column;
24
20
  }
25
21
 
26
22
  .content:hover {
@@ -33,7 +29,9 @@
33
29
  font-style: normal;
34
30
  font-size: 20px;
35
31
  line-height: 28px;
36
- margin-top: 16px;
32
+ top: 84px;
33
+ left: 24px;
34
+ position: absolute;
37
35
  }
38
36
 
39
37
  .description {
@@ -42,47 +40,42 @@
42
40
  font-style: normal;
43
41
  font-size: 16px;
44
42
  line-height: 22px;
45
- margin: 8px 0px 16px 0px;
43
+ position: absolute;
44
+ top: 120px;
45
+ padding-left: 24px;
46
+ padding-right: 24px;
46
47
  }
47
48
 
48
49
  .iconWrapper {
49
50
  width: 44px;
50
51
  height: 44px;
52
+ position: absolute;
51
53
  border-radius: 8px;
52
54
  }
53
55
 
54
56
  .iconFeatureWrapper {
55
57
  composes: iconWrapper;
56
- justify-content: center;
57
- display: flex;
58
- align-items: center;
58
+ top: 24px;
59
+ left: 24px;
59
60
  }
60
61
 
61
62
  .iconFeature {
62
63
  color: white;
63
64
  width: 20px;
64
65
  height: 20px;
65
- }
66
-
67
- .cta {
68
- width: 100%;
69
- display: flex;
70
- align-items: end;
71
- justify-content: end;
72
- flex: 1;
66
+ position: relative;
67
+ top: 12px;
68
+ left: 12px;
73
69
  }
74
70
 
75
71
  .iconGotoWrapper {
76
72
  composes: iconWrapper;
73
+ bottom: 16px;
74
+ right: 16px;
77
75
  line-height: 0;
78
76
  background-color: white;
79
77
  }
80
78
 
81
- .hoverMooc {
82
- composes: iconWrapper;
83
- background-color: cm_primary_blue;
84
- }
85
-
86
79
  .hover {
87
80
  composes: iconWrapper;
88
81
  }
@@ -96,10 +89,6 @@
96
89
  background: white;
97
90
  }
98
91
 
99
- .hoverMooc:hover{
100
- background-color: cm_blue_600;
101
- }
102
-
103
92
  .iconGoto {
104
93
  width: 14px;
105
94
  height: 14px;
@@ -7,7 +7,6 @@ declare namespace QuickAccessCardGroup {
7
7
  description: PropTypes.Requireable<string>;
8
8
  href: PropTypes.Requireable<string>;
9
9
  openInNewTab: PropTypes.Requireable<boolean>;
10
- isMoocCard: PropTypes.Requireable<boolean>;
11
10
  feature: PropTypes.Requireable<string>;
12
11
  }> | null | undefined)[]>;
13
12
  const loading: PropTypes.Requireable<boolean>;
@@ -14,7 +14,6 @@ declare namespace Dashboard {
14
14
  description: PropTypes.Requireable<string>;
15
15
  href: PropTypes.Requireable<string>;
16
16
  openInNewTab: PropTypes.Requireable<boolean>;
17
- isMoocCard: PropTypes.Requireable<boolean>;
18
17
  feature: PropTypes.Requireable<string>;
19
18
  }> | null | undefined)[]>;
20
19
  loading: PropTypes.Requireable<boolean>;
@@ -741,7 +741,6 @@ declare namespace BrandUpdate {
741
741
  description: PropTypes.Requireable<string>;
742
742
  href: PropTypes.Requireable<string>;
743
743
  openInNewTab: PropTypes.Requireable<boolean>;
744
- isMoocCard: PropTypes.Requireable<boolean>;
745
744
  feature: PropTypes.Requireable<string>;
746
745
  }> | null | undefined)[]>;
747
746
  loading: PropTypes.Requireable<boolean>;
@@ -1,29 +1,82 @@
1
1
  export default ExternalCourse;
2
- declare class ExternalCourse extends React.Component<any, any, any> {
3
- static propTypes: {
4
- name: PropTypes.Requireable<string>;
5
- type: PropTypes.Requireable<string>;
6
- url: PropTypes.Validator<string>;
7
- quit: PropTypes.Requireable<PropTypes.InferProps<{
2
+ declare function ExternalCourse(props: any, context: any): JSX.Element;
3
+ declare namespace ExternalCourse {
4
+ namespace propTypes {
5
+ const name: PropTypes.Requireable<string>;
6
+ const type: PropTypes.Requireable<string>;
7
+ const url: PropTypes.Validator<string>;
8
+ const quit: PropTypes.Requireable<PropTypes.InferProps<{
8
9
  label: PropTypes.Validator<string>;
9
10
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
10
11
  }>>;
11
- complete: PropTypes.Requireable<PropTypes.InferProps<{
12
+ const complete: PropTypes.Requireable<PropTypes.InferProps<{
12
13
  label: PropTypes.Validator<string>;
13
14
  disabled: PropTypes.Requireable<boolean>;
14
15
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
15
16
  }>>;
16
- warning: PropTypes.Requireable<PropTypes.InferProps<{
17
+ const warning: PropTypes.Requireable<PropTypes.InferProps<{
17
18
  label: PropTypes.Validator<string>;
18
19
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
19
20
  }>>;
20
- loading: PropTypes.Requireable<boolean>;
21
- backgroundImageUrl: PropTypes.Requireable<string>;
22
- contentType: PropTypes.Requireable<string>;
23
- mode: PropTypes.Requireable<string>;
24
- };
25
- static contextTypes: {
26
- skin: PropTypes.Requireable<PropTypes.InferProps<{
21
+ const loading: PropTypes.Requireable<boolean>;
22
+ const backgroundImageUrl: PropTypes.Requireable<string>;
23
+ const contentType: PropTypes.Requireable<string>;
24
+ const mode: PropTypes.Requireable<string>;
25
+ const closePopin: PropTypes.Requireable<PropTypes.InferProps<{
26
+ content: PropTypes.Requireable<string>;
27
+ mode: PropTypes.Requireable<string>;
28
+ header: PropTypes.Requireable<string>;
29
+ firstButton: PropTypes.Requireable<PropTypes.InferProps<{
30
+ label: PropTypes.Requireable<string>;
31
+ handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
32
+ 'aria-label': PropTypes.Requireable<string>;
33
+ largeButton: PropTypes.Requireable<boolean>;
34
+ type: PropTypes.Requireable<string>;
35
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
36
+ }>>;
37
+ secondButton: PropTypes.Requireable<PropTypes.InferProps<{
38
+ label: PropTypes.Requireable<string>;
39
+ handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
40
+ type: PropTypes.Requireable<string>;
41
+ 'aria-label': PropTypes.Requireable<string>;
42
+ largeButton: PropTypes.Requireable<boolean>;
43
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
44
+ }>>;
45
+ thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
46
+ label: PropTypes.Requireable<string>;
47
+ handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
48
+ type: PropTypes.Requireable<string>;
49
+ 'aria-label': PropTypes.Requireable<string>;
50
+ largeButton: PropTypes.Requireable<boolean>;
51
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
52
+ }>>;
53
+ onClose: PropTypes.Requireable<(...args: any[]) => any>;
54
+ icon: PropTypes.Requireable<string>;
55
+ backgroundImageUrl: PropTypes.Requireable<string>;
56
+ descriptionText: PropTypes.Requireable<string>;
57
+ cookieTitle: PropTypes.Requireable<string>;
58
+ descriptionBtnTxt: PropTypes.Requireable<string>;
59
+ listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
60
+ title: PropTypes.Requireable<string>;
61
+ name: PropTypes.Requireable<string>;
62
+ id: PropTypes.Requireable<string>;
63
+ value: PropTypes.Requireable<boolean>;
64
+ disabled: PropTypes.Requireable<boolean>;
65
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
66
+ description: PropTypes.Requireable<string>;
67
+ 'aria-labelledby': PropTypes.Requireable<string>;
68
+ 'aria-label': PropTypes.Requireable<string>;
69
+ modified: PropTypes.Requireable<boolean>;
70
+ titlePosition: PropTypes.Requireable<string>;
71
+ theme: PropTypes.Requireable<string>;
72
+ details: PropTypes.Requireable<string>;
73
+ 'data-name': PropTypes.Requireable<string>;
74
+ requiredSelection: PropTypes.Requireable<boolean>;
75
+ }> | null | undefined)[]>;
76
+ }>>;
77
+ }
78
+ namespace contextTypes {
79
+ const skin: PropTypes.Requireable<PropTypes.InferProps<{
27
80
  common: PropTypes.Requireable<{
28
81
  [x: string]: any;
29
82
  }>;
@@ -44,12 +97,7 @@ declare class ExternalCourse extends React.Component<any, any, any> {
44
97
  [x: string]: any;
45
98
  }>;
46
99
  }>>;
47
- };
48
- constructor(props: any);
49
- constructor(props: any, context: any);
50
- handleOnClick: (field: any) => (e: any) => any;
51
- render(): JSX.Element;
100
+ }
52
101
  }
53
- import React from "react";
54
102
  import PropTypes from "prop-types";
55
103
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/external-course/index.js"],"names":[],"mappings":";AAmBA;IACE;;;;;;;;;;;;;;;;;;;;;MAqBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IA4Hqsd,wBAA8C;IAAA,sCAAyJ;IA1H94d,+CAKE;IAEF,sBA+GC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/external-course/index.js"],"names":[],"mappings":";AAoBA,uEAwIC"}