@coorpacademy/components 11.40.4 → 11.40.6-alpha.5

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 (309) hide show
  1. package/es/atom/button-link/index.d.ts +15 -8
  2. package/es/atom/button-link/index.d.ts.map +1 -1
  3. package/es/atom/button-link/index.js +75 -37
  4. package/es/atom/button-link/index.js.map +1 -1
  5. package/es/atom/button-link/types.d.ts +20 -14
  6. package/es/atom/button-link/types.d.ts.map +1 -1
  7. package/es/atom/button-link/types.js +4 -3
  8. package/es/atom/button-link/types.js.map +1 -1
  9. package/es/atom/button-menu/index.d.ts +1 -3
  10. package/es/atom/button-menu/index.d.ts.map +1 -1
  11. package/es/atom/button-menu/index.js +1 -7
  12. package/es/atom/button-menu/index.js.map +1 -1
  13. package/es/atom/button-menu/types.d.ts +2 -6
  14. package/es/atom/button-menu/types.d.ts.map +1 -1
  15. package/es/atom/chip/index.d.ts +4 -0
  16. package/es/atom/chip/index.d.ts.map +1 -1
  17. package/es/atom/chip/index.js +12 -6
  18. package/es/atom/chip/index.js.map +1 -1
  19. package/es/atom/input-switch/index.d.ts.map +1 -1
  20. package/es/atom/input-switch/index.js +2 -1
  21. package/es/atom/input-switch/index.js.map +1 -1
  22. package/es/atom/input-switch/style.css +4 -1
  23. package/es/atom/radio-with-title/index.d.ts +16 -8
  24. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  25. package/es/atom/radio-with-title/types.d.ts +16 -8
  26. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  27. package/es/atom/title/index.d.ts +16 -8
  28. package/es/atom/title/index.d.ts.map +1 -1
  29. package/es/atom/title/index.js +5 -2
  30. package/es/atom/title/index.js.map +1 -1
  31. package/es/molecule/base-modal/index.d.ts +1 -0
  32. package/es/molecule/base-modal/index.d.ts.map +1 -1
  33. package/es/molecule/base-modal/index.js +6 -2
  34. package/es/molecule/base-modal/index.js.map +1 -1
  35. package/es/molecule/base-modal/style.css +5 -0
  36. package/es/molecule/bullet-point-menu-button/index.d.ts +1 -3
  37. package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
  38. package/es/molecule/bullet-point-menu-button/types.d.ts +1 -3
  39. package/es/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
  40. package/es/molecule/button-menu-action/index.d.ts +19 -11
  41. package/es/molecule/button-menu-action/index.d.ts.map +1 -1
  42. package/es/molecule/button-menu-action/index.js +27 -3
  43. package/es/molecule/button-menu-action/index.js.map +1 -1
  44. package/es/molecule/button-menu-action/types.d.ts +22 -12
  45. package/es/molecule/button-menu-action/types.d.ts.map +1 -1
  46. package/es/molecule/button-menu-action/types.js +7 -2
  47. package/es/molecule/button-menu-action/types.js.map +1 -1
  48. package/es/molecule/cm-popin/types.d.ts +135 -85
  49. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  50. package/es/molecule/expandible-actionable-table/index.d.ts +17 -14
  51. package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  52. package/es/molecule/expandible-actionable-table/types.d.ts +17 -14
  53. package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  54. package/es/molecule/icon-picker-modal/index.d.ts +1 -2
  55. package/es/molecule/icon-picker-modal/index.d.ts.map +1 -1
  56. package/es/molecule/icon-picker-modal/index.js +16 -43
  57. package/es/molecule/icon-picker-modal/index.js.map +1 -1
  58. package/es/molecule/multi-filter-panel/index.d.ts +19 -0
  59. package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
  60. package/es/molecule/multi-filter-panel/index.js +39 -10
  61. package/es/molecule/multi-filter-panel/index.js.map +1 -1
  62. package/es/molecule/multi-filter-panel/prop-types.d.ts +26 -1
  63. package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  64. package/es/molecule/multi-filter-panel/prop-types.js +5 -0
  65. package/es/molecule/multi-filter-panel/prop-types.js.map +1 -1
  66. package/es/molecule/multi-filter-panel/style.css +8 -0
  67. package/es/molecule/quick-filters/index.d.ts +15 -8
  68. package/es/molecule/quick-filters/index.d.ts.map +1 -1
  69. package/es/molecule/quick-filters/types.d.ts +15 -8
  70. package/es/molecule/quick-filters/types.d.ts.map +1 -1
  71. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +16 -8
  72. package/es/molecule/title-radio-wrapper/index.d.ts +16 -8
  73. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  74. package/es/molecule/title-radio-wrapper/types.d.ts +16 -8
  75. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  76. package/es/organism/content-skill-modal/index.d.ts +135 -68
  77. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  78. package/es/organism/content-skill-modal/types.d.ts +135 -68
  79. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  80. package/es/organism/filter-checkbox-and-search/index.d.ts +1 -0
  81. package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  82. package/es/organism/filter-checkbox-and-search/index.js +5 -2
  83. package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
  84. package/es/organism/filter-checkbox-and-search/props-types.d.ts +2 -0
  85. package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  86. package/es/organism/filter-checkbox-and-search/props-types.js +1 -0
  87. package/es/organism/filter-checkbox-and-search/props-types.js.map +1 -1
  88. package/es/organism/filter-checkbox-and-search/style.css +2 -0
  89. package/es/organism/filter-chip/index.d.ts +3 -0
  90. package/es/organism/filter-chip/index.d.ts.map +1 -1
  91. package/es/organism/filter-chip/index.js +12 -4
  92. package/es/organism/filter-chip/index.js.map +1 -1
  93. package/es/organism/filter-chip/prop-types.d.ts +14 -7
  94. package/es/organism/filter-chip/prop-types.d.ts.map +1 -1
  95. package/es/organism/filter-chip/prop-types.js +3 -0
  96. package/es/organism/filter-chip/prop-types.js.map +1 -1
  97. package/es/organism/filter-switch/index.d.ts +23 -0
  98. package/es/organism/filter-switch/index.d.ts.map +1 -0
  99. package/es/organism/filter-switch/index.js +76 -0
  100. package/es/organism/filter-switch/index.js.map +1 -0
  101. package/es/organism/filter-switch/prop-types.d.ts +28 -0
  102. package/es/organism/filter-switch/prop-types.d.ts.map +1 -0
  103. package/es/organism/filter-switch/prop-types.js +15 -0
  104. package/es/organism/filter-switch/prop-types.js.map +1 -0
  105. package/es/organism/filter-switch/style.css +46 -0
  106. package/es/organism/icon-editor/index.d.ts +15 -8
  107. package/es/organism/icon-editor/index.d.ts.map +1 -1
  108. package/es/organism/icon-editor/types.d.ts +15 -8
  109. package/es/organism/icon-editor/types.d.ts.map +1 -1
  110. package/es/organism/list-items/index.d.ts +116 -68
  111. package/es/organism/rewards-form/index.d.ts +16 -8
  112. package/es/organism/select-opponents/index.d.ts +16 -8
  113. package/es/organism/select-opponents/index.d.ts.map +1 -1
  114. package/es/organism/select-opponents/types.d.ts +16 -8
  115. package/es/organism/select-opponents/types.d.ts.map +1 -1
  116. package/es/organism/setup-header/index.d.ts +60 -32
  117. package/es/organism/title-and-input/index.d.ts +47 -24
  118. package/es/organism/title-and-input/index.d.ts.map +1 -1
  119. package/es/organism/title-and-input/types.d.ts +47 -24
  120. package/es/organism/title-and-input/types.d.ts.map +1 -1
  121. package/es/organism/wizard-contents/index.d.ts +63 -38
  122. package/es/template/app-player/loading/index.d.ts +135 -85
  123. package/es/template/app-player/player/index.d.ts +278 -170
  124. package/es/template/app-player/player/slides/header/index.d.ts +8 -0
  125. package/es/template/app-player/player/slides/header/index.d.ts.map +1 -1
  126. package/es/template/app-player/player/slides/header/index.js +89 -3
  127. package/es/template/app-player/player/slides/header/index.js.map +1 -1
  128. package/es/template/app-player/player/slides/header/style.css +1 -1
  129. package/es/template/app-player/player/slides/index.d.ts +143 -85
  130. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  131. package/es/template/app-player/popin-correction/index.d.ts +135 -85
  132. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  133. package/es/template/app-player/popin-end/index.d.ts +143 -85
  134. package/es/template/app-review/index.d.ts +135 -85
  135. package/es/template/app-review/index.d.ts.map +1 -1
  136. package/es/template/app-review/player/prop-types.d.ts +135 -85
  137. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  138. package/es/template/app-review/prop-types.d.ts +135 -85
  139. package/es/template/app-review/prop-types.d.ts.map +1 -1
  140. package/es/template/back-office/brand-create/index.d.ts +60 -32
  141. package/es/template/back-office/brand-create/index.d.ts.map +1 -1
  142. package/es/template/back-office/brand-list/index.d.ts +60 -32
  143. package/es/template/back-office/brand-list/index.d.ts.map +1 -1
  144. package/es/template/back-office/brand-update/index.d.ts +599 -298
  145. package/es/template/back-office/dashboard-preview/index.d.ts +60 -32
  146. package/es/template/back-office/layout/index.d.ts +60 -32
  147. package/es/template/back-office/layout/index.d.ts.map +1 -1
  148. package/es/template/common/dashboard/index.d.ts +270 -170
  149. package/es/template/common/search-page/index.d.ts +135 -85
  150. package/es/template/external-course/index.d.ts +135 -85
  151. package/es/variables/colors.d.ts +1 -0
  152. package/es/variables/colors.d.ts.map +1 -1
  153. package/es/variables/colors.js +1 -0
  154. package/es/variables/colors.js.map +1 -1
  155. package/lib/atom/button-link/index.d.ts +15 -8
  156. package/lib/atom/button-link/index.d.ts.map +1 -1
  157. package/lib/atom/button-link/index.js +75 -37
  158. package/lib/atom/button-link/index.js.map +1 -1
  159. package/lib/atom/button-link/types.d.ts +20 -14
  160. package/lib/atom/button-link/types.d.ts.map +1 -1
  161. package/lib/atom/button-link/types.js +4 -3
  162. package/lib/atom/button-link/types.js.map +1 -1
  163. package/lib/atom/button-menu/index.d.ts +1 -3
  164. package/lib/atom/button-menu/index.d.ts.map +1 -1
  165. package/lib/atom/button-menu/index.js +1 -7
  166. package/lib/atom/button-menu/index.js.map +1 -1
  167. package/lib/atom/button-menu/types.d.ts +2 -6
  168. package/lib/atom/button-menu/types.d.ts.map +1 -1
  169. package/lib/atom/chip/index.d.ts +4 -0
  170. package/lib/atom/chip/index.d.ts.map +1 -1
  171. package/lib/atom/chip/index.js +12 -6
  172. package/lib/atom/chip/index.js.map +1 -1
  173. package/lib/atom/input-switch/index.d.ts.map +1 -1
  174. package/lib/atom/input-switch/index.js +2 -1
  175. package/lib/atom/input-switch/index.js.map +1 -1
  176. package/lib/atom/input-switch/style.css +4 -1
  177. package/lib/atom/radio-with-title/index.d.ts +16 -8
  178. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  179. package/lib/atom/radio-with-title/types.d.ts +16 -8
  180. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  181. package/lib/atom/title/index.d.ts +16 -8
  182. package/lib/atom/title/index.d.ts.map +1 -1
  183. package/lib/atom/title/index.js +5 -2
  184. package/lib/atom/title/index.js.map +1 -1
  185. package/lib/molecule/base-modal/index.d.ts +1 -0
  186. package/lib/molecule/base-modal/index.d.ts.map +1 -1
  187. package/lib/molecule/base-modal/index.js +6 -2
  188. package/lib/molecule/base-modal/index.js.map +1 -1
  189. package/lib/molecule/base-modal/style.css +5 -0
  190. package/lib/molecule/bullet-point-menu-button/index.d.ts +1 -3
  191. package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
  192. package/lib/molecule/bullet-point-menu-button/types.d.ts +1 -3
  193. package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
  194. package/lib/molecule/button-menu-action/index.d.ts +19 -11
  195. package/lib/molecule/button-menu-action/index.d.ts.map +1 -1
  196. package/lib/molecule/button-menu-action/index.js +26 -2
  197. package/lib/molecule/button-menu-action/index.js.map +1 -1
  198. package/lib/molecule/button-menu-action/types.d.ts +22 -12
  199. package/lib/molecule/button-menu-action/types.d.ts.map +1 -1
  200. package/lib/molecule/button-menu-action/types.js +7 -2
  201. package/lib/molecule/button-menu-action/types.js.map +1 -1
  202. package/lib/molecule/cm-popin/types.d.ts +135 -85
  203. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  204. package/lib/molecule/expandible-actionable-table/index.d.ts +17 -14
  205. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  206. package/lib/molecule/expandible-actionable-table/types.d.ts +17 -14
  207. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  208. package/lib/molecule/icon-picker-modal/index.d.ts +1 -2
  209. package/lib/molecule/icon-picker-modal/index.d.ts.map +1 -1
  210. package/lib/molecule/icon-picker-modal/index.js +16 -43
  211. package/lib/molecule/icon-picker-modal/index.js.map +1 -1
  212. package/lib/molecule/multi-filter-panel/index.d.ts +19 -0
  213. package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
  214. package/lib/molecule/multi-filter-panel/index.js +39 -9
  215. package/lib/molecule/multi-filter-panel/index.js.map +1 -1
  216. package/lib/molecule/multi-filter-panel/prop-types.d.ts +26 -1
  217. package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  218. package/lib/molecule/multi-filter-panel/prop-types.js +5 -0
  219. package/lib/molecule/multi-filter-panel/prop-types.js.map +1 -1
  220. package/lib/molecule/multi-filter-panel/style.css +8 -0
  221. package/lib/molecule/quick-filters/index.d.ts +15 -8
  222. package/lib/molecule/quick-filters/index.d.ts.map +1 -1
  223. package/lib/molecule/quick-filters/types.d.ts +15 -8
  224. package/lib/molecule/quick-filters/types.d.ts.map +1 -1
  225. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +16 -8
  226. package/lib/molecule/title-radio-wrapper/index.d.ts +16 -8
  227. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  228. package/lib/molecule/title-radio-wrapper/types.d.ts +16 -8
  229. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  230. package/lib/organism/content-skill-modal/index.d.ts +135 -68
  231. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  232. package/lib/organism/content-skill-modal/types.d.ts +135 -68
  233. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  234. package/lib/organism/filter-checkbox-and-search/index.d.ts +1 -0
  235. package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  236. package/lib/organism/filter-checkbox-and-search/index.js +5 -2
  237. package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
  238. package/lib/organism/filter-checkbox-and-search/props-types.d.ts +2 -0
  239. package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  240. package/lib/organism/filter-checkbox-and-search/props-types.js +1 -0
  241. package/lib/organism/filter-checkbox-and-search/props-types.js.map +1 -1
  242. package/lib/organism/filter-checkbox-and-search/style.css +2 -0
  243. package/lib/organism/filter-chip/index.d.ts +3 -0
  244. package/lib/organism/filter-chip/index.d.ts.map +1 -1
  245. package/lib/organism/filter-chip/index.js +12 -4
  246. package/lib/organism/filter-chip/index.js.map +1 -1
  247. package/lib/organism/filter-chip/prop-types.d.ts +14 -7
  248. package/lib/organism/filter-chip/prop-types.d.ts.map +1 -1
  249. package/lib/organism/filter-chip/prop-types.js +3 -0
  250. package/lib/organism/filter-chip/prop-types.js.map +1 -1
  251. package/lib/organism/filter-switch/index.d.ts +23 -0
  252. package/lib/organism/filter-switch/index.d.ts.map +1 -0
  253. package/lib/organism/filter-switch/index.js +83 -0
  254. package/lib/organism/filter-switch/index.js.map +1 -0
  255. package/lib/organism/filter-switch/prop-types.d.ts +28 -0
  256. package/lib/organism/filter-switch/prop-types.d.ts.map +1 -0
  257. package/lib/organism/filter-switch/prop-types.js +20 -0
  258. package/lib/organism/filter-switch/prop-types.js.map +1 -0
  259. package/lib/organism/filter-switch/style.css +46 -0
  260. package/lib/organism/icon-editor/index.d.ts +15 -8
  261. package/lib/organism/icon-editor/index.d.ts.map +1 -1
  262. package/lib/organism/icon-editor/types.d.ts +15 -8
  263. package/lib/organism/icon-editor/types.d.ts.map +1 -1
  264. package/lib/organism/list-items/index.d.ts +116 -68
  265. package/lib/organism/rewards-form/index.d.ts +16 -8
  266. package/lib/organism/select-opponents/index.d.ts +16 -8
  267. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  268. package/lib/organism/select-opponents/types.d.ts +16 -8
  269. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  270. package/lib/organism/setup-header/index.d.ts +60 -32
  271. package/lib/organism/title-and-input/index.d.ts +47 -24
  272. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  273. package/lib/organism/title-and-input/types.d.ts +47 -24
  274. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  275. package/lib/organism/wizard-contents/index.d.ts +63 -38
  276. package/lib/template/app-player/loading/index.d.ts +135 -85
  277. package/lib/template/app-player/player/index.d.ts +278 -170
  278. package/lib/template/app-player/player/slides/header/index.d.ts +8 -0
  279. package/lib/template/app-player/player/slides/header/index.d.ts.map +1 -1
  280. package/lib/template/app-player/player/slides/header/index.js +89 -3
  281. package/lib/template/app-player/player/slides/header/index.js.map +1 -1
  282. package/lib/template/app-player/player/slides/header/style.css +1 -1
  283. package/lib/template/app-player/player/slides/index.d.ts +143 -85
  284. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  285. package/lib/template/app-player/popin-correction/index.d.ts +135 -85
  286. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  287. package/lib/template/app-player/popin-end/index.d.ts +143 -85
  288. package/lib/template/app-review/index.d.ts +135 -85
  289. package/lib/template/app-review/index.d.ts.map +1 -1
  290. package/lib/template/app-review/player/prop-types.d.ts +135 -85
  291. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  292. package/lib/template/app-review/prop-types.d.ts +135 -85
  293. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  294. package/lib/template/back-office/brand-create/index.d.ts +60 -32
  295. package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
  296. package/lib/template/back-office/brand-list/index.d.ts +60 -32
  297. package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
  298. package/lib/template/back-office/brand-update/index.d.ts +599 -298
  299. package/lib/template/back-office/dashboard-preview/index.d.ts +60 -32
  300. package/lib/template/back-office/layout/index.d.ts +60 -32
  301. package/lib/template/back-office/layout/index.d.ts.map +1 -1
  302. package/lib/template/common/dashboard/index.d.ts +270 -170
  303. package/lib/template/common/search-page/index.d.ts +135 -85
  304. package/lib/template/external-course/index.d.ts +135 -85
  305. package/lib/variables/colors.d.ts +1 -0
  306. package/lib/variables/colors.d.ts.map +1 -1
  307. package/lib/variables/colors.js +1 -0
  308. package/lib/variables/colors.js.map +1 -1
  309. package/package.json +2 -2
