@coorpacademy/components 11.35.3-alpha.3 → 11.35.3-forcedeploy10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/es/atom/button-link/index.js +1 -1
  2. package/es/atom/button-link/index.js.map +1 -1
  3. package/es/atom/button-link/style.css +2 -2
  4. package/es/atom/icon/index.d.ts +35 -17
  5. package/es/atom/icon/index.d.ts.map +1 -1
  6. package/es/atom/icon/index.js +32 -15
  7. package/es/atom/icon/index.js.map +1 -1
  8. package/es/atom/radio-with-title/index.d.ts +13 -3
  9. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  10. package/es/atom/radio-with-title/types.d.ts +13 -2
  11. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  12. package/es/atom/status-item/index.native.js +2 -2
  13. package/es/atom/status-item/index.native.js.map +1 -1
  14. package/es/atom/tag/index.d.ts +12 -1
  15. package/es/atom/tag/style.css +1 -0
  16. package/es/atom/title/index.d.ts +13 -2
  17. package/es/molecule/banner/style.css +1 -0
  18. package/es/molecule/base-modal/style.css +0 -1
  19. package/es/molecule/bulk-progress-bar/index.js +2 -2
  20. package/es/molecule/bulk-progress-bar/index.js.map +1 -1
  21. package/es/molecule/certification-card/index.js +1 -1
  22. package/es/molecule/certification-card/index.js.map +1 -1
  23. package/es/molecule/cm-popin/types.d.ts +28 -7
  24. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  25. package/es/molecule/cm-popin/types.js +1 -1
  26. package/es/molecule/cm-popin/types.js.map +1 -1
  27. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  28. package/es/molecule/dashboard/cards-list/index.js +2 -0
  29. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  30. package/es/molecule/icon-preview/index.d.ts +5 -2
  31. package/es/molecule/icon-preview/index.d.ts.map +1 -1
  32. package/es/molecule/icon-preview/index.js +13 -2
  33. package/es/molecule/icon-preview/index.js.map +1 -1
  34. package/es/molecule/icon-preview/style.css +0 -1
  35. package/es/molecule/learner-skill-card/index.js +10 -8
  36. package/es/molecule/learner-skill-card/index.js.map +1 -1
  37. package/es/molecule/learner-skill-card/style.css +1 -0
  38. package/es/molecule/learning-priority-modal/style.css +3 -2
  39. package/es/molecule/progress-wrapper/index.js +1 -1
  40. package/es/molecule/progress-wrapper/index.js.map +1 -1
  41. package/es/molecule/skills-chart-side-information-item/index.d.ts +1 -1
  42. package/es/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
  43. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +13 -2
  44. package/es/molecule/title-radio-wrapper/index.d.ts +13 -3
  45. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  46. package/es/molecule/title-radio-wrapper/types.d.ts +13 -2
  47. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  48. package/es/organism/cards-grid/index.d.ts +48 -10
  49. package/es/organism/cards-grid/index.d.ts.map +1 -1
  50. package/es/organism/cards-grid/index.js +3 -2
  51. package/es/organism/cards-grid/index.js.map +1 -1
  52. package/es/organism/content-skill-modal/index.d.ts +13 -3
  53. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  54. package/es/organism/content-skill-modal/types.d.ts +12 -2
  55. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  56. package/es/organism/header-with-actions/index.d.ts +8 -22
  57. package/es/organism/header-with-actions/index.d.ts.map +1 -1
  58. package/es/organism/header-with-actions/index.js +7 -85
  59. package/es/organism/header-with-actions/index.js.map +1 -1
  60. package/es/organism/header-with-actions/types.d.ts +13 -44
  61. package/es/organism/header-with-actions/types.d.ts.map +1 -1
  62. package/es/organism/header-with-actions/types.js +6 -22
  63. package/es/organism/header-with-actions/types.js.map +1 -1
  64. package/es/organism/list-item/index.js +5 -5
  65. package/es/organism/list-item/index.js.map +1 -1
  66. package/es/organism/list-item/style.css +23 -17
  67. package/es/organism/list-items/index.d.ts +13 -2
  68. package/es/organism/rewards-form/index.d.ts +13 -2
  69. package/es/organism/select-opponents/index.d.ts +13 -3
  70. package/es/organism/select-opponents/index.d.ts.map +1 -1
  71. package/es/organism/select-opponents/types.d.ts +13 -2
  72. package/es/organism/select-opponents/types.d.ts.map +1 -1
  73. package/es/organism/sidebar/index.d.ts +2 -2
  74. package/es/organism/skill-edition/index.js +2 -2
  75. package/es/organism/skill-edition/index.js.map +1 -1
  76. package/es/organism/title-and-input/index.d.ts +25 -5
  77. package/es/organism/title-and-input/index.d.ts.map +1 -1
  78. package/es/organism/title-and-input/types.d.ts +24 -4
  79. package/es/organism/title-and-input/types.d.ts.map +1 -1
  80. package/es/organism/wizard-contents/index.d.ts +13 -2
  81. package/es/template/app-player/loading/index.d.ts +27 -6
  82. package/es/template/app-player/player/index.d.ts +53 -12
  83. package/es/template/app-player/player/slides/index.d.ts +27 -6
  84. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  85. package/es/template/app-player/popin-correction/index.d.ts +26 -6
  86. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  87. package/es/template/app-player/popin-end/index.d.ts +27 -6
  88. package/es/template/app-review/index.d.ts +27 -7
  89. package/es/template/app-review/index.d.ts.map +1 -1
  90. package/es/template/app-review/player/prop-types.d.ts +27 -6
  91. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  92. package/es/template/app-review/prop-types.d.ts +27 -6
  93. package/es/template/app-review/prop-types.d.ts.map +1 -1
  94. package/es/template/back-office/brand-update/index.d.ts +71 -34
  95. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  96. package/es/template/back-office/brand-update/index.js +2 -4
  97. package/es/template/back-office/brand-update/index.js.map +1 -1
  98. package/es/template/back-office/brand-update/style.css +1 -4
  99. package/es/template/back-office/brand-update/utils.d.ts +11 -39
  100. package/es/template/back-office/brand-update/utils.js +1 -20
  101. package/es/template/back-office/brand-update/utils.js.map +1 -1
  102. package/es/template/common/dashboard/index.d.ts +53 -12
  103. package/es/template/common/search-page/index.d.ts +27 -6
  104. package/es/template/external-course/index.d.ts +27 -6
  105. package/es/template/my-learning/index.d.ts.map +1 -1
  106. package/es/template/my-learning/index.js +1 -1
  107. package/es/template/my-learning/index.js.map +1 -1
  108. package/es/template/skill-detail/all-courses.css +9 -10
  109. package/es/template/skill-detail/all-courses.d.ts +50 -47
  110. package/es/template/skill-detail/all-courses.d.ts.map +1 -1
  111. package/es/template/skill-detail/all-courses.js +14 -23
  112. package/es/template/skill-detail/all-courses.js.map +1 -1
  113. package/es/template/skill-detail/continue-learning.css +7 -2
  114. package/es/template/skill-detail/continue-learning.d.ts +25 -12
  115. package/es/template/skill-detail/continue-learning.d.ts.map +1 -1
  116. package/es/template/skill-detail/continue-learning.js.map +1 -1
  117. package/es/template/skill-detail/index.d.ts +89 -71
  118. package/es/template/skill-detail/index.d.ts.map +1 -1
  119. package/es/template/skill-detail/index.js +99 -55
  120. package/es/template/skill-detail/index.js.map +1 -1
  121. package/es/template/skill-detail/style.css +188 -36
  122. package/es/variables/colors.css +2 -0
  123. package/es/variables/colors.d.ts +4 -3
  124. package/es/variables/colors.d.ts.map +1 -1
  125. package/es/variables/colors.js +5 -4
  126. package/es/variables/colors.js.map +1 -1
  127. package/es/variables/theme.native.js +1 -1
  128. package/es/variables/theme.native.js.map +1 -1
  129. package/lib/atom/button-link/index.js +1 -1
  130. package/lib/atom/button-link/index.js.map +1 -1
  131. package/lib/atom/button-link/style.css +2 -2
  132. package/lib/atom/icon/index.d.ts +35 -17
  133. package/lib/atom/icon/index.d.ts.map +1 -1
  134. package/lib/atom/icon/index.js +34 -18
  135. package/lib/atom/icon/index.js.map +1 -1
  136. package/lib/atom/radio-with-title/index.d.ts +13 -3
  137. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  138. package/lib/atom/radio-with-title/types.d.ts +13 -2
  139. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  140. package/lib/atom/status-item/index.native.js +2 -2
  141. package/lib/atom/status-item/index.native.js.map +1 -1
  142. package/lib/atom/tag/index.d.ts +12 -1
  143. package/lib/atom/tag/style.css +1 -0
  144. package/lib/atom/title/index.d.ts +13 -2
  145. package/lib/molecule/banner/style.css +1 -0
  146. package/lib/molecule/base-modal/style.css +0 -1
  147. package/lib/molecule/bulk-progress-bar/index.js +2 -2
  148. package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
  149. package/lib/molecule/certification-card/index.js +1 -1
  150. package/lib/molecule/certification-card/index.js.map +1 -1
  151. package/lib/molecule/cm-popin/types.d.ts +28 -7
  152. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  153. package/lib/molecule/cm-popin/types.js +1 -1
  154. package/lib/molecule/cm-popin/types.js.map +1 -1
  155. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  156. package/lib/molecule/dashboard/cards-list/index.js +2 -0
  157. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  158. package/lib/molecule/icon-preview/index.d.ts +5 -2
  159. package/lib/molecule/icon-preview/index.d.ts.map +1 -1
  160. package/lib/molecule/icon-preview/index.js +13 -2
  161. package/lib/molecule/icon-preview/index.js.map +1 -1
  162. package/lib/molecule/icon-preview/style.css +0 -1
  163. package/lib/molecule/learner-skill-card/index.js +10 -8
  164. package/lib/molecule/learner-skill-card/index.js.map +1 -1
  165. package/lib/molecule/learner-skill-card/style.css +1 -0
  166. package/lib/molecule/learning-priority-modal/style.css +3 -2
  167. package/lib/molecule/progress-wrapper/index.js +1 -1
  168. package/lib/molecule/progress-wrapper/index.js.map +1 -1
  169. package/lib/molecule/skills-chart-side-information-item/index.d.ts +1 -1
  170. package/lib/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
  171. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +13 -2
  172. package/lib/molecule/title-radio-wrapper/index.d.ts +13 -3
  173. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  174. package/lib/molecule/title-radio-wrapper/types.d.ts +13 -2
  175. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  176. package/lib/organism/cards-grid/index.d.ts +48 -10
  177. package/lib/organism/cards-grid/index.d.ts.map +1 -1
  178. package/lib/organism/cards-grid/index.js +3 -2
  179. package/lib/organism/cards-grid/index.js.map +1 -1
  180. package/lib/organism/content-skill-modal/index.d.ts +13 -3
  181. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  182. package/lib/organism/content-skill-modal/types.d.ts +12 -2
  183. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  184. package/lib/organism/header-with-actions/index.d.ts +8 -22
  185. package/lib/organism/header-with-actions/index.d.ts.map +1 -1
  186. package/lib/organism/header-with-actions/index.js +7 -85
  187. package/lib/organism/header-with-actions/index.js.map +1 -1
  188. package/lib/organism/header-with-actions/types.d.ts +13 -44
  189. package/lib/organism/header-with-actions/types.d.ts.map +1 -1
  190. package/lib/organism/header-with-actions/types.js +6 -22
  191. package/lib/organism/header-with-actions/types.js.map +1 -1
  192. package/lib/organism/list-item/index.js +5 -5
  193. package/lib/organism/list-item/index.js.map +1 -1
  194. package/lib/organism/list-item/style.css +23 -17
  195. package/lib/organism/list-items/index.d.ts +13 -2
  196. package/lib/organism/rewards-form/index.d.ts +13 -2
  197. package/lib/organism/select-opponents/index.d.ts +13 -3
  198. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  199. package/lib/organism/select-opponents/types.d.ts +13 -2
  200. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  201. package/lib/organism/sidebar/index.d.ts +2 -2
  202. package/lib/organism/skill-edition/index.js +2 -2
  203. package/lib/organism/skill-edition/index.js.map +1 -1
  204. package/lib/organism/title-and-input/index.d.ts +25 -5
  205. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  206. package/lib/organism/title-and-input/types.d.ts +24 -4
  207. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  208. package/lib/organism/wizard-contents/index.d.ts +13 -2
  209. package/lib/template/app-player/loading/index.d.ts +27 -6
  210. package/lib/template/app-player/player/index.d.ts +53 -12
  211. package/lib/template/app-player/player/slides/index.d.ts +27 -6
  212. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  213. package/lib/template/app-player/popin-correction/index.d.ts +26 -6
  214. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  215. package/lib/template/app-player/popin-end/index.d.ts +27 -6
  216. package/lib/template/app-review/index.d.ts +27 -7
  217. package/lib/template/app-review/index.d.ts.map +1 -1
  218. package/lib/template/app-review/player/prop-types.d.ts +27 -6
  219. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  220. package/lib/template/app-review/prop-types.d.ts +27 -6
  221. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  222. package/lib/template/back-office/brand-update/index.d.ts +71 -34
  223. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  224. package/lib/template/back-office/brand-update/index.js +2 -4
  225. package/lib/template/back-office/brand-update/index.js.map +1 -1
  226. package/lib/template/back-office/brand-update/style.css +1 -4
  227. package/lib/template/back-office/brand-update/utils.d.ts +11 -39
  228. package/lib/template/back-office/brand-update/utils.js +1 -20
  229. package/lib/template/back-office/brand-update/utils.js.map +1 -1
  230. package/lib/template/common/dashboard/index.d.ts +53 -12
  231. package/lib/template/common/search-page/index.d.ts +27 -6
  232. package/lib/template/external-course/index.d.ts +27 -6
  233. package/lib/template/my-learning/index.d.ts.map +1 -1
  234. package/lib/template/my-learning/index.js +1 -1
  235. package/lib/template/my-learning/index.js.map +1 -1
  236. package/lib/template/skill-detail/all-courses.css +9 -10
  237. package/lib/template/skill-detail/all-courses.d.ts +50 -47
  238. package/lib/template/skill-detail/all-courses.d.ts.map +1 -1
  239. package/lib/template/skill-detail/all-courses.js +13 -23
  240. package/lib/template/skill-detail/all-courses.js.map +1 -1
  241. package/lib/template/skill-detail/continue-learning.css +7 -2
  242. package/lib/template/skill-detail/continue-learning.d.ts +25 -12
  243. package/lib/template/skill-detail/continue-learning.d.ts.map +1 -1
  244. package/lib/template/skill-detail/continue-learning.js.map +1 -1
  245. package/lib/template/skill-detail/index.d.ts +89 -71
  246. package/lib/template/skill-detail/index.d.ts.map +1 -1
  247. package/lib/template/skill-detail/index.js +99 -55
  248. package/lib/template/skill-detail/index.js.map +1 -1
  249. package/lib/template/skill-detail/style.css +188 -36
  250. package/lib/variables/colors.css +2 -0
  251. package/lib/variables/colors.d.ts +4 -3
  252. package/lib/variables/colors.d.ts.map +1 -1
  253. package/lib/variables/colors.js +5 -4
  254. package/lib/variables/colors.js.map +1 -1
  255. package/lib/variables/theme.native.js +1 -1
  256. package/lib/variables/theme.native.js.map +1 -1
  257. package/package.json +2 -2
  258. package/locales/.mtslconfig.json +0 -1
