@coorpacademy/components 11.35.2-forcedeploy2.15 → 11.35.3-alpha.3

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 (294) 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 +17 -35
  5. package/es/atom/icon/index.d.ts.map +1 -1
  6. package/es/atom/icon/index.js +15 -32
  7. package/es/atom/icon/index.js.map +1 -1
  8. package/es/atom/radio-with-title/index.d.ts +3 -13
  9. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  10. package/es/atom/radio-with-title/types.d.ts +2 -13
  11. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  12. package/es/atom/status-item/index.native.js +1 -1
  13. package/es/atom/status-item/index.native.js.map +1 -1
  14. package/es/atom/tag/index.d.ts +1 -12
  15. package/es/atom/tag/style.css +0 -1
  16. package/es/atom/title/index.d.ts +2 -13
  17. package/es/molecule/banner/style.css +0 -1
  18. package/es/molecule/base-modal/style.css +1 -0
  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 +7 -28
  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 +0 -2
  29. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  30. package/es/molecule/icon-preview/index.d.ts.map +1 -1
  31. package/es/molecule/icon-preview/index.js +2 -1
  32. package/es/molecule/icon-preview/index.js.map +1 -1
  33. package/es/molecule/icon-preview/style.css +4 -0
  34. package/es/molecule/learner-skill-card/index.js +8 -10
  35. package/es/molecule/learner-skill-card/index.js.map +1 -1
  36. package/es/molecule/learner-skill-card/style.css +0 -1
  37. package/es/molecule/learning-priority-modal/style.css +2 -3
  38. package/es/molecule/progress-wrapper/index.js +1 -1
  39. package/es/molecule/progress-wrapper/index.js.map +1 -1
  40. package/es/molecule/skills-chart-side-information-item/index.d.ts +1 -1
  41. package/es/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
  42. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -13
  43. package/es/molecule/title-radio-wrapper/index.d.ts +3 -13
  44. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  45. package/es/molecule/title-radio-wrapper/types.d.ts +2 -13
  46. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  47. package/es/molecule/translation-modal/index.d.ts +1 -0
  48. package/es/molecule/translation-modal/index.d.ts.map +1 -1
  49. package/es/molecule/translation-modal/index.js +7 -24
  50. package/es/molecule/translation-modal/index.js.map +1 -1
  51. package/es/organism/cards-grid/index.d.ts +10 -48
  52. package/es/organism/cards-grid/index.d.ts.map +1 -1
  53. package/es/organism/cards-grid/index.js +2 -3
  54. package/es/organism/cards-grid/index.js.map +1 -1
  55. package/es/organism/content-skill-modal/index.d.ts +3 -13
  56. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  57. package/es/organism/content-skill-modal/types.d.ts +2 -12
  58. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  59. package/es/organism/header-with-actions/index.d.ts +22 -8
  60. package/es/organism/header-with-actions/index.d.ts.map +1 -1
  61. package/es/organism/header-with-actions/index.js +85 -7
  62. package/es/organism/header-with-actions/index.js.map +1 -1
  63. package/es/organism/header-with-actions/types.d.ts +44 -13
  64. package/es/organism/header-with-actions/types.d.ts.map +1 -1
  65. package/es/organism/header-with-actions/types.js +22 -6
  66. package/es/organism/header-with-actions/types.js.map +1 -1
  67. package/es/organism/list-item/index.js +5 -5
  68. package/es/organism/list-item/index.js.map +1 -1
  69. package/es/organism/list-item/style.css +17 -23
  70. package/es/organism/list-items/index.d.ts +2 -13
  71. package/es/organism/list-items/style.css +0 -1
  72. package/es/organism/rewards-form/index.d.ts +2 -13
  73. package/es/organism/select-opponents/index.d.ts +3 -13
  74. package/es/organism/select-opponents/index.d.ts.map +1 -1
  75. package/es/organism/select-opponents/types.d.ts +2 -13
  76. package/es/organism/select-opponents/types.d.ts.map +1 -1
  77. package/es/organism/sidebar/index.d.ts +2 -2
  78. package/es/organism/skill-edition/index.d.ts +52 -1261
  79. package/es/organism/skill-edition/index.d.ts.map +1 -1
  80. package/es/organism/skill-edition/index.js +224 -3
  81. package/es/organism/skill-edition/index.js.map +1 -1
  82. package/es/organism/skill-edition/types.d.ts +117 -1268
  83. package/es/organism/skill-edition/types.d.ts.map +1 -1
  84. package/es/organism/skill-edition/types.js +59 -7
  85. package/es/organism/skill-edition/types.js.map +1 -1
  86. package/es/organism/title-and-input/index.d.ts +5 -25
  87. package/es/organism/title-and-input/index.d.ts.map +1 -1
  88. package/es/organism/title-and-input/types.d.ts +4 -24
  89. package/es/organism/title-and-input/types.d.ts.map +1 -1
  90. package/es/organism/wizard-contents/index.d.ts +2 -13
  91. package/es/template/app-player/loading/index.d.ts +6 -27
  92. package/es/template/app-player/player/index.d.ts +12 -53
  93. package/es/template/app-player/player/slides/index.d.ts +6 -27
  94. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  95. package/es/template/app-player/popin-correction/index.d.ts +6 -26
  96. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  97. package/es/template/app-player/popin-end/index.d.ts +6 -27
  98. package/es/template/app-review/index.d.ts +7 -27
  99. package/es/template/app-review/index.d.ts.map +1 -1
  100. package/es/template/app-review/player/prop-types.d.ts +6 -27
  101. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  102. package/es/template/app-review/prop-types.d.ts +6 -27
  103. package/es/template/app-review/prop-types.d.ts.map +1 -1
  104. package/es/template/back-office/brand-update/index.d.ts +799 -1385
  105. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  106. package/es/template/back-office/brand-update/index.js +16 -2
  107. package/es/template/back-office/brand-update/index.js.map +1 -1
  108. package/es/template/back-office/brand-update/style.css +4 -1
  109. package/es/template/back-office/brand-update/utils.d.ts +39 -11
  110. package/es/template/back-office/brand-update/utils.js +19 -0
  111. package/es/template/back-office/brand-update/utils.js.map +1 -1
  112. package/es/template/common/dashboard/index.d.ts +12 -53
  113. package/es/template/common/search-page/index.d.ts +6 -27
  114. package/es/template/external-course/index.d.ts +6 -27
  115. package/es/template/skill-detail/all-courses.css +2 -3
  116. package/es/template/skill-detail/all-courses.d.ts +17 -52
  117. package/es/template/skill-detail/all-courses.d.ts.map +1 -1
  118. package/es/template/skill-detail/all-courses.js +11 -12
  119. package/es/template/skill-detail/all-courses.js.map +1 -1
  120. package/es/template/skill-detail/continue-learning.css +2 -7
  121. package/es/template/skill-detail/continue-learning.d.ts +12 -25
  122. package/es/template/skill-detail/continue-learning.d.ts.map +1 -1
  123. package/es/template/skill-detail/continue-learning.js.map +1 -1
  124. package/es/template/skill-detail/index.d.ts +71 -89
  125. package/es/template/skill-detail/index.d.ts.map +1 -1
  126. package/es/template/skill-detail/index.js +55 -95
  127. package/es/template/skill-detail/index.js.map +1 -1
  128. package/es/template/skill-detail/style.css +39 -97
  129. package/es/variables/colors.css +0 -2
  130. package/es/variables/colors.d.ts +2 -3
  131. package/es/variables/colors.d.ts.map +1 -1
  132. package/es/variables/colors.js +3 -4
  133. package/es/variables/colors.js.map +1 -1
  134. package/es/variables/theme.native.js +1 -1
  135. package/es/variables/theme.native.js.map +1 -1
  136. package/lib/atom/button-link/index.js +1 -1
  137. package/lib/atom/button-link/index.js.map +1 -1
  138. package/lib/atom/button-link/style.css +2 -2
  139. package/lib/atom/icon/index.d.ts +17 -35
  140. package/lib/atom/icon/index.d.ts.map +1 -1
  141. package/lib/atom/icon/index.js +18 -34
  142. package/lib/atom/icon/index.js.map +1 -1
  143. package/lib/atom/radio-with-title/index.d.ts +3 -13
  144. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  145. package/lib/atom/radio-with-title/types.d.ts +2 -13
  146. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  147. package/lib/atom/status-item/index.native.js +1 -1
  148. package/lib/atom/status-item/index.native.js.map +1 -1
  149. package/lib/atom/tag/index.d.ts +1 -12
  150. package/lib/atom/tag/style.css +0 -1
  151. package/lib/atom/title/index.d.ts +2 -13
  152. package/lib/molecule/banner/style.css +0 -1
  153. package/lib/molecule/base-modal/style.css +1 -0
  154. package/lib/molecule/bulk-progress-bar/index.js +2 -2
  155. package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
  156. package/lib/molecule/certification-card/index.js +1 -1
  157. package/lib/molecule/certification-card/index.js.map +1 -1
  158. package/lib/molecule/cm-popin/types.d.ts +7 -28
  159. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  160. package/lib/molecule/cm-popin/types.js +1 -1
  161. package/lib/molecule/cm-popin/types.js.map +1 -1
  162. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  163. package/lib/molecule/dashboard/cards-list/index.js +0 -2
  164. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  165. package/lib/molecule/icon-preview/index.d.ts.map +1 -1
  166. package/lib/molecule/icon-preview/index.js +2 -1
  167. package/lib/molecule/icon-preview/index.js.map +1 -1
  168. package/lib/molecule/icon-preview/style.css +4 -0
  169. package/lib/molecule/learner-skill-card/index.js +8 -10
  170. package/lib/molecule/learner-skill-card/index.js.map +1 -1
  171. package/lib/molecule/learner-skill-card/style.css +0 -1
  172. package/lib/molecule/learning-priority-modal/style.css +2 -3
  173. package/lib/molecule/progress-wrapper/index.js +1 -1
  174. package/lib/molecule/progress-wrapper/index.js.map +1 -1
  175. package/lib/molecule/skills-chart-side-information-item/index.d.ts +1 -1
  176. package/lib/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
  177. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -13
  178. package/lib/molecule/title-radio-wrapper/index.d.ts +3 -13
  179. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  180. package/lib/molecule/title-radio-wrapper/types.d.ts +2 -13
  181. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  182. package/lib/molecule/translation-modal/index.d.ts +1 -0
  183. package/lib/molecule/translation-modal/index.d.ts.map +1 -1
  184. package/lib/molecule/translation-modal/index.js +6 -23
  185. package/lib/molecule/translation-modal/index.js.map +1 -1
  186. package/lib/organism/cards-grid/index.d.ts +10 -48
  187. package/lib/organism/cards-grid/index.d.ts.map +1 -1
  188. package/lib/organism/cards-grid/index.js +2 -3
  189. package/lib/organism/cards-grid/index.js.map +1 -1
  190. package/lib/organism/content-skill-modal/index.d.ts +3 -13
  191. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  192. package/lib/organism/content-skill-modal/types.d.ts +2 -12
  193. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  194. package/lib/organism/header-with-actions/index.d.ts +22 -8
  195. package/lib/organism/header-with-actions/index.d.ts.map +1 -1
  196. package/lib/organism/header-with-actions/index.js +85 -7
  197. package/lib/organism/header-with-actions/index.js.map +1 -1
  198. package/lib/organism/header-with-actions/types.d.ts +44 -13
  199. package/lib/organism/header-with-actions/types.d.ts.map +1 -1
  200. package/lib/organism/header-with-actions/types.js +22 -6
  201. package/lib/organism/header-with-actions/types.js.map +1 -1
  202. package/lib/organism/list-item/index.js +5 -5
  203. package/lib/organism/list-item/index.js.map +1 -1
  204. package/lib/organism/list-item/style.css +17 -23
  205. package/lib/organism/list-items/index.d.ts +2 -13
  206. package/lib/organism/list-items/style.css +0 -1
  207. package/lib/organism/rewards-form/index.d.ts +2 -13
  208. package/lib/organism/select-opponents/index.d.ts +3 -13
  209. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  210. package/lib/organism/select-opponents/types.d.ts +2 -13
  211. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  212. package/lib/organism/sidebar/index.d.ts +2 -2
  213. package/lib/organism/skill-edition/index.d.ts +52 -1261
  214. package/lib/organism/skill-edition/index.d.ts.map +1 -1
  215. package/lib/organism/skill-edition/index.js +224 -3
  216. package/lib/organism/skill-edition/index.js.map +1 -1
  217. package/lib/organism/skill-edition/types.d.ts +117 -1268
  218. package/lib/organism/skill-edition/types.d.ts.map +1 -1
  219. package/lib/organism/skill-edition/types.js +59 -7
  220. package/lib/organism/skill-edition/types.js.map +1 -1
  221. package/lib/organism/title-and-input/index.d.ts +5 -25
  222. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  223. package/lib/organism/title-and-input/types.d.ts +4 -24
  224. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  225. package/lib/organism/wizard-contents/index.d.ts +2 -13
  226. package/lib/template/app-player/loading/index.d.ts +6 -27
  227. package/lib/template/app-player/player/index.d.ts +12 -53
  228. package/lib/template/app-player/player/slides/index.d.ts +6 -27
  229. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  230. package/lib/template/app-player/popin-correction/index.d.ts +6 -26
  231. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  232. package/lib/template/app-player/popin-end/index.d.ts +6 -27
  233. package/lib/template/app-review/index.d.ts +7 -27
  234. package/lib/template/app-review/index.d.ts.map +1 -1
  235. package/lib/template/app-review/player/prop-types.d.ts +6 -27
  236. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  237. package/lib/template/app-review/prop-types.d.ts +6 -27
  238. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  239. package/lib/template/back-office/brand-update/index.d.ts +799 -1385
  240. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  241. package/lib/template/back-office/brand-update/index.js +16 -2
  242. package/lib/template/back-office/brand-update/index.js.map +1 -1
  243. package/lib/template/back-office/brand-update/style.css +4 -1
  244. package/lib/template/back-office/brand-update/utils.d.ts +39 -11
  245. package/lib/template/back-office/brand-update/utils.js +19 -0
  246. package/lib/template/back-office/brand-update/utils.js.map +1 -1
  247. package/lib/template/common/dashboard/index.d.ts +12 -53
  248. package/lib/template/common/search-page/index.d.ts +6 -27
  249. package/lib/template/external-course/index.d.ts +6 -27
  250. package/lib/template/skill-detail/all-courses.css +2 -3
  251. package/lib/template/skill-detail/all-courses.d.ts +17 -52
  252. package/lib/template/skill-detail/all-courses.d.ts.map +1 -1
  253. package/lib/template/skill-detail/all-courses.js +11 -11
  254. package/lib/template/skill-detail/all-courses.js.map +1 -1
  255. package/lib/template/skill-detail/continue-learning.css +2 -7
  256. package/lib/template/skill-detail/continue-learning.d.ts +12 -25
  257. package/lib/template/skill-detail/continue-learning.d.ts.map +1 -1
  258. package/lib/template/skill-detail/continue-learning.js.map +1 -1
  259. package/lib/template/skill-detail/index.d.ts +71 -89
  260. package/lib/template/skill-detail/index.d.ts.map +1 -1
  261. package/lib/template/skill-detail/index.js +55 -95
  262. package/lib/template/skill-detail/index.js.map +1 -1
  263. package/lib/template/skill-detail/style.css +39 -97
  264. package/lib/variables/colors.css +0 -2
  265. package/lib/variables/colors.d.ts +2 -3
  266. package/lib/variables/colors.d.ts.map +1 -1
  267. package/lib/variables/colors.js +3 -4
  268. package/lib/variables/colors.js.map +1 -1
  269. package/lib/variables/theme.native.js +1 -1
  270. package/lib/variables/theme.native.js.map +1 -1
  271. package/locales/.mtslconfig.json +1 -0
  272. package/locales/bs/global.json +1 -0
  273. package/locales/de/global.json +1 -0
  274. package/locales/es/global.json +1 -0
  275. package/locales/et/global.json +1 -0
  276. package/locales/fi/global.json +1 -0
  277. package/locales/fr/global.json +1 -0
  278. package/locales/hu/global.json +1 -0
  279. package/locales/hy/global.json +1 -0
  280. package/locales/ja/global.json +1 -0
  281. package/locales/nl/global.json +1 -0
  282. package/locales/pl/global.json +1 -0
  283. package/locales/pt/global.json +1 -0
  284. package/locales/ro/global.json +1 -0
  285. package/locales/sk/global.json +1 -0
  286. package/locales/sl/global.json +1 -0
  287. package/locales/sv/global.json +1 -0
  288. package/locales/tl/global.json +1 -0
  289. package/locales/tr/global.json +1 -0
  290. package/locales/uk/global.json +1 -0
  291. package/locales/vi/global.json +1 -0
  292. package/locales/zh/global.json +1 -0
  293. package/locales/zh_TW/global.json +1 -0
  294. package/package.json +2 -2