@@ -15,7 +15,7 @@ declare const ContentSkillModalPropTypes: {
15
15
  tooltipPlacement: PropTypes.Requireable<string>;
16
16
  'data-name': PropTypes.Requireable<string>;
17
17
  'data-testid': PropTypes.Requireable<string>;
18
- icon: PropTypes.Requireable<PropTypes.InferProps<{
18
+ icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
19
19
  position: PropTypes.Requireable<string>;
20
20
  type: PropTypes.Requireable<string>;
21
21
  faIcon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -23,11 +23,19 @@ declare const ContentSkillModalPropTypes: {
23
23
  color: PropTypes.Requireable<string>;
24
24
  backgroundColor: PropTypes.Requireable<string>;
25
25
  size: PropTypes.Requireable<number>;
26
- customStyle: PropTypes.Requireable<{
27
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
28
- }>;
26
+ customStyle: PropTypes.Requireable<object>;
29
27
  }>>;
30
- }>>;
28
+ }> | (PropTypes.InferProps<{
29
+ position: PropTypes.Requireable<string>;
30
+ type: PropTypes.Requireable<string>;
31
+ faIcon: PropTypes.Requireable<PropTypes.InferProps<{
32
+ name: PropTypes.Validator<string>;
33
+ color: PropTypes.Requireable<string>;
34
+ backgroundColor: PropTypes.Requireable<string>;
35
+ size: PropTypes.Requireable<number>;
36
+ customStyle: PropTypes.Requireable<object>;
37
+ }>>;
38
+ }> | null | undefined)[] | null | undefined>>;
31
39
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
32
40
  link: PropTypes.Requireable<PropTypes.InferProps<{
33
41
  href: PropTypes.Requireable<string>;
@@ -38,9 +46,8 @@ declare const ContentSkillModalPropTypes: {
38
46
  hoverColor: PropTypes.Requireable<string>;
39
47
  disabled: PropTypes.Requireable<boolean>;
40
48
  className: PropTypes.Requireable<string>;
41
- customStyle: PropTypes.Requireable<{
42
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
43
- }>;
49
+ customStyle: PropTypes.Requireable<object>;
50
+ contentCustomStyle: PropTypes.Requireable<object>;
44
51
  useTitle: PropTypes.Requireable<boolean>;
45
52
  customLabelClassName: PropTypes.Requireable<string>;
46
53
  }>>;
@@ -169,7 +176,7 @@ declare const ContentSkillModalPropTypes: {
169
176
  tooltipPlacement: PropTypes.Requireable<string>;
170
177
  'data-name': PropTypes.Requireable<string>;
171
178
  'data-testid': PropTypes.Requireable<string>;
172
- icon: PropTypes.Requireable<PropTypes.InferProps<{
179
+ icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
173
180
  position: PropTypes.Requireable<string>;
174
181
  type: PropTypes.Requireable<string>;
175
182
  faIcon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -177,11 +184,19 @@ declare const ContentSkillModalPropTypes: {
177
184
  color: PropTypes.Requireable<string>;
178
185
  backgroundColor: PropTypes.Requireable<string>;
179
186
  size: PropTypes.Requireable<number>;
180
- customStyle: PropTypes.Requireable<{
181
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
182
- }>;
187
+ customStyle: PropTypes.Requireable<object>;
183
188
  }>>;
184
- }>>;
189
+ }> | (PropTypes.InferProps<{
190
+ position: PropTypes.Requireable<string>;
191
+ type: PropTypes.Requireable<string>;
192
+ faIcon: PropTypes.Requireable<PropTypes.InferProps<{
193
+ name: PropTypes.Validator<string>;
194
+ color: PropTypes.Requireable<string>;
195
+ backgroundColor: PropTypes.Requireable<string>;
196
+ size: PropTypes.Requireable<number>;
197
+ customStyle: PropTypes.Requireable<object>;
198
+ }>>;
199
+ }> | null | undefined)[] | null | undefined>>;
185
200
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
186
201
  link: PropTypes.Requireable<PropTypes.InferProps<{
187
202
  href: PropTypes.Requireable<string>;
@@ -192,13 +207,13 @@ declare const ContentSkillModalPropTypes: {
192
207
  hoverColor: PropTypes.Requireable<string>;
193
208
  disabled: PropTypes.Requireable<boolean>;
194
209
  className: PropTypes.Requireable<string>;
195
- customStyle: PropTypes.Requireable<{
196
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
197
- }>;
210
+ customStyle: PropTypes.Requireable<object>;
211
+ contentCustomStyle: PropTypes.Requireable<object>;
198
212
  useTitle: PropTypes.Requireable<boolean>;
199
213
  customLabelClassName: PropTypes.Requireable<string>;
200
214
  }> | PropTypes.InferProps<{
201
215
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
216
+ withChevron: PropTypes.Requireable<boolean>;
202
217
  type: PropTypes.Requireable<string>;
203
218
  usage: PropTypes.Requireable<string>;
204
219
  label: PropTypes.Requireable<string>;
@@ -208,7 +223,7 @@ declare const ContentSkillModalPropTypes: {
208
223
  tooltipPlacement: PropTypes.Requireable<string>;
209
224
  'data-name': PropTypes.Requireable<string>;
210
225
  'data-testid': PropTypes.Requireable<string>;
211
- icon: PropTypes.Requireable<PropTypes.InferProps<{
226
+ icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
212
227
  position: PropTypes.Requireable<string>;
213
228
  type: PropTypes.Requireable<string>;
214
229
  faIcon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -216,11 +231,19 @@ declare const ContentSkillModalPropTypes: {
216
231
  color: PropTypes.Requireable<string>;
217
232
  backgroundColor: PropTypes.Requireable<string>;
218
233
  size: PropTypes.Requireable<number>;
219
- customStyle: PropTypes.Requireable<{
220
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
221
- }>;
234
+ customStyle: PropTypes.Requireable<object>;
222
235
  }>>;
223
- }>>;
236
+ }> | (PropTypes.InferProps<{
237
+ position: PropTypes.Requireable<string>;
238
+ type: PropTypes.Requireable<string>;
239
+ faIcon: PropTypes.Requireable<PropTypes.InferProps<{
240
+ name: PropTypes.Validator<string>;
241
+ color: PropTypes.Requireable<string>;
242
+ backgroundColor: PropTypes.Requireable<string>;
243
+ size: PropTypes.Requireable<number>;
244
+ customStyle: PropTypes.Requireable<object>;
245
+ }>>;
246
+ }> | null | undefined)[] | null | undefined>>;
224
247
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
225
248
  link: PropTypes.Requireable<PropTypes.InferProps<{
226
249
  href: PropTypes.Requireable<string>;
@@ -231,9 +254,8 @@ declare const ContentSkillModalPropTypes: {
231
254
  hoverColor: PropTypes.Requireable<string>;
232
255
  disabled: PropTypes.Requireable<boolean>;
233
256
  className: PropTypes.Requireable<string>;
234
- customStyle: PropTypes.Requireable<{
235
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
236
- }>;
257
+ customStyle: PropTypes.Requireable<object>;
258
+ contentCustomStyle: PropTypes.Requireable<object>;
237
259
  useTitle: PropTypes.Requireable<boolean>;
238
260
  customLabelClassName: PropTypes.Requireable<string>;
239
261
  }>>>;
@@ -254,9 +276,7 @@ declare const ContentSkillModalPropTypes: {
254
276
  color: PropTypes.Requireable<string>;
255
277
  backgroundColor: PropTypes.Requireable<string>;
256
278
  size: PropTypes.Requireable<number>;
257
- customStyle: PropTypes.Requireable<{
258
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
259
- }>;
279
+ customStyle: PropTypes.Requireable<object>;
260
280
  }>>;
261
281
  }>>;
262
282
  customStyle: PropTypes.Requireable<{
@@ -278,6 +298,8 @@ declare const ContentSkillModalPropTypes: {
278
298
  primaryColor: PropTypes.Requireable<string>;
279
299
  closeOnClick: PropTypes.Requireable<boolean>;
280
300
  enableScroll: PropTypes.Requireable<boolean>;
301
+ containerCustom: PropTypes.Requireable<object>;
302
+ showFade: PropTypes.Requireable<boolean>;
281
303
  }> | null | undefined>>;
282
304
  }>>;
283
305
  }> | PropTypes.InferProps<{
@@ -316,9 +338,7 @@ declare const ContentSkillModalPropTypes: {
316
338
  color: PropTypes.Requireable<string>;
317
339
  backgroundColor: PropTypes.Requireable<string>;
318
340
  size: PropTypes.Requireable<number>;
319
- customStyle: PropTypes.Requireable<{
320
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
321
- }>;
341
+ customStyle: PropTypes.Requireable<object>;
322
342
  }>>;
323
343
  }>>;
324
344
  customStyle: PropTypes.Requireable<{
@@ -346,7 +366,7 @@ declare const ContentSkillModalPropTypes: {
346
366
  tooltipPlacement: PropTypes.Requireable<string>;
347
367
  'data-name': PropTypes.Requireable<string>;
348
368
  'data-testid': PropTypes.Requireable<string>;
349
- icon: PropTypes.Requireable<PropTypes.InferProps<{
369
+ icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
350
370
  position: PropTypes.Requireable<string>;
351
371
  type: PropTypes.Requireable<string>;
352
372
  faIcon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -354,11 +374,19 @@ declare const ContentSkillModalPropTypes: {
354
374
  color: PropTypes.Requireable<string>;
355
375
  backgroundColor: PropTypes.Requireable<string>;
356
376
  size: PropTypes.Requireable<number>;
357
- customStyle: PropTypes.Requireable<{
358
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
359
- }>;
377
+ customStyle: PropTypes.Requireable<object>;
360
378
  }>>;
361
- }>>;
379
+ }> | (PropTypes.InferProps<{
380
+ position: PropTypes.Requireable<string>;
381
+ type: PropTypes.Requireable<string>;
382
+ faIcon: PropTypes.Requireable<PropTypes.InferProps<{
383
+ name: PropTypes.Validator<string>;
384
+ color: PropTypes.Requireable<string>;
385
+ backgroundColor: PropTypes.Requireable<string>;
386
+ size: PropTypes.Requireable<number>;
387
+ customStyle: PropTypes.Requireable<object>;
388
+ }>>;
389
+ }> | null | undefined)[] | null | undefined>>;
362
390
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
363
391
  link: PropTypes.Requireable<PropTypes.InferProps<{
364
392
  href: PropTypes.Requireable<string>;
@@ -369,9 +397,8 @@ declare const ContentSkillModalPropTypes: {
369
397
  hoverColor: PropTypes.Requireable<string>;
370
398
  disabled: PropTypes.Requireable<boolean>;
371
399
  className: PropTypes.Requireable<string>;
372
- customStyle: PropTypes.Requireable<{
373
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
374
- }>;
400
+ customStyle: PropTypes.Requireable<object>;
401
+ contentCustomStyle: PropTypes.Requireable<object>;
375
402
  useTitle: PropTypes.Requireable<boolean>;
376
403
  customLabelClassName: PropTypes.Requireable<string>;
377
404
  }> | PropTypes.InferProps<{
@@ -396,9 +423,7 @@ declare const ContentSkillModalPropTypes: {
396
423
  color: PropTypes.Requireable<string>;
397
424
  backgroundColor: PropTypes.Requireable<string>;
398
425
  size: PropTypes.Requireable<number>;
399
- customStyle: PropTypes.Requireable<{
400
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
401
- }>;
426
+ customStyle: PropTypes.Requireable<object>;
402
427
  }>>;
403
428
  }>>;
404
429
  customStyle: PropTypes.Requireable<{
@@ -417,6 +442,7 @@ declare const ContentSkillModalPropTypes: {
417
442
  title: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
418
443
  title: PropTypes.Requireable<string>;
419
444
  subtitle: PropTypes.Requireable<string>;
445
+ ariaLabel: PropTypes.Requireable<string>;
420
446
  type: PropTypes.Requireable<string>;
421
447
  'data-name': PropTypes.Requireable<string>;
422
448
  titleSize: PropTypes.Requireable<string>;
@@ -451,7 +477,7 @@ declare const ContentSkillModalPropTypes: {
451
477
  tooltipPlacement: PropTypes.Requireable<string>;
452
478
  'data-name': PropTypes.Requireable<string>;
453
479
  'data-testid': PropTypes.Requireable<string>;
454
- icon: PropTypes.Requireable<PropTypes.InferProps<{
480
+ icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
455
481
  position: PropTypes.Requireable<string>;
456
482
  type: PropTypes.Requireable<string>;
457
483
  faIcon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -459,11 +485,19 @@ declare const ContentSkillModalPropTypes: {
459
485
  color: PropTypes.Requireable<string>;
460
486
  backgroundColor: PropTypes.Requireable<string>;
461
487
  size: PropTypes.Requireable<number>;
462
- customStyle: PropTypes.Requireable<{
463
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
464
- }>;
488
+ customStyle: PropTypes.Requireable<object>;
465
489
  }>>;
466
- }>>;
490
+ }> | (PropTypes.InferProps<{
491
+ position: PropTypes.Requireable<string>;
492
+ type: PropTypes.Requireable<string>;
493
+ faIcon: PropTypes.Requireable<PropTypes.InferProps<{
494
+ name: PropTypes.Validator<string>;
495
+ color: PropTypes.Requireable<string>;
496
+ backgroundColor: PropTypes.Requireable<string>;
497
+ size: PropTypes.Requireable<number>;
498
+ customStyle: PropTypes.Requireable<object>;
499
+ }>>;
500
+ }> | null | undefined)[] | null | undefined>>;
467
501
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
468
502
  link: PropTypes.Requireable<PropTypes.InferProps<{
469
503
  href: PropTypes.Requireable<string>;
@@ -474,9 +508,8 @@ declare const ContentSkillModalPropTypes: {
474
508
  hoverColor: PropTypes.Requireable<string>;
475
509
  disabled: PropTypes.Requireable<boolean>;
476
510
  className: PropTypes.Requireable<string>;
477
- customStyle: PropTypes.Requireable<{
478
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
479
- }>;
511
+ customStyle: PropTypes.Requireable<object>;
512
+ contentCustomStyle: PropTypes.Requireable<object>;
480
513
  useTitle: PropTypes.Requireable<boolean>;
481
514
  customLabelClassName: PropTypes.Requireable<string>;
482
515
  }>>;
@@ -522,7 +555,7 @@ declare const ContentSkillModalPropTypes: {
522
555
  tooltipPlacement: PropTypes.Requireable<string>;
523
556
  'data-name': PropTypes.Requireable<string>;
524
557
  'data-testid': PropTypes.Requireable<string>;
525
- icon: PropTypes.Requireable<PropTypes.InferProps<{
558
+ icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
526
559
  position: PropTypes.Requireable<string>;
527
560
  type: PropTypes.Requireable<string>;
528
561
  faIcon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -530,11 +563,19 @@ declare const ContentSkillModalPropTypes: {
530
563
  color: PropTypes.Requireable<string>;
531
564
  backgroundColor: PropTypes.Requireable<string>;
532
565
  size: PropTypes.Requireable<number>;
533
- customStyle: PropTypes.Requireable<{
534
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
535
- }>;
566
+ customStyle: PropTypes.Requireable<object>;
536
567
  }>>;
537
- }>>;
568
+ }> | (PropTypes.InferProps<{
569
+ position: PropTypes.Requireable<string>;
570
+ type: PropTypes.Requireable<string>;
571
+ faIcon: PropTypes.Requireable<PropTypes.InferProps<{
572
+ name: PropTypes.Validator<string>;
573
+ color: PropTypes.Requireable<string>;
574
+ backgroundColor: PropTypes.Requireable<string>;
575
+ size: PropTypes.Requireable<number>;
576
+ customStyle: PropTypes.Requireable<object>;
577
+ }>>;
578
+ }> | null | undefined)[] | null | undefined>>;
538
579
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
539
580
  link: PropTypes.Requireable<PropTypes.InferProps<{
540
581
  href: PropTypes.Requireable<string>;
@@ -545,14 +586,14 @@ declare const ContentSkillModalPropTypes: {
545
586
  hoverColor: PropTypes.Requireable<string>;
546
587
  disabled: PropTypes.Requireable<boolean>;
547
588
  className: PropTypes.Requireable<string>;
548
- customStyle: PropTypes.Requireable<{
549
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
550
- }>;
589
+ customStyle: PropTypes.Requireable<object>;
590
+ contentCustomStyle: PropTypes.Requireable<object>;
551
591
  useTitle: PropTypes.Requireable<boolean>;
552
592
  customLabelClassName: PropTypes.Requireable<string>;
553
593
  }> | null | undefined)[]>;
554
594
  buttonMenuAction: PropTypes.Requireable<PropTypes.InferProps<{
555
595
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
596
+ withChevron: PropTypes.Requireable<boolean>;
556
597
  type: PropTypes.Requireable<string>;
557
598
  usage: PropTypes.Requireable<string>;
558
599
  label: PropTypes.Requireable<string>;
@@ -562,7 +603,7 @@ declare const ContentSkillModalPropTypes: {
562
603
  tooltipPlacement: PropTypes.Requireable<string>;
563
604
  'data-name': PropTypes.Requireable<string>;
564
605
  'data-testid': PropTypes.Requireable<string>;
565
- icon: PropTypes.Requireable<PropTypes.InferProps<{
606
+ icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
566
607
  position: PropTypes.Requireable<string>;
567
608
  type: PropTypes.Requireable<string>;
568
609
  faIcon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -570,11 +611,19 @@ declare const ContentSkillModalPropTypes: {
570
611
  color: PropTypes.Requireable<string>;
571
612
  backgroundColor: PropTypes.Requireable<string>;
572
613
  size: PropTypes.Requireable<number>;
573
- customStyle: PropTypes.Requireable<{
574
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
575
- }>;
614
+ customStyle: PropTypes.Requireable<object>;
576
615
  }>>;
577
- }>>;
616
+ }> | (PropTypes.InferProps<{
617
+ position: PropTypes.Requireable<string>;
618
+ type: PropTypes.Requireable<string>;
619
+ faIcon: PropTypes.Requireable<PropTypes.InferProps<{
620
+ name: PropTypes.Validator<string>;
621
+ color: PropTypes.Requireable<string>;
622
+ backgroundColor: PropTypes.Requireable<string>;
623
+ size: PropTypes.Requireable<number>;
624
+ customStyle: PropTypes.Requireable<object>;
625
+ }>>;
626
+ }> | null | undefined)[] | null | undefined>>;
578
627
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
579
628
  link: PropTypes.Requireable<PropTypes.InferProps<{
580
629
  href: PropTypes.Requireable<string>;
@@ -585,9 +634,8 @@ declare const ContentSkillModalPropTypes: {
585
634
  hoverColor: PropTypes.Requireable<string>;
586
635
  disabled: PropTypes.Requireable<boolean>;
587
636
  className: PropTypes.Requireable<string>;
588
- customStyle: PropTypes.Requireable<{
589
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
590
- }>;
637
+ customStyle: PropTypes.Requireable<object>;
638
+ contentCustomStyle: PropTypes.Requireable<object>;
591
639
  useTitle: PropTypes.Requireable<boolean>;
592
640
  customLabelClassName: PropTypes.Requireable<string>;
593
641
  }>>>;
@@ -608,9 +656,7 @@ declare const ContentSkillModalPropTypes: {
608
656
  color: PropTypes.Requireable<string>;
609
657
  backgroundColor: PropTypes.Requireable<string>;
610
658
  size: PropTypes.Requireable<number>;
611
- customStyle: PropTypes.Requireable<{
612
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
613
- }>;
659
+ customStyle: PropTypes.Requireable<object>;
614
660
  }>>;
615
661
  }>>;
616
662
  customStyle: PropTypes.Requireable<{
@@ -632,21 +678,27 @@ declare const ContentSkillModalPropTypes: {
632
678
  primaryColor: PropTypes.Requireable<string>;
633
679
  closeOnClick: PropTypes.Requireable<boolean>;
634
680
  enableScroll: PropTypes.Requireable<boolean>;
681
+ containerCustom: PropTypes.Requireable<object>;
682
+ showFade: PropTypes.Requireable<boolean>;
635
683
  }>>;
636
684
  }>>>;
637
685
  filters: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
638
686
  title: PropTypes.Requireable<string>;
639
687
  onClearAll: PropTypes.Requireable<(...args: any[]) => any>;
688
+ onRemoveSelectedFilter: PropTypes.Requireable<(...args: any[]) => any>;
640
689
  options: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
641
690
  type: PropTypes.Requireable<string>;
642
691
  options: PropTypes.Requireable<PropTypes.InferProps<{
643
692
  title: PropTypes.Requireable<string>;
693
+ titleAriaLabel: PropTypes.Requireable<string>;
644
694
  onClear: PropTypes.Requireable<(...args: any[]) => any>;
645
695
  options: PropTypes.Requireable<(PropTypes.InferProps<{
646
696
  label: PropTypes.Requireable<string>;
647
697
  type: PropTypes.Requireable<string>;
698
+ textColor: PropTypes.Requireable<string>;
648
699
  selected: PropTypes.Requireable<boolean>;
649
700
  icon: PropTypes.Requireable<string>;
701
+ customIcon: PropTypes.Requireable<string>;
650
702
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
651
703
  }> | null | undefined)[]>;
652
704
  }>>;
@@ -654,6 +706,7 @@ declare const ContentSkillModalPropTypes: {
654
706
  type: PropTypes.Requireable<string>;
655
707
  options: PropTypes.Requireable<PropTypes.InferProps<{
656
708
  title: PropTypes.Requireable<string>;
709
+ titleAriaLabel: PropTypes.Requireable<string>;
657
710
  onClear: PropTypes.Requireable<(...args: any[]) => any>;
658
711
  options: PropTypes.Requireable<(PropTypes.InferProps<{
659
712
  label: PropTypes.Requireable<string>;
@@ -677,6 +730,20 @@ declare const ContentSkillModalPropTypes: {
677
730
  searchIconAriaLabel: PropTypes.Requireable<string>;
678
731
  }>>;
679
732
  }>>;
733
+ }> | PropTypes.InferProps<{
734
+ type: PropTypes.Requireable<string>;
735
+ options: PropTypes.Requireable<PropTypes.InferProps<{
736
+ title: PropTypes.Validator<string>;
737
+ titleAriaLabel: PropTypes.Requireable<string>;
738
+ onClear: PropTypes.Validator<(...args: any[]) => any>;
739
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
740
+ label: PropTypes.Validator<string>;
741
+ value: PropTypes.Validator<boolean>;
742
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
743
+ theme: PropTypes.Validator<string>;
744
+ ariaLabel: PropTypes.Validator<string>;
745
+ }> | null | undefined)[]>;
746
+ }>>;
680
747
  }> | null | undefined> | null | undefined)[]>;
681
748
  }>>>;
682
749
  modal: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -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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U,CAAC;CACnB,CAAC"}
@@ -5,6 +5,7 @@ declare const FilterCheckboxAndSearch: {
5
5
  (props: FilterCheckboxAndSearchProps, context: WebContextValues): JSX.Element;
6
6
  propTypes: {
7
7
  title: import("prop-types").Requireable<string>;
8
+ titleAriaLabel: import("prop-types").Requireable<string>;
8
9
  onClear: import("prop-types").Requireable<(...args: any[]) => any>;
9
10
  options: import("prop-types").Requireable<(import("prop-types").InferProps<{
10
11
  label: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+F1B,CAAC;AAQF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgG1B,CAAC;AAQF,eAAe,uBAAuB,CAAC"}
@@ -40,6 +40,7 @@ const INITIAL_VISIBLE_OPTIONS = 5;
40
40
  const FilterCheckboxAndSearch = (props, context) => {
41
41
  const {
42
42
  title,
43
+ titleAriaLabel,
43
44
  searchOptions,
44
45
  onClear,
45
46
  options
@@ -66,7 +67,8 @@ const FilterCheckboxAndSearch = (props, context) => {
66
67
  className: _style.default.titleAndTagWrapper,
67
68
  "data-testid": "filter-checkbox-and-searh-title-and-tag-wrapper"
68
69
  }, /*#__PURE__*/_react.default.createElement(_title.default, {
69
- title: title
70
+ title: title,
71
+ ariaLabel: titleAriaLabel
70
72
  }), hasSelectedFilters ? /*#__PURE__*/_react.default.createElement(_tag.default, {
71
73
  label: (0, _toString2.default)(selectedFiltersCount),
72
74
  type: "info",
@@ -78,7 +80,8 @@ const FilterCheckboxAndSearch = (props, context) => {
78
80
  type: "text",
79
81
  "data-testid": "filter-checkbox-and-search-clear-button",
80
82
  onClick: onClear,
81
- customStyle: CLEAR_BUTTON_STYLE
83
+ customStyle: CLEAR_BUTTON_STYLE,
84
+ hoverColor: _colors.COLORS.cm_grey_700
82
85
  })) : null), searchOptions ? /*#__PURE__*/_react.default.createElement("div", {
83
86
  className: _style.default.search
84
87
  }, /*#__PURE__*/_react.default.createElement(_inputSearch.default, searchOptions)) : null, /*#__PURE__*/_react.default.createElement("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_title","_interopRequireDefault","_tag","_buttonLink","_provider","_checkboxWithTitle","_colors","_inputSearch","_style","_propsTypes","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CLEAR_BUTTON_STYLE","fontWeight","padding","SHOW_BUTTON_STYLE","fontSize","fontFamily","CHECKBOX_TITLE_STYLE","marginRight","INITIAL_VISIBLE_OPTIONS","FilterCheckboxAndSearch","props","context","title","searchOptions","onClear","options","translate","GetTranslateFromContext","showMore","setShowMore","useState","selectedFiltersCount","_pipe2","_filter2","selected","_size2","hasSelectedFilters","handleShowMore","useCallback","visibleOptions","useMemo","slice","createElement","className","style","container","header","titleAndTagWrapper","label","_toString2","type","size","clearButtonContainer","onClick","customStyle","search","optionsContainer","_isEmpty2","emptySearchResult","map","value","count","index","key","optionRow","onChange","name","checked","optionCount","icon","position","faIcon","color","COLORS","cm_grey_500","propTypes","process","env","NODE_ENV","contextTypes","Provider","childContextTypes","_default","exports"],"sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport {filter, isEmpty, pipe, size, toString} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport {COLORS} from '../../variables/colors';\nimport Search from '../../atom/input-search';\nimport style from './style.css';\nimport propTypes, {FilterCheckboxAndSearchProps} from './props-types';\n\nconst CLEAR_BUTTON_STYLE = {fontWeight: 'normal', padding: 0};\nconst SHOW_BUTTON_STYLE = {\n fontSize: '14px',\n fontWeight: '600',\n fontFamily: 'Gilroy',\n padding: '0'\n};\nconst CHECKBOX_TITLE_STYLE = {\n marginRight: '16px',\n fontSize: '14px',\n fontFamily: 'Gilroy',\n fontWeight: 'normal'\n};\nconst INITIAL_VISIBLE_OPTIONS = 5;\n\nconst FilterCheckboxAndSearch = (\n props: FilterCheckboxAndSearchProps,\n context: WebContextValues\n) => {\n const {title, searchOptions, onClear, options} = props;\n const translate = GetTranslateFromContext(context);\n const [showMore, setShowMore] = useState(false);\n const selectedFiltersCount = pipe(filter({selected: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n\n const handleShowMore = useCallback(() => {\n setShowMore(!showMore);\n }, [showMore]);\n\n const visibleOptions = useMemo(() => {\n return showMore ? options : options.slice(0, INITIAL_VISIBLE_OPTIONS);\n }, [options, showMore]);\n\n return (\n <div data-testid=\"filter-checkbox-and-search-container\" className={style.container}>\n <div className={style.header} data-testid=\"filter-checkbox-and-search-header\">\n <div\n className={style.titleAndTagWrapper}\n data-testid=\"filter-checkbox-and-searh-title-and-tag-wrapper\"\n >\n <Title title={title} />\n {hasSelectedFilters ? (\n <Tag label={toString(selectedFiltersCount)} type=\"info\" size=\"S\" />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.clearButtonContainer}>\n <ButtonLink\n label={translate('clear')}\n type=\"text\"\n data-testid=\"filter-checkbox-and-search-clear-button\"\n onClick={onClear}\n customStyle={CLEAR_BUTTON_STYLE}\n />\n </div>\n ) : null}\n </div>\n {searchOptions ? (\n <div className={style.search}>\n <Search {...searchOptions} />\n </div>\n ) : null}\n <div\n data-testid=\"filter-checkbox-and-search-options-container\"\n className={style.optionsContainer}\n >\n {isEmpty(visibleOptions) ? (\n <p\n className={style.emptySearchResult}\n data-testid=\"filter-checkbox-and-search-empty-message\"\n >\n No results... Try adjusting your search.\n </p>\n ) : (\n visibleOptions.map(({value, label, selected, count, onClick}, index) => (\n <div\n key={value}\n className={style.optionRow}\n data-testid={`filter-checkbox-and-search-option-row-${index}`}\n >\n <CheckboxWithTitle\n key={value}\n title={label}\n onChange={onClick}\n name={label}\n checked={selected}\n customStyle={CHECKBOX_TITLE_STYLE}\n />\n <p className={style.optionCount}>{count}</p>\n </div>\n ))\n )}\n </div>\n {size(options) > INITIAL_VISIBLE_OPTIONS ? (\n <ButtonLink\n label={showMore ? translate('Show less') : translate('Show more')}\n type=\"text\"\n icon={{\n position: 'right',\n faIcon: {\n name: showMore ? 'chevron-up' : 'chevron-down',\n size: 16,\n color: COLORS.cm_grey_500\n }\n }}\n customStyle={SHOW_BUTTON_STYLE}\n onClick={handleShowMore}\n data-testid=\"filter-checkbox-and-search-show-button\"\n />\n ) : null}\n </div>\n );\n};\n\nFilterCheckboxAndSearch.propTypes = propTypes;\n\nFilterCheckboxAndSearch.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterCheckboxAndSearch;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,IAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GA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OAAO,CAAC,GAAGP,uBAAuB,gBACtCzC,MAAA,CAAAmB,OAAA,CAAA8C,aAAA,CAAC3D,WAAA,CAAAa,OAAU;IACToD,KAAK,EAAEpB,QAAQ,GAAGF,SAAS,CAAC,WAAW,CAAC,GAAGA,SAAS,CAAC,WAAW,CAAE;IAClEwB,IAAI,EAAC,MAAM;IACXmB,IAAI,EAAE;MACJC,QAAQ,EAAE,OAAO;MACjBC,MAAM,EAAE;QACNL,IAAI,EAAEtC,QAAQ,GAAG,YAAY,GAAG,cAAc;QAC9CuB,IAAI,EAAE,EAAE;QACRqB,KAAK,EAAEC,cAAM,CAACC;MAChB;IACF,CAAE;IACFpB,WAAW,EAAEzC,iBAAkB;IAC/BwC,OAAO,EAAEhB,cAAe;IACxB,eAAY;EAAwC,CACrD,CAAC,GACA,IACD,CAAC;AAEV,CAAC;AAEDlB,uBAAuB,CAACwD,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,mBAAS;AAE7CxD,uBAAuB,CAAC4D,YAAY,GAAG;EACrCrD,SAAS,EAAEsD,iBAAQ,CAACC,iBAAiB,CAACvD;AACxC,CAAC;AAAC,IAAAwD,QAAA,GAAAC,OAAA,CAAAvF,OAAA,GAEauB,uBAAuB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_title","_interopRequireDefault","_tag","_buttonLink","_provider","_checkboxWithTitle","_colors","_inputSearch","_style","_propsTypes","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CLEAR_BUTTON_STYLE","fontWeight","padding","SHOW_BUTTON_STYLE","fontSize","fontFamily","CHECKBOX_TITLE_STYLE","marginRight","INITIAL_VISIBLE_OPTIONS","FilterCheckboxAndSearch","props","context","title","titleAriaLabel","searchOptions","onClear","options","translate","GetTranslateFromContext","showMore","setShowMore","useState","selectedFiltersCount","_pipe2","_filter2","selected","_size2","hasSelectedFilters","handleShowMore","useCallback","visibleOptions","useMemo","slice","createElement","className","style","container","header","titleAndTagWrapper","ariaLabel","label","_toString2","type","size","clearButtonContainer","onClick","customStyle","hoverColor","COLORS","cm_grey_700","search","optionsContainer","_isEmpty2","emptySearchResult","map","value","count","index","key","optionRow","onChange","name","checked","optionCount","icon","position","faIcon","color","cm_grey_500","propTypes","process","env","NODE_ENV","contextTypes","Provider","childContextTypes","_default","exports"],"sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport {filter, isEmpty, pipe, size, toString} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport {COLORS} from '../../variables/colors';\nimport Search from '../../atom/input-search';\nimport style from './style.css';\nimport propTypes, {FilterCheckboxAndSearchProps} from './props-types';\n\nconst CLEAR_BUTTON_STYLE = {fontWeight: 'normal', padding: 0};\nconst SHOW_BUTTON_STYLE = {\n fontSize: '14px',\n fontWeight: '600',\n fontFamily: 'Gilroy',\n padding: '0'\n};\nconst CHECKBOX_TITLE_STYLE = {\n marginRight: '16px',\n fontSize: '14px',\n fontFamily: 'Gilroy',\n fontWeight: 'normal'\n};\nconst INITIAL_VISIBLE_OPTIONS = 5;\n\nconst FilterCheckboxAndSearch = (\n props: FilterCheckboxAndSearchProps,\n context: WebContextValues\n) => {\n const {title, titleAriaLabel, searchOptions, onClear, options} = props;\n const translate = GetTranslateFromContext(context);\n const [showMore, setShowMore] = useState(false);\n const selectedFiltersCount = pipe(filter({selected: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n\n const handleShowMore = useCallback(() => {\n setShowMore(!showMore);\n }, [showMore]);\n\n const visibleOptions = useMemo(() => {\n return showMore ? options : options.slice(0, INITIAL_VISIBLE_OPTIONS);\n }, [options, showMore]);\n\n return (\n <div data-testid=\"filter-checkbox-and-search-container\" className={style.container}>\n <div className={style.header} data-testid=\"filter-checkbox-and-search-header\">\n <div\n className={style.titleAndTagWrapper}\n data-testid=\"filter-checkbox-and-searh-title-and-tag-wrapper\"\n >\n <Title title={title} ariaLabel={titleAriaLabel} />\n {hasSelectedFilters ? (\n <Tag label={toString(selectedFiltersCount)} type=\"info\" size=\"S\" />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.clearButtonContainer}>\n <ButtonLink\n label={translate('clear')}\n type=\"text\"\n data-testid=\"filter-checkbox-and-search-clear-button\"\n onClick={onClear}\n customStyle={CLEAR_BUTTON_STYLE}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n {searchOptions ? (\n <div className={style.search}>\n <Search {...searchOptions} />\n </div>\n ) : null}\n <div\n data-testid=\"filter-checkbox-and-search-options-container\"\n className={style.optionsContainer}\n >\n {isEmpty(visibleOptions) ? (\n <p\n className={style.emptySearchResult}\n data-testid=\"filter-checkbox-and-search-empty-message\"\n >\n No results... Try adjusting your search.\n </p>\n ) : (\n visibleOptions.map(({value, label, selected, count, onClick}, index) => (\n <div\n key={value}\n className={style.optionRow}\n data-testid={`filter-checkbox-and-search-option-row-${index}`}\n >\n <CheckboxWithTitle\n key={value}\n title={label}\n onChange={onClick}\n name={label}\n checked={selected}\n customStyle={CHECKBOX_TITLE_STYLE}\n />\n <p className={style.optionCount}>{count}</p>\n </div>\n ))\n )}\n </div>\n {size(options) > INITIAL_VISIBLE_OPTIONS ? (\n <ButtonLink\n label={showMore ? translate('Show less') : translate('Show more')}\n type=\"text\"\n icon={{\n position: 'right',\n faIcon: {\n name: showMore ? 'chevron-up' : 'chevron-down',\n size: 16,\n color: COLORS.cm_grey_500\n }\n }}\n customStyle={SHOW_BUTTON_STYLE}\n onClick={handleShowMore}\n data-testid=\"filter-checkbox-and-search-show-button\"\n />\n ) : null}\n </div>\n );\n};\n\nFilterCheckboxAndSearch.propTypes = propTypes;\n\nFilterCheckboxAndSearch.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterCheckboxAndSearch;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,IAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,SAAA,GAAAN,uBAAA,CAAAC,OAAA;AAEA,IAAAM,kBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,MAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,WAAA,GAAAR,sBAAA,CAAAF,OAAA;AAAsE,SAAAW,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,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ropTypes from 'prop-types';
2
2
  declare const propTypes: {
3
3
  title: PropTypes.Requireable<string>;
4
+ titleAriaLabel: PropTypes.Requireable<string>;
4
5
  onClear: PropTypes.Requireable<(...args: any[]) => any>;
5
6
  options: PropTypes.Requireable<(PropTypes.InferProps<{
6
7
  label: PropTypes.Requireable<string>;
@@ -44,6 +45,7 @@ declare type SearchType = {
44
45
  };
45
46
  export declare type FilterCheckboxAndSearchProps = {
46
47
  title: string;
48
+ titleAriaLabel?: string;
47
49
  onClear: () => void;
48
50
  searchOptions: SearchType;
49
51
  options: FilterCheckboxAndSearchOptions[];
@@ -1 +1 @@
1
- {"version":3,"file":"props-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;CAcd,CAAC;AAEF,oBAAY,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,aAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,cAAc,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,UAAU,CAAC;IAC1B,OAAO,EAAE,8BAA8B,EAAE,CAAC;CAC3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"props-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CAed,CAAC;AAEF,oBAAY,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,aAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,cAAc,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,UAAU,CAAC;IAC1B,OAAO,EAAE,8BAA8B,EAAE,CAAC;CAC3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -7,6 +7,7 @@ var _inputSearch = _interopRequireDefault(require("../../atom/input-search"));
7
7
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8
8
  const propTypes = {
9
9
  title: _propTypes.default.string,
10
+ titleAriaLabel: _propTypes.default.string,
10
11
  onClear: _propTypes.default.func,
11
12
  options: _propTypes.default.arrayOf(_propTypes.default.shape({
12
13
  label: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"props-types.js","names":["_propTypes","_interopRequireDefault","require","_inputSearch","e","__esModule","default","propTypes","title","PropTypes","string","onClear","func","options","arrayOf","shape","label","value","selected","bool","ref","count","number","onClick","searchOptions","Search","_default","exports"],"sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Search from '../../atom/input-search';\n\nconst propTypes = {\n title: PropTypes.string,\n onClear: PropTypes.func,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n value: PropTypes.string,\n selected: PropTypes.bool,\n ref: PropTypes.string,\n count: PropTypes.number,\n onClick: PropTypes.func\n })\n ),\n searchOptions: PropTypes.shape(Search.propTypes)\n};\n\nexport type FilterCheckboxAndSearchOptions = {\n label: string;\n value: string;\n selected: boolean;\n ref: string;\n count: number;\n onClick: () => void;\n};\n\ntype SearchType = {\n value?: string;\n placeholder: string;\n onChange?: () => void;\n onClear?: () => void;\n onFocus?: () => void;\n onBlur?: () => void;\n theme?: 'default' | 'coorpmanager';\n dataTestId?: string;\n};\n\nexport type FilterCheckboxAndSearchProps = {\n title: string;\n onClear: () => void;\n searchOptions: SearchType;\n options: FilterCheckboxAndSearchOptions[];\n};\n\nexport default propTypes;\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA6C,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7C,MAAMG,SAAS,GAAG;EAChBC,KAAK,EAAEC,kBAAS,CAACC,MAAM;EACvBC,OAAO,EAAEF,kBAAS,CAACG,IAAI;EACvBC,OAAO,EAAEJ,kBAAS,CAACK,OAAO,CACxBL,kBAAS,CAACM,KAAK,CAAC;IACdC,KAAK,EAAEP,kBAAS,CAACC,MAAM;IACvBO,KAAK,EAAER,kBAAS,CAACC,MAAM;IACvBQ,QAAQ,EAAET,kBAAS,CAACU,IAAI;IACxBC,GAAG,EAAEX,kBAAS,CAACC,MAAM;IACrBW,KAAK,EAAEZ,kBAAS,CAACa,MAAM;IACvBC,OAAO,EAAEd,kBAAS,CAACG;EACrB,CAAC,CACH,CAAC;EACDY,aAAa,EAAEf,kBAAS,CAACM,KAAK,CAACU,oBAAM,CAAClB,SAAS;AACjD,CAAC;AAAC,IAAAmB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GA6BaC,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"props-types.js","names":["_propTypes","_interopRequireDefault","require","_inputSearch","e","__esModule","default","propTypes","title","PropTypes","string","titleAriaLabel","onClear","func","options","arrayOf","shape","label","value","selected","bool","ref","count","number","onClick","searchOptions","Search","_default","exports"],"sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Search from '../../atom/input-search';\n\nconst propTypes = {\n title: PropTypes.string,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n value: PropTypes.string,\n selected: PropTypes.bool,\n ref: PropTypes.string,\n count: PropTypes.number,\n onClick: PropTypes.func\n })\n ),\n searchOptions: PropTypes.shape(Search.propTypes)\n};\n\nexport type FilterCheckboxAndSearchOptions = {\n label: string;\n value: string;\n selected: boolean;\n ref: string;\n count: number;\n onClick: () => void;\n};\n\ntype SearchType = {\n value?: string;\n placeholder: string;\n onChange?: () => void;\n onClear?: () => void;\n onFocus?: () => void;\n onBlur?: () => void;\n theme?: 'default' | 'coorpmanager';\n dataTestId?: string;\n};\n\nexport type FilterCheckboxAndSearchProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n searchOptions: SearchType;\n options: FilterCheckboxAndSearchOptions[];\n};\n\nexport default propTypes;\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA6C,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7C,MAAMG,SAAS,GAAG;EAChBC,KAAK,EAAEC,kBAAS,CAACC,MAAM;EACvBC,cAAc,EAAEF,kBAAS,CAACC,MAAM;EAChCE,OAAO,EAAEH,kBAAS,CAACI,IAAI;EACvBC,OAAO,EAAEL,kBAAS,CAACM,OAAO,CACxBN,kBAAS,CAACO,KAAK,CAAC;IACdC,KAAK,EAAER,kBAAS,CAACC,MAAM;IACvBQ,KAAK,EAAET,kBAAS,CAACC,MAAM;IACvBS,QAAQ,EAAEV,kBAAS,CAACW,IAAI;IACxBC,GAAG,EAAEZ,kBAAS,CAACC,MAAM;IACrBY,KAAK,EAAEb,kBAAS,CAACc,MAAM;IACvBC,OAAO,EAAEf,kBAAS,CAACI;EACrB,CAAC,CACH,CAAC;EACDY,aAAa,EAAEhB,kBAAS,CAACO,KAAK,CAACU,oBAAM,CAACnB,SAAS;AACjD,CAAC;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GA8BaC,SAAS","ignoreList":[]}
@@ -2,6 +2,7 @@
2
2
  @value cm_grey_500 from colors;
3
3
  @value cm_grey_100 from colors;
4
4
  @value cm_grey_400 from colors;
5
+ @value cm_grey_700 from colors;
5
6
 
6
7
  .container {
7
8
  display: flex;
@@ -46,6 +47,7 @@
46
47
  justify-content: space-between;
47
48
  align-items: center;
48
49
  height: 20px;
50
+ cursor: pointer;
49
51
  }
50
52
 
51
53
  .optionCount {
@@ -5,12 +5,15 @@ declare const FilterChip: {
5
5
  (props: FilterChipProps, context: WebContextValues): JSX.Element;
6
6
  propTypes: {
7
7
  title: import("prop-types").Requireable<string>;
8
+ titleAriaLabel: import("prop-types").Requireable<string>;
8
9
  onClear: import("prop-types").Requireable<(...args: any[]) => any>;
9
10
  options: import("prop-types").Requireable<(import("prop-types").InferProps<{
10
11
  label: import("prop-types").Requireable<string>;
11
12
  type: import("prop-types").Requireable<string>;
13
+ textColor: import("prop-types").Requireable<string>;
12
14
  selected: import("prop-types").Requireable<boolean>;
13
15
  icon: import("prop-types").Requireable<string>;
16
+ customIcon: import("prop-types").Requireable<string>;
14
17
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
15
18
  }> | null | undefined)[]>;
16
19
  };