@@ -7,7 +7,7 @@ declare function SkillsChartSideInformationItem({ title, value, legend, icon: ic
7
7
  }): JSX.Element;
8
8
  declare namespace SkillsChartSideInformationItem {
9
9
  namespace propTypes {
10
- const icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
10
+ const icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
11
11
  const title: PropTypes.Requireable<string>;
12
12
  const value: PropTypes.Requireable<string>;
13
13
  const legend: PropTypes.Requireable<string>;
@@ -5,7 +5,7 @@ declare function SkillsChartSideInformationPanel({ sidePanelItems }: {
5
5
  declare namespace SkillsChartSideInformationPanel {
6
6
  namespace propTypes {
7
7
  const sidePanelItems: PropTypes.Requireable<(PropTypes.InferProps<{
8
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
8
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
9
9
  title: PropTypes.Requireable<string>;
10
10
  value: PropTypes.Requireable<string>;
11
11
  legend: PropTypes.Requireable<string>;
@@ -26,7 +26,7 @@ declare namespace TitleAndCheckBoxWrapper {
26
26
  'data-name': PropTypes.Requireable<string>;
27
27
  titleSize: PropTypes.Requireable<string>;
28
28
  subtitleSize: PropTypes.Requireable<string>;
29
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
29
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
30
30
  tag: PropTypes.Requireable<PropTypes.InferProps<{
31
31
  label: PropTypes.Requireable<string>;
32
32
  type: PropTypes.Requireable<string>;
@@ -34,7 +34,17 @@ declare namespace TitleAndCheckBoxWrapper {
34
34
  customStyle: PropTypes.Requireable<{
35
35
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
36
36
  }>;
37
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
37
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
38
+ position: PropTypes.Requireable<string>;
39
+ iconName?: React.Validator<string> | undefined;
40
+ iconColor?: React.Validator<string | null | undefined> | undefined;
41
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
42
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
43
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
44
+ preset?: React.Validator<string | null | undefined> | undefined;
45
+ size?: React.Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
46
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
47
+ }>>;
38
48
  }>>;
39
49
  button: PropTypes.Requireable<PropTypes.InferProps<{
40
50
  type: PropTypes.Requireable<string>;
@@ -181,4 +191,5 @@ declare namespace TitleAndCheckBoxWrapper {
181
191
  }
182
192
  }
183
193
  import PropTypes from "prop-types";
194
+ import React from "react";
184
195
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TitleRadioWrapperProps } from './types';
3
3
  declare const TitleRadioWrapper: {
4
4
  (props: TitleRadioWrapperProps): JSX.Element;
@@ -11,7 +11,7 @@ declare const TitleRadioWrapper: {
11
11
  'data-name': import("prop-types").Requireable<string>;
12
12
  titleSize: import("prop-types").Requireable<string>;
13
13
  subtitleSize: import("prop-types").Requireable<string>;
14
- icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
14
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<import("prop-types").ValidationMap<any>>>;
15
15
  tag: import("prop-types").Requireable<import("prop-types").InferProps<{
16
16
  label: import("prop-types").Requireable<string>;
17
17
  type: import("prop-types").Requireable<string>;
@@ -19,7 +19,17 @@ declare const TitleRadioWrapper: {
19
19
  customStyle: import("prop-types").Requireable<{
20
20
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
21
21
  }>;
22
- icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
22
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<{
23
+ position: import("prop-types").Requireable<string>;
24
+ iconName?: React.Validator<string> | undefined;
25
+ iconColor?: React.Validator<string | null | undefined> | undefined;
26
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
27
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
28
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
29
+ preset?: React.Validator<string | null | undefined> | undefined;
30
+ size?: React.Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
31
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
32
+ }>>;
23
33
  }>>;
24
34
  button: import("prop-types").Requireable<import("prop-types").InferProps<{
25
35
  type: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  import InputFileDraggable from '../../atom/input-file-draggable';
3
4
  import { RadioWithTitleProps } from '../../atom/radio-with-title/types';
@@ -11,7 +12,7 @@ declare const propTypes: {
11
12
  'data-name': PropTypes.Requireable<string>;
12
13
  titleSize: PropTypes.Requireable<string>;
13
14
  subtitleSize: PropTypes.Requireable<string>;
14
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
15
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
15
16
  tag: PropTypes.Requireable<PropTypes.InferProps<{
16
17
  label: PropTypes.Requireable<string>;
17
18
  type: PropTypes.Requireable<string>;
@@ -19,7 +20,17 @@ declare const propTypes: {
19
20
  customStyle: PropTypes.Requireable<{
20
21
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
21
22
  }>;
22
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
23
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
24
+ position: PropTypes.Requireable<string>;
25
+ iconName?: import("react").Validator<string> | undefined;
26
+ iconColor?: import("react").Validator<string | null | undefined> | undefined;
27
+ backgroundColor?: import("react").Validator<string | null | undefined> | undefined;
28
+ gradientBackground?: import("react").Validator<boolean | null | undefined> | undefined;
29
+ borderRadius?: import("react").Validator<string | null | undefined> | undefined;
30
+ preset?: import("react").Validator<string | null | undefined> | undefined;
31
+ size?: import("react").Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
32
+ customStyle?: import("react").Validator<import("react").CSSProperties | null | undefined> | undefined;
33
+ }>>;
23
34
  }>>;
24
35
  button: PropTypes.Requireable<PropTypes.InferProps<{
25
36
  type: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOd,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,cAAc,EAAE,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAO,cAAc,CAAC,SAAS,GAAG,OAAO,kBAAkB,CAAC,SAAS,CAAC;IAC7E,SAAS,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;CACjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOd,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,cAAc,EAAE,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAO,cAAc,CAAC,SAAS,GAAG,OAAO,kBAAkB,CAAC,SAAS,CAAC;IAC7E,SAAS,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;CACjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,13 +1,51 @@
1
- export default CardsGrid;
2
- declare function CardsGrid(props: any): JSX.Element;
3
- declare namespace CardsGrid {
4
- namespace propTypes {
5
- const list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
6
- const customStyle: PropTypes.Requireable<{
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ export interface CardProps {
4
+ key?: React.Key;
5
+ badge?: string;
6
+ image?: string;
7
+ disabled?: boolean;
8
+ adaptiv?: boolean;
9
+ type?: string;
10
+ title?: string;
11
+ author?: string;
12
+ certifiedAuthor?: boolean;
13
+ customer?: Record<string, unknown>;
14
+ progress: number;
15
+ favorite?: boolean;
16
+ addFavoriteToolTip?: string;
17
+ removeFavoriteToolTip?: string;
18
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
19
+ onFavoriteClick?: () => void;
20
+ isSelected?: boolean;
21
+ notification?: Record<string, unknown>;
22
+ badgeCategory?: string;
23
+ badgeLabel?: string;
24
+ theme?: 'default' | 'coorpmanager';
25
+ disabledContent?: string;
26
+ 'aria-label'?: string;
27
+ 'background-aria-label'?: string;
28
+ 'favorite-aria-label'?: string;
29
+ 'selectable-aria-label'?: string;
30
+ 'customer-aria-label'?: string;
31
+ 'badge-aria-label'?: string;
32
+ 'disabled-aria-label'?: string;
33
+ 'card-content-aria-label'?: string;
34
+ }
35
+ export interface CardsGridProps {
36
+ list: CardProps[];
37
+ customStyle?: Record<string, string>;
38
+ loading?: boolean;
39
+ }
40
+ declare const CardsGrid: {
41
+ (props: CardsGridProps): JSX.Element;
42
+ propTypes: {
43
+ list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
44
+ customStyle: PropTypes.Requireable<{
7
45
  [x: string]: string | null | undefined;
8
46
  }>;
9
- const loading: PropTypes.Requireable<boolean>;
10
- }
11
- }
12
- import PropTypes from "prop-types";
47
+ loading: PropTypes.Requireable<boolean>;
48
+ };
49
+ };
50
+ export default CardsGrid;
13
51
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/cards-grid/index.js"],"names":[],"mappings":";AAOA,oDAuBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/cards-grid/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAMnC,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACxD,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,cAAc,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,SAAS;YAAW,cAAc;;;;;;;;CAuBvC,CAAC;AASF,eAAe,SAAS,CAAC"}
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
4
4
  import Card from '../../molecule/card';
5
5
  import Loader from '../../atom/loader';
6
6
  import style from './style.css';
7
- function CardsGrid(props) {
7
+ const CardsGrid = props => {
8
8
  const {
9
9
  list = [],
10
10
  customStyle = {},
@@ -24,8 +24,9 @@ function CardsGrid(props) {
24
24
  className: style.defaultStyle,
25
25
  style: customStyle
26
26
  }, cards, loader);
27
- }
27
+ };
28
28
  CardsGrid.propTypes = process.env.NODE_ENV !== "production" ? {
29
+ // @ts-expect-error component is not typed & wrapped into memo
29
30
  list: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),
30
31
  customStyle: PropTypes.objectOf(PropTypes.string),
31
32
  loading: PropTypes.bool
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","Card","Loader","style","CardsGrid","props","list","customStyle","loading","loader","createElement","className","cards","_map","cardProps","card","key","defaultStyle","propTypes","process","env","NODE_ENV","arrayOf","shape","objectOf","string","bool"],"sources":["../../../src/organism/cards-grid/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Card from '../../molecule/card';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nfunction CardsGrid(props) {\n const {list = [], customStyle = {}, loading = false} = props;\n\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n\n const cards = map(cardProps => {\n return (\n <div data-name=\"cardGrid\" className={style.card} key={cardProps.key}>\n <Card {...cardProps} />\n </div>\n );\n }, list);\n\n return (\n <div className={style.defaultStyle} style={customStyle}>\n {cards}\n {loader}\n </div>\n );\n}\n\nCardsGrid.propTypes = {\n list: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),\n customStyle: PropTypes.objectOf(PropTypes.string),\n loading: PropTypes.bool\n};\n\nexport default CardsGrid;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,IAAI,MAAM,qBAAqB;AACtC,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,KAAK,MAAM,aAAa;AAE/B,SAASC,SAASA,CAACC,KAAK,EAAE;EACxB,MAAM;IAACC,IAAI,GAAG,EAAE;IAAEC,WAAW,GAAG,CAAC,CAAC;IAAEC,OAAO,GAAG;EAAK,CAAC,GAAGH,KAAK;EAE5D,MAAMI,MAAM,GAAGD,OAAO,gBACpBT,KAAA,CAAAW,aAAA;IAAKC,SAAS,EAAER,KAAK,CAACM;EAAO,gBAC3BV,KAAA,CAAAW,aAAA,CAACR,MAAM,MAAE,CACN,CAAC,GACJ,IAAI;EAER,MAAMU,KAAK,GAAGC,IAAA,CAAIC,SAAS,IAAI;IAC7B,oBACEf,KAAA,CAAAW,aAAA;MAAK,aAAU,UAAU;MAACC,SAAS,EAAER,KAAK,CAACY,IAAK;MAACC,GAAG,EAAEF,SAAS,CAACE;IAAI,gBAClEjB,KAAA,CAAAW,aAAA,CAACT,IAAI,EAAKa,SAAY,CACnB,CAAC;EAEV,CAAC,EAAER,IAAI,CAAC;EAER,oBACEP,KAAA,CAAAW,aAAA;IAAKC,SAAS,EAAER,KAAK,CAACc,YAAa;IAACd,KAAK,EAAEI;EAAY,GACpDK,KAAK,EACLH,MACE,CAAC;AAEV;AAEAL,SAAS,CAACc,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACpBf,IAAI,EAAEN,SAAS,CAACsB,OAAO,CAACtB,SAAS,CAACuB,KAAK,CAACtB,IAAI,CAACiB,SAAS,CAAC,CAAC;EACxDX,WAAW,EAAEP,SAAS,CAACwB,QAAQ,CAACxB,SAAS,CAACyB,MAAM,CAAC;EACjDjB,OAAO,EAAER,SAAS,CAAC0B;AACrB,CAAC;AAED,eAAetB,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","Card","Loader","style","CardsGrid","props","list","customStyle","loading","loader","createElement","className","cards","_map","cardProps","card","key","defaultStyle","propTypes","process","env","NODE_ENV","arrayOf","shape","objectOf","string","bool"],"sources":["../../../src/organism/cards-grid/index.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Card from '../../molecule/card';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nexport interface CardProps {\n key?: React.Key;\n badge?: string;\n image?: string;\n disabled?: boolean;\n adaptiv?: boolean;\n type?: string;\n title?: string;\n author?: string;\n certifiedAuthor?: boolean;\n customer?: Record<string, unknown>;\n progress: number;\n favorite?: boolean;\n addFavoriteToolTip?: string;\n removeFavoriteToolTip?: string;\n onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;\n onFavoriteClick?: () => void;\n isSelected?: boolean;\n notification?: Record<string, unknown>;\n badgeCategory?: string;\n badgeLabel?: string;\n theme?: 'default' | 'coorpmanager';\n disabledContent?: string;\n 'aria-label'?: string;\n 'background-aria-label'?: string;\n 'favorite-aria-label'?: string;\n 'selectable-aria-label'?: string;\n 'customer-aria-label'?: string;\n 'badge-aria-label'?: string;\n 'disabled-aria-label'?: string;\n 'card-content-aria-label'?: string;\n}\n\nexport interface CardsGridProps {\n list: CardProps[];\n customStyle?: Record<string, string>;\n loading?: boolean;\n}\n\nconst CardsGrid = (props: CardsGridProps) => {\n const {list = [], customStyle = {}, loading = false} = props;\n\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n\n const cards = map(cardProps => {\n return (\n <div data-name=\"cardGrid\" className={style.card} key={cardProps.key}>\n <Card {...cardProps} />\n </div>\n );\n }, list);\n\n return (\n <div className={style.defaultStyle} style={customStyle}>\n {cards}\n {loader}\n </div>\n );\n};\n\nCardsGrid.propTypes = {\n // @ts-expect-error component is not typed & wrapped into memo\n list: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),\n customStyle: PropTypes.objectOf(PropTypes.string),\n loading: PropTypes.bool\n};\n\nexport default CardsGrid;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,IAAI,MAAM,qBAAqB;AACtC,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,KAAK,MAAM,aAAa;AAyC/B,MAAMC,SAAS,GAAIC,KAAqB,IAAK;EAC3C,MAAM;IAACC,IAAI,GAAG,EAAE;IAAEC,WAAW,GAAG,CAAC,CAAC;IAAEC,OAAO,GAAG;EAAK,CAAC,GAAGH,KAAK;EAE5D,MAAMI,MAAM,GAAGD,OAAO,gBACpBT,KAAA,CAAAW,aAAA;IAAKC,SAAS,EAAER,KAAK,CAACM;EAAO,gBAC3BV,KAAA,CAAAW,aAAA,CAACR,MAAM,MAAE,CACN,CAAC,GACJ,IAAI;EAER,MAAMU,KAAK,GAAGC,IAAA,CAAIC,SAAS,IAAI;IAC7B,oBACEf,KAAA,CAAAW,aAAA;MAAK,aAAU,UAAU;MAACC,SAAS,EAAER,KAAK,CAACY,IAAK;MAACC,GAAG,EAAEF,SAAS,CAACE;IAAI,gBAClEjB,KAAA,CAAAW,aAAA,CAACT,IAAI,EAAKa,SAAY,CACnB,CAAC;EAEV,CAAC,EAAER,IAAI,CAAC;EAER,oBACEP,KAAA,CAAAW,aAAA;IAAKC,SAAS,EAAER,KAAK,CAACc,YAAa;IAACd,KAAK,EAAEI;EAAY,GACpDK,KAAK,EACLH,MACE,CAAC;AAEV,CAAC;AAEDL,SAAS,CAACc,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACpB;EACAf,IAAI,EAAEN,SAAS,CAACsB,OAAO,CAACtB,SAAS,CAACuB,KAAK,CAACtB,IAAI,CAACiB,SAAS,CAAC,CAAC;EACxDX,WAAW,EAAEP,SAAS,CAACwB,QAAQ,CAACxB,SAAS,CAACyB,MAAM,CAAC;EACjDjB,OAAO,EAAER,SAAS,CAAC0B;AACrB,CAAC;AAED,eAAetB,SAAS","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ContentSkillModalProps } from './types';
3
3
  declare const ContentSkillModal: {
4
4
  (props: ContentSkillModalProps): JSX.Element | null;
@@ -408,7 +408,7 @@ declare const ContentSkillModal: {
408
408
  'data-name': import("prop-types").Requireable<string>;
409
409
  titleSize: import("prop-types").Requireable<string>;
410
410
  subtitleSize: import("prop-types").Requireable<string>;
411
- icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
411
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<import("prop-types").ValidationMap<any>>>;
412
412
  tag: import("prop-types").Requireable<import("prop-types").InferProps<{
413
413
  label: import("prop-types").Requireable<string>;
414
414
  type: import("prop-types").Requireable<string>;
@@ -416,7 +416,17 @@ declare const ContentSkillModal: {
416
416
  customStyle: import("prop-types").Requireable<{
417
417
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
418
418
  }>;
419
- icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
419
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<{
420
+ position: import("prop-types").Requireable<string>;
421
+ iconName?: React.Validator<string> | undefined;
422
+ iconColor?: React.Validator<string | null | undefined> | undefined;
423
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
424
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
425
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
426
+ preset?: React.Validator<string | null | undefined> | undefined;
427
+ size?: React.Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
428
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
429
+ }>>;
420
430
  }>>;
421
431
  button: import("prop-types").Requireable<import("prop-types").InferProps<{
422
432
  type: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":";AAOA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
@@ -405,7 +405,7 @@ declare const ContentSkillModalPropTypes: {
405
405
  'data-name': PropTypes.Requireable<string>;
406
406
  titleSize: PropTypes.Requireable<string>;
407
407
  subtitleSize: PropTypes.Requireable<string>;
408
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
408
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
409
409
  tag: PropTypes.Requireable<PropTypes.InferProps<{
410
410
  label: PropTypes.Requireable<string>;
411
411
  type: PropTypes.Requireable<string>;
@@ -413,7 +413,17 @@ declare const ContentSkillModalPropTypes: {
413
413
  customStyle: PropTypes.Requireable<{
414
414
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
415
415
  }>;
416
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
416
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
417
+ position: PropTypes.Requireable<string>;
418
+ iconName?: import("react").Validator<string> | undefined;
419
+ iconColor?: import("react").Validator<string | null | undefined> | undefined;
420
+ backgroundColor?: import("react").Validator<string | null | undefined> | undefined;
421
+ gradientBackground?: import("react").Validator<boolean | null | undefined> | undefined;
422
+ borderRadius?: import("react").Validator<string | null | undefined> | undefined;
423
+ preset?: import("react").Validator<string | null | undefined> | undefined;
424
+ size?: import("react").Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
425
+ customStyle?: import("react").Validator<import("react").CSSProperties | null | undefined> | undefined;
426
+ }>>;
417
427
  }>>;
418
428
  button: PropTypes.Requireable<PropTypes.InferProps<{
419
429
  type: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"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AAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACpD,OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
@@ -4,7 +4,10 @@ declare const HeaderWithActions: {
4
4
  (props: HeaderWithActionsProps): JSX.Element;
5
5
  propTypes: {
6
6
  closeButton: import("prop-types").Requireable<import("prop-types").InferProps<{
7
- 'aria-label': import("prop-types").Requireable<string>;
7
+ size: import("prop-types").Validator<string>;
8
+ icon: import("prop-types").Validator<string>;
9
+ 'data-name': import("prop-types").Validator<string>;
10
+ 'aria-label': import("prop-types").Validator<string>;
8
11
  onClick: import("prop-types").Validator<(...args: any[]) => any>;
9
12
  }>>;
10
13
  title: import("prop-types").Validator<string>;
@@ -17,7 +20,7 @@ declare const HeaderWithActions: {
17
20
  display: import("prop-types").Validator<boolean>;
18
21
  label: import("prop-types").Requireable<string>;
19
22
  }>>>;
20
- bulletPointMenuButtonPropTypes: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
23
+ bulletPointMenuButton: import("prop-types").Requireable<import("prop-types").InferProps<{
21
24
  'data-name': import("prop-types").Requireable<string>;
22
25
  disabled: import("prop-types").Requireable<boolean>;
23
26
  buttonAriaLabel: import("prop-types").Requireable<string>;
@@ -50,18 +53,8 @@ declare const HeaderWithActions: {
50
53
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
51
54
  menuButtonClassName: import("prop-types").Requireable<string>;
52
55
  isBulkMenu: import("prop-types").Requireable<boolean>;
53
- }> | import("prop-types").InferProps<{
54
- buttons: import("prop-types").Validator<(import("prop-types").InferProps<{
55
- dataName: import("prop-types").Requireable<string>;
56
- label: import("prop-types").Validator<string>;
57
- iconName: import("prop-types").Validator<string>;
58
- iconColor: import("prop-types").Validator<string>;
59
- onClick: import("prop-types").Validator<(...args: any[]) => any>;
60
- }> | null | undefined)[]>;
61
- onClick: import("prop-types").Validator<(...args: any[]) => any>;
62
- buttonAriaLabel: import("prop-types").Requireable<string>;
63
- }> | null | undefined>>;
64
- actionButtons: import("prop-types").Validator<NonNullable<NonNullable<(import("prop-types").InferProps<{
56
+ }>>;
57
+ actionButtons: import("prop-types").Validator<(import("prop-types").InferProps<{
65
58
  type: import("prop-types").Requireable<string>;
66
59
  usage: import("prop-types").Requireable<string>;
67
60
  label: import("prop-types").Requireable<string>;
@@ -97,14 +90,7 @@ declare const HeaderWithActions: {
97
90
  customStyle: import("prop-types").Requireable<{
98
91
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
99
92
  }>;
100
- }> | null | undefined)[] | (import("prop-types").InferProps<{
101
- type: import("prop-types").Validator<string>;
102
- label: import("prop-types").Validator<string>;
103
- onClick: import("prop-types").Validator<(...args: any[]) => any>;
104
- disabled: import("prop-types").Requireable<boolean>;
105
- iconName: import("prop-types").Validator<string>;
106
- iconColor: import("prop-types").Validator<string>;
107
- }> | null | undefined)[] | null | undefined>>>;
93
+ }> | null | undefined)[]>;
108
94
  };
109
95
  };
110
96
  export default HeaderWithActions;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EACjC,sBAAsB,EAGvB,MAAM,SAAS,CAAC;AAsEjB,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAO3E,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
@@ -13,78 +13,6 @@ const getDataName = suffix => `header-with-actions-${suffix}`;
13
13
  const uncappedMap = map.convert({
14
14
  cap: false
15
15
  });
16
- const buildCloseButton = ({
17
- onClick,
18
- ariaLabel
19
- }) => {
20
- return {
21
- size: 'default',
22
- icon: 'close',
23
- 'data-name': 'close-button',
24
- 'aria-label': ariaLabel,
25
- onClick
26
- };
27
- };
28
- const buildButtonMenu = ({
29
- dataName,
30
- label,
31
- iconName,
32
- iconColor,
33
- onClick
34
- }) => {
35
- return {
36
- 'data-name': dataName,
37
- label,
38
- buttonLinkType: 'tertiary',
39
- icon: {
40
- position: 'left',
41
- faIcon: {
42
- name: iconName,
43
- color: iconColor,
44
- size: 14,
45
- customStyle: {
46
- padding: 0
47
- }
48
- }
49
- },
50
- onClick,
51
- type: 'defaultLeft'
52
- };
53
- };
54
- const buildActionButton = ({
55
- type,
56
- label,
57
- onClick,
58
- disabled,
59
- iconName,
60
- iconColor
61
- }) => {
62
- return {
63
- type,
64
- label,
65
- onClick,
66
- disabled,
67
- icon: {
68
- position: 'left',
69
- faIcon: {
70
- name: iconName,
71
- color: iconColor,
72
- size: 14,
73
- customStyle: {
74
- padding: 0
75
- }
76
- }
77
- },
78
- customStyle: {
79
- fontWeight: '600',
80
- borderRadius: '12px',
81
- padding: '0 8px 0 16px'
82
- }
83
- };
84
- };
85
- const isButtonActionProps = action => {
86
- return typeof action.iconName === 'string' && typeof action.iconColor === 'string';
87
- };
88
16
  const HeaderWithActions = props => {
89
17
  const {
90
18
  closeButton,
@@ -94,23 +22,13 @@ const HeaderWithActions = props => {
94
22
  bulletPointMenuButton,
95
23
  actionButtons
96
24
  } = props;
97
- const renderedActionButtons = uncappedMap((action, key) => {
98
- return isButtonActionProps(action) ? /*#__PURE__*/React.createElement(ButtonLink, _extends({}, buildActionButton(action), {
99
- key: key
100
- })) : /*#__PURE__*/React.createElement(ButtonLink, _extends({}, action, {
101
- key: key
102
- }));
103
- }, actionButtons);
104
25
  return /*#__PURE__*/React.createElement("div", {
105
26
  className: style.headerWrapper,
106
27
  "data-name": getDataName('wrapper')
107
28
  }, /*#__PURE__*/React.createElement("div", {
108
29
  className: style.titleAndButtonWrapper,
109
30
  "data-name": getDataName('title-and-button-wrapper')
110
- }, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({}, buildCloseButton({
111
- onClick: closeButton.onClick,
112
- ariaLabel: closeButton['aria-label']
113
- }), {
31
+ }, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({}, closeButton, {
114
32
  className: style.button
115
33
  })), /*#__PURE__*/React.createElement("div", {
116
34
  className: style.titleWrapper
@@ -126,8 +44,12 @@ const HeaderWithActions = props => {
126
44
  className: style.buttonsWrapper,
127
45
  "data-name": getDataName('buttons-wrapper')
128
46
  }, bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? /*#__PURE__*/React.createElement(BulletPointMenuButton, _extends({}, bulletPointMenuButton, {
129
- buttons: uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)
130
- })) : null, renderedActionButtons));
47
+ buttonAriaLabel: "More actions"
48
+ })) : null, uncappedMap((action, key) => {
49
+ return /*#__PURE__*/React.createElement(ButtonLink, _extends({}, action, {
50
+ key: key
51
+ }));
52
+ }, actionButtons)));
131
53
  };
132
54
  HeaderWithActions.propTypes = process.env.NODE_ENV !== "production" ? headerWithActionsPropTypes : {};
133
55
  export default HeaderWithActions;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","buildCloseButton","onClick","ariaLabel","size","icon","buildButtonMenu","dataName","label","iconName","iconColor","buttonLinkType","position","faIcon","name","color","customStyle","padding","type","buildActionButton","disabled","fontWeight","borderRadius","isButtonActionProps","action","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","renderedActionButtons","key","createElement","_extends","className","headerWrapper","titleAndButtonWrapper","button","titleWrapper","statusWrapper","display","buttonsWrapper","buttons","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport headerWithActionsPropTypes, {\n HeaderWithActionsProps,\n ButtonMenuProps,\n ButtonActionProps\n} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n// @ts-expect-error (need to get the index)\nconst uncappedMap = map.convert({cap: false});\n\nconst buildCloseButton = ({onClick, ariaLabel}: {onClick: () => void; ariaLabel: string}) => {\n return {\n size: 'default',\n icon: 'close',\n 'data-name': 'close-button',\n 'aria-label': ariaLabel,\n onClick\n };\n};\n\nconst buildButtonMenu = ({dataName, label, iconName, iconColor, onClick}: ButtonMenuProps) => {\n return {\n 'data-name': dataName,\n label,\n buttonLinkType: 'tertiary',\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n onClick,\n type: 'defaultLeft'\n };\n};\n\nconst buildActionButton = ({\n type,\n label,\n onClick,\n disabled,\n iconName,\n iconColor\n}: ButtonActionProps) => {\n return {\n type,\n label,\n onClick,\n disabled,\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px',\n padding: '0 8px 0 16px'\n }\n };\n};\n\nconst isButtonActionProps = (action: any): action is ButtonActionProps => {\n return typeof action.iconName === 'string' && typeof action.iconColor === 'string';\n};\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\n\n const renderedActionButtons = uncappedMap(\n (action: ButtonLinkProps | ButtonActionProps, key: string) => {\n return isButtonActionProps(action) ? (\n <ButtonLink {...buildActionButton(action)} key={key} />\n ) : (\n <ButtonLink {...action} key={key} />\n );\n },\n actionButtons\n );\n\n return (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={style.titleAndButtonWrapper}\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon\n {...buildCloseButton({\n onClick: closeButton.onClick,\n ariaLabel: closeButton['aria-label']\n })}\n className={style.button}\n />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n <h3 className={style.title} aria-label={title} data-name={getDataName('title')}>\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton\n {...bulletPointMenuButton}\n buttons={uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)}\n />\n ) : null}\n {renderedActionButtons}\n </div>\n </div>\n );\n};\n\nHeaderWithActions.propTypes = headerWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAA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GvD,0BAA0B;AAExD,eAAe+B,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","createElement","className","headerWrapper","titleAndButtonWrapper","_extends","button","titleWrapper","statusWrapper","display","label","buttonsWrapper","buttons","buttonAriaLabel","action","key","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport headerWithActionsPropTypes, {HeaderWithActionsProps} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n// @ts-expect-error (need to get the index)\nconst uncappedMap = map.convert({cap: false});\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\n\n return (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={style.titleAndButtonWrapper}\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon {...closeButton} className={style.button} />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n <h3 className={style.title} aria-label={title} data-name={getDataName('title')}>\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} buttonAriaLabel=\"More actions\" />\n ) : null}\n {uncappedMap((action: ButtonLinkProps, key: string) => {\n return <ButtonLink {...action} key={key} />;\n }, actionButtons)}\n </div>\n </div>\n );\n};\n\nHeaderWithActions.propTypes = headerWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,cAAc,MAAM,6BAA6B;AACxD,OAAOC,GAAG,MAAM,gBAAgB;AAEhC,OAAOC,qBAAqB,MAAM,yCAAyC;AAC3E,OAAOC,0BAA0B,MAAgC,SAAS;AAC1E,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAIC,MAAc,IAAK,uBAAuBA,MAAM,EAAE;AACvE;AACA,MAAMC,WAAW,GAAGT,GAAG,CAACU,OAAO,CAAC;EAACC,GAAG,EAAE;AAAK,CAAC,CAAC;AAE7C,MAAMC,iBAAiB,GAAIC,KAA6B,IAAK;EAC3D,MAAM;IAACC,WAAW;IAAEC,KAAK;IAAEC,GAAG;IAAEC,UAAU;IAAEC,qBAAqB;IAAEC;EAAa,CAAC,GAAGN,KAAK;EAEzF,oBACEf,KAAA,CAAAsB,aAAA;IAAKC,SAAS,EAAEf,KAAK,CAACgB,aAAc;IAAC,aAAWf,WAAW,CAAC,SAAS;EAAE,gBACrET,KAAA,CAAAsB,aAAA;IACEC,SAAS,EAAEf,KAAK,CAACiB,qBAAsB;IACvC,aAAWhB,WAAW,CAAC,0BAA0B;EAAE,gBAEnDT,KAAA,CAAAsB,aAAA,CAAClB,cAAc,EAAAsB,QAAA,KAAKV,WAAW;IAAEO,SAAS,EAAEf,KAAK,CAACmB;EAAO,EAAE,CAAC,eAC5D3B,KAAA,CAAAsB,aAAA;IAAKC,SAAS,EAAEf,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