@@ -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<PropTypes.ValidationMap<any>>>;
29
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
30
30
  tag: PropTypes.Requireable<PropTypes.InferProps<{
31
31
  label: PropTypes.Requireable<string>;
32
32
  type: PropTypes.Requireable<string>;
@@ -34,17 +34,7 @@ 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<{
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
- }>>;
37
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
48
38
  }>>;
49
39
  button: PropTypes.Requireable<PropTypes.InferProps<{
50
40
  type: PropTypes.Requireable<string>;
@@ -191,5 +181,4 @@ declare namespace TitleAndCheckBoxWrapper {
191
181
  }
192
182
  }
193
183
  import PropTypes from "prop-types";
194
- import React from "react";
195
184
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="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<import("prop-types").ValidationMap<any>>>;
14
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<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,17 +19,7 @@ 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<{
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
- }>>;
22
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
33
23
  }>>;
34
24
  button: import("prop-types").Requireable<import("prop-types").InferProps<{
35
25
  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":"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
+ {"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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from 'prop-types';
3
2
  import InputFileDraggable from '../../atom/input-file-draggable';
4
3
  import { RadioWithTitleProps } from '../../atom/radio-with-title/types';
@@ -12,7 +11,7 @@ declare const propTypes: {
12
11
  'data-name': PropTypes.Requireable<string>;
13
12
  titleSize: PropTypes.Requireable<string>;
14
13
  subtitleSize: PropTypes.Requireable<string>;
15
- icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
14
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
16
15
  tag: PropTypes.Requireable<PropTypes.InferProps<{
17
16
  label: PropTypes.Requireable<string>;
18
17
  type: PropTypes.Requireable<string>;
@@ -20,17 +19,7 @@ declare const propTypes: {
20
19
  customStyle: PropTypes.Requireable<{
21
20
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
22
21
  }>;
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
- }>>;
22
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
34
23
  }>>;
35
24
  button: PropTypes.Requireable<PropTypes.InferProps<{
36
25
  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"}
@@ -9,6 +9,7 @@ declare namespace TranslationModal {
9
9
  const onCancel: PropTypes.Requireable<(...args: any[]) => any>;
10
10
  const onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
11
11
  const onClose: PropTypes.Requireable<(...args: any[]) => any>;
12
+ const disabled: PropTypes.Requireable<boolean>;
12
13
  const source: PropTypes.Requireable<PropTypes.InferProps<{
13
14
  inputText: PropTypes.Requireable<PropTypes.InferProps<{
14
15
  theme: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/translation-modal/index.js"],"names":[],"mappings":";AAmBA,gFAoGC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/translation-modal/index.js"],"names":[],"mappings":";AAmBA,gFA8EC"}
@@ -1,5 +1,5 @@
1
1
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import React, { useMemo, useCallback, useState } from 'react';
2
+ import React, { useMemo, useCallback } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import BaseModal from '../base-modal';
5
5
  import Provider from '../../atom/provider';
@@ -29,6 +29,7 @@ const TranslationModal = (props, context) => {
29
29
  onCancel,
30
30
  onConfirm,
31
31
  onClose,
32
+ disabled = false,
32
33
  source: {
33
34
  inputText: sourceInputText,
34
35
  textArea: sourceTextArea,
@@ -45,23 +46,12 @@ const TranslationModal = (props, context) => {
45
46
  translate
46
47
  } = context;
47
48
  const detectScrollbar = true;
48
- const [inputValue, setInputValue] = useState(targetInputText?.value || '');
49
- const [textAreaValue, setTextAreaValue] = useState(targetTextArea?.value || '');
50
49
  const handleCancel = useCallback(() => {
51
50
  onCancel();
52
51
  }, [onCancel]);
53
52
  const handleClose = useCallback(() => {
54
53
  onClose();
55
54
  }, [onClose]);
56
- const handleInputChange = useCallback(e => {
57
- setInputValue(e.target.value);
58
- }, []);
59
- const handleTextAreaChange = useCallback(e => {
60
- setTextAreaValue(e.target.value);
61
- }, []);
62
- const isConfirmDisabled = useMemo(() => {
63
- return !inputValue.trim() || !textAreaValue.trim();
64
- }, [inputValue, textAreaValue]);
65
55
  const footer = useMemo(() => {
66
56
  const cancelButton = {
67
57
  onCancel: handleCancel,
@@ -74,12 +64,12 @@ const TranslationModal = (props, context) => {
74
64
  onConfirm,
75
65
  label: translate('confirm'),
76
66
  iconName: 'plus',
77
- disabled: isConfirmDisabled,
67
+ disabled,
78
68
  color: COLORS.cm_primary_blue
79
69
  }
80
70
  })
81
71
  };
82
- }, [handleCancel, onConfirm, translate, isConfirmDisabled, readOnly]);
72
+ }, [handleCancel, onConfirm, translate, readOnly, disabled]);
83
73
  if (!isOpen) return null;
84
74
  return /*#__PURE__*/React.createElement(BaseModal, {
85
75
  title: translate('translation_title'),
@@ -105,16 +95,8 @@ const TranslationModal = (props, context) => {
105
95
  className: style.separator
106
96
  }), renderInputGroup({
107
97
  title: outputLanguage,
108
- inputProps: {
109
- ...targetInputText,
110
- value: inputValue,
111
- onChange: handleInputChange
112
- },
113
- textAreaProps: {
114
- ...targetTextArea,
115
- value: textAreaValue,
116
- onChange: handleTextAreaChange
117
- },
98
+ inputProps: targetInputText,
99
+ textAreaProps: targetTextArea,
118
100
  disabled: readOnly
119
101
  }))));
120
102
  };
@@ -126,6 +108,7 @@ TranslationModal.propTypes = process.env.NODE_ENV !== "production" ? {
126
108
  onCancel: PropTypes.func,
127
109
  onConfirm: PropTypes.func,
128
110
  onClose: PropTypes.func,
111
+ disabled: PropTypes.bool,
129
112
  source: PropTypes.shape({
130
113
  inputText: PropTypes.shape({
131
114
  ...InputText.propTypes,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useMemo","useCallback","useState","PropTypes","BaseModal","Provider","COLORS","InputText","TextArea","style","renderInputGroup","title","inputProps","textAreaProps","disabled","createElement","className","inputGroup","_extends","TranslationModal","props","context","isOpen","onCancel","onConfirm","onClose","source","inputText","sourceInputText","textArea","sourceTextArea","inputLanguage","target","targetInputText","targetTextArea","language","outputLanguage","readOnly","translate","detectScrollbar","inputValue","setInputValue","value","textAreaValue","setTextAreaValue","handleCancel","handleClose","handleInputChange","e","handleTextAreaChange","isConfirmDisabled","trim","footer","cancelButton","label","confirmButton","iconName","color","cm_primary_blue","description","headerIcon","name","backgroundColor","translationModal","horizontalSection","separator","onChange","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","bool","func","shape","theme","string"],"sources":["../../../src/molecule/translation-modal/index.js"],"sourcesContent":["import React, {useMemo, useCallback, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport BaseModal from '../base-modal';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport InputText from '../../atom/input-text';\nimport TextArea from '../../atom/input-textarea';\nimport style from './style.css';\n\nconst renderInputGroup = ({title, inputProps, textAreaProps, disabled}) => {\n return (\n <div className={style.inputGroup}>\n <div className={style.title}>{title}</div>\n <InputText {...inputProps} disabled={disabled} />\n <TextArea {...textAreaProps} disabled={disabled} />\n </div>\n );\n};\n\nconst TranslationModal = (props, context) => {\n const {\n isOpen,\n onCancel,\n onConfirm,\n onClose,\n source: {inputText: sourceInputText, textArea: sourceTextArea, inputLanguage},\n target: {inputText: targetInputText, textArea: targetTextArea, language: outputLanguage},\n readOnly = false\n } = props;\n const {translate} = context;\n\n const detectScrollbar = true;\n\n const [inputValue, setInputValue] = useState(targetInputText?.value || '');\n const [textAreaValue, setTextAreaValue] = useState(targetTextArea?.value || '');\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const handleInputChange = useCallback(e => {\n setInputValue(e.target.value);\n }, []);\n\n const handleTextAreaChange = useCallback(e => {\n setTextAreaValue(e.target.value);\n }, []);\n\n const isConfirmDisabled = useMemo(() => {\n return !inputValue.trim() || !textAreaValue.trim();\n }, [inputValue, textAreaValue]);\n\n const footer = useMemo(() => {\n const cancelButton = {\n onCancel: handleCancel,\n label: translate(readOnly ? 'close' : 'cancel')\n };\n return {\n cancelButton,\n ...(!readOnly && {\n confirmButton: {\n onConfirm,\n label: translate('confirm'),\n iconName: 'plus',\n disabled: isConfirmDisabled,\n color: COLORS.cm_primary_blue\n }\n })\n };\n }, [handleCancel, onConfirm, translate, isConfirmDisabled, readOnly]);\n\n if (!isOpen) return null;\n\n return (\n <BaseModal\n title={translate('translation_title')}\n description={translate('translation_description')}\n isOpen={isOpen}\n onClose={handleClose}\n footer={footer}\n headerIcon={{\n name: 'language',\n backgroundColor: '#D6E6FF'\n }}\n detectScrollbar={detectScrollbar}\n >\n <div className={style.translationModal}>\n <div className={style.horizontalSection}>\n {renderInputGroup({\n title: inputLanguage,\n inputProps: sourceInputText,\n textAreaProps: sourceTextArea,\n disabled: true\n })}\n\n <div className={style.separator} />\n\n {renderInputGroup({\n title: outputLanguage,\n inputProps: {\n ...targetInputText,\n value: inputValue,\n onChange: handleInputChange\n },\n textAreaProps: {\n ...targetTextArea,\n value: textAreaValue,\n onChange: handleTextAreaChange\n },\n disabled: readOnly\n })}\n </div>\n </div>\n </BaseModal>\n );\n};\n\nTranslationModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nTranslationModal.propTypes = {\n isOpen: PropTypes.bool,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func,\n source: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n inputLanguage: PropTypes.string\n }),\n target: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n language: PropTypes.string\n }),\n readOnly: PropTypes.bool\n};\n\nexport default TranslationModal;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,OAAO,EAAEC,WAAW,EAAEC,QAAQ,QAAO,OAAO;AAC3D,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,QAAQ,MAAM,2BAA2B;AAChD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,gBAAgB,GAAGA,CAAC;EAACC,KAAK;EAAEC,UAAU;EAAEC,aAAa;EAAEC;AAAQ,CAAC,KAAK;EACzE,oBACEf,KAAA,CAAAgB,aAAA;IAAKC,SAAS,EAAEP,KAAK,CAACQ;EAAW,gBAC/BlB,KAAA,CAAAgB,aAAA;IAAKC,SAAS,EAAEP,KAAK,CAACE;EAAM,GAAEA,KAAW,CAAC,eAC1CZ,KAAA,CAAAgB,aAAA,CAACR,SAAS,EAAAW,QAAA,KAAKN,UAAU;IAAE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AE1B,SAAS,CAACwE,KAAK,CAAC;MACxB,GAAGnE,QAAQ,CAAC6D,SAAS;MACrBO,KAAK,EAAEzE,SAAS,CAAC0E;IACnB,CAAC,CAAC;IACF9C,aAAa,EAAE5B,SAAS,CAAC0E;EAC3B,CAAC,CAAC;EACF7C,MAAM,EAAE7B,SAAS,CAACwE,KAAK,CAAC;IACtBhD,SAAS,EAAExB,SAAS,CAACwE,KAAK,CAAC;MACzB,GAAGpE,SAAS,CAAC8D,SAAS;MACtBO,KAAK,EAAEzE,SAAS,CAAC0E;IACnB,CAAC,CAAC;IACFhD,QAAQ,EAAE1B,SAAS,CAACwE,KAAK,CAAC;MACxB,GAAGnE,QAAQ,CAAC6D,SAAS;MACrBO,KAAK,EAAEzE,SAAS,CAAC0E;IACnB,CAAC,CAAC;IACF1C,QAAQ,EAAEhC,SAAS,CAAC0E;EACtB,CAAC,CAAC;EACFxC,QAAQ,EAAElC,SAAS,CAACsE;AACtB,CAAC;AAED,eAAetD,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","useMemo","useCallback","PropTypes","BaseModal","Provider","COLORS","InputText","TextArea","style","renderInputGroup","title","inputProps","textAreaProps","disabled","createElement","className","inputGroup","_extends","TranslationModal","props","context","isOpen","onCancel","onConfirm","onClose","source","inputText","sourceInputText","textArea","sourceTextArea","inputLanguage","target","targetInputText","targetTextArea","language","outputLanguage","readOnly","translate","detectScrollbar","handleCancel","handleClose","footer","cancelButton","label","confirmButton","iconName","color","cm_primary_blue","description","headerIcon","name","backgroundColor","translationModal","horizontalSection","separator","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","bool","func","shape","theme","string"],"sources":["../../../src/molecule/translation-modal/index.js"],"sourcesContent":["import React, {useMemo, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport BaseModal from '../base-modal';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport InputText from '../../atom/input-text';\nimport TextArea from '../../atom/input-textarea';\nimport style from './style.css';\n\nconst renderInputGroup = ({title, inputProps, textAreaProps, disabled}) => {\n return (\n <div className={style.inputGroup}>\n <div className={style.title}>{title}</div>\n <InputText {...inputProps} disabled={disabled} />\n <TextArea {...textAreaProps} disabled={disabled} />\n </div>\n );\n};\n\nconst TranslationModal = (props, context) => {\n const {\n isOpen,\n onCancel,\n onConfirm,\n onClose,\n disabled = false,\n source: {inputText: sourceInputText, textArea: sourceTextArea, inputLanguage},\n target: {inputText: targetInputText, textArea: targetTextArea, language: outputLanguage},\n readOnly = false\n } = props;\n const {translate} = context;\n\n const detectScrollbar = true;\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const footer = useMemo(() => {\n const cancelButton = {\n onCancel: handleCancel,\n label: translate(readOnly ? 'close' : 'cancel')\n };\n return {\n cancelButton,\n ...(!readOnly && {\n confirmButton: {\n onConfirm,\n label: translate('confirm'),\n iconName: 'plus',\n disabled,\n color: COLORS.cm_primary_blue\n }\n })\n };\n }, [handleCancel, onConfirm, translate, readOnly, disabled]);\n\n if (!isOpen) return null;\n\n return (\n <BaseModal\n title={translate('translation_title')}\n description={translate('translation_description')}\n isOpen={isOpen}\n onClose={handleClose}\n footer={footer}\n headerIcon={{\n name: 'language',\n backgroundColor: '#D6E6FF'\n }}\n detectScrollbar={detectScrollbar}\n >\n <div className={style.translationModal}>\n <div className={style.horizontalSection}>\n {renderInputGroup({\n title: inputLanguage,\n inputProps: sourceInputText,\n textAreaProps: sourceTextArea,\n disabled: true\n })}\n\n <div className={style.separator} />\n\n {renderInputGroup({\n title: outputLanguage,\n inputProps: targetInputText,\n textAreaProps: targetTextArea,\n disabled: readOnly\n })}\n </div>\n </div>\n </BaseModal>\n );\n};\n\nTranslationModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nTranslationModal.propTypes = {\n isOpen: PropTypes.bool,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func,\n disabled: PropTypes.bool,\n source: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n inputLanguage: PropTypes.string\n }),\n target: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n language: PropTypes.string\n }),\n readOnly: PropTypes.bool\n};\n\nexport default TranslationModal;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,OAAO,EAAEC,WAAW,QAAO,OAAO;AACjD,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,QAAQ,MAAM,2BAA2B;AAChD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,gBAAgB,GAAGA,CAAC;EAACC,KAAK;EAAEC,UAAU;EAAEC,aAAa;EAAEC;AAAQ,CAAC,KAAK;EACzE,oBACEd,KAAA,CAAAe,aAAA;IAAKC,SAAS,EAAEP,KAAK,CAACQ;EAAW,gBAC/BjB,KAAA,CAAAe,aAAA;IAAKC,SAAS,EAAEP,KAAK,CAACE;EAAM,GAAEA,KAAW,CAAC,eAC1CX,KAAA,CAAAe,aAAA,CAACR,SAAS,EAAAW,QAAA,KAAKN,UAAU;IAAEE,QAAQ,EAAEA;EAAS,EAAE,CAAC,eACjDd,KAAA,CAAAe,aAAA,CAACP,QAAQ,EAAAU,QAAA,KAAKL,aAAa;IAAEC,QAAQ,EAAEA;EAAS,EAAE,CAC/C,CAAC;AAEV,CAAC;AAED,MAAMK,gBAAgB,GAAGA,CAACC,KAAK,EAAEC,OAAO,KAAK;EAC3C,MAAM;IACJC,MAAM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AM,EAAEvB,SAAS,CAAC6D,KAAK,CAAC;IACtBrC,SAAS,EAAExB,SAAS,CAAC6D,KAAK,CAAC;MACzB,GAAGzD,SAAS,CAACmD,SAAS;MACtBO,KAAK,EAAE9D,SAAS,CAAC+D;IACnB,CAAC,CAAC;IACFrC,QAAQ,EAAE1B,SAAS,CAAC6D,KAAK,CAAC;MACxB,GAAGxD,QAAQ,CAACkD,SAAS;MACrBO,KAAK,EAAE9D,SAAS,CAAC+D;IACnB,CAAC,CAAC;IACFnC,aAAa,EAAE5B,SAAS,CAAC+D;EAC3B,CAAC,CAAC;EACFlC,MAAM,EAAE7B,SAAS,CAAC6D,KAAK,CAAC;IACtBrC,SAAS,EAAExB,SAAS,CAAC6D,KAAK,CAAC;MACzB,GAAGzD,SAAS,CAACmD,SAAS;MACtBO,KAAK,EAAE9D,SAAS,CAAC+D;IACnB,CAAC,CAAC;IACFrC,QAAQ,EAAE1B,SAAS,CAAC6D,KAAK,CAAC;MACxB,GAAGxD,QAAQ,CAACkD,SAAS;MACrBO,KAAK,EAAE9D,SAAS,CAAC+D;IACnB,CAAC,CAAC;IACF/B,QAAQ,EAAEhC,SAAS,CAAC+D;EACtB,CAAC,CAAC;EACF7B,QAAQ,EAAElC,SAAS,CAAC2D;AACtB,CAAC;AAED,eAAe3C,gBAAgB","ignoreList":[]}
@@ -1,51 +1,13 @@
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<{
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<{
45
7
  [x: string]: string | null | undefined;
46
8
  }>;
47
- loading: PropTypes.Requireable<boolean>;
48
- };
49
- };
50
- export default CardsGrid;
9
+ const loading: PropTypes.Requireable<boolean>;
10
+ }
11
+ }
12
+ import PropTypes from "prop-types";
51
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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,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CAuBvC,CAAC;AASF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/cards-grid/index.js"],"names":[],"mappings":";AAOA,oDAuBC"}
@@ -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
- const CardsGrid = props => {
7
+ function CardsGrid(props) {
8
8
  const {
9
9
  list = [],
10
10
  customStyle = {},
@@ -24,9 +24,8 @@ const 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
30
29
  list: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),
31
30
  customStyle: PropTypes.objectOf(PropTypes.string),
32
31
  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.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
+ {"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,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="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<import("prop-types").ValidationMap<any>>>;
411
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<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,17 +416,7 @@ 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<{
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
- }>>;
419
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
430
420
  }>>;
431
421
  button: import("prop-types").Requireable<import("prop-types").InferProps<{
432
422
  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":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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<PropTypes.ValidationMap<any>>>;
408
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
409
409
  tag: PropTypes.Requireable<PropTypes.InferProps<{
410
410
  label: PropTypes.Requireable<string>;
411
411
  type: PropTypes.Requireable<string>;
@@ -413,17 +413,7 @@ 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<{
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
- }>>;
416
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
427
417
  }>>;
428
418
  button: PropTypes.Requireable<PropTypes.InferProps<{
429
419
  type: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAStD,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,UAAU,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,10 +4,7 @@ declare const HeaderWithActions: {
4
4
  (props: HeaderWithActionsProps): JSX.Element;
5
5
  propTypes: {
6
6
  closeButton: import("prop-types").Requireable<import("prop-types").InferProps<{
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>;
7
+ 'aria-label': import("prop-types").Requireable<string>;
11
8
  onClick: import("prop-types").Validator<(...args: any[]) => any>;
12
9
  }>>;
13
10
  title: import("prop-types").Validator<string>;
@@ -20,7 +17,7 @@ declare const HeaderWithActions: {
20
17
  display: import("prop-types").Validator<boolean>;
21
18
  label: import("prop-types").Requireable<string>;
22
19
  }>>>;
23
- bulletPointMenuButton: import("prop-types").Requireable<import("prop-types").InferProps<{
20
+ bulletPointMenuButtonPropTypes: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
24
21
  'data-name': import("prop-types").Requireable<string>;
25
22
  disabled: import("prop-types").Requireable<boolean>;
26
23
  buttonAriaLabel: import("prop-types").Requireable<string>;
@@ -53,8 +50,18 @@ declare const HeaderWithActions: {
53
50
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
54
51
  menuButtonClassName: import("prop-types").Requireable<string>;
55
52
  isBulkMenu: import("prop-types").Requireable<boolean>;
56
- }>>;
57
- actionButtons: import("prop-types").Validator<(import("prop-types").InferProps<{
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<{
58
65
  type: import("prop-types").Requireable<string>;
59
66
  usage: import("prop-types").Requireable<string>;
60
67
  label: import("prop-types").Requireable<string>;
@@ -90,7 +97,14 @@ declare const HeaderWithActions: {
90
97
  customStyle: import("prop-types").Requireable<{
91
98
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
92
99
  }>;
93
- }> | null | undefined)[]>;
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>>>;
94
108
  };
95
109
  };
96
110
  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,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAO3E,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvD,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,EACjC,sBAAsB,EAGvB,MAAM,SAAS,CAAC;AAsEjB,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}