@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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,OAAkB,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAGxD,QAAA,MAAM,UAAU;YAAW,eAAe,WAAW,gBAAgB;;;;;;;;;;;;;;;CA8CpE,CAAC;AAQF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAGxD,QAAA,MAAM,UAAU;YAAW,eAAe,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;CAiDpE,CAAC;AAQF,eAAe,UAAU,CAAC"}
@@ -9,11 +9,13 @@ import Title from '../../atom/title';
9
9
  import Tag from '../../atom/tag';
10
10
  import ButtonLink from '../../atom/button-link';
11
11
  import Provider, { GetTranslateFromContext } from '../../atom/provider';
12
+ import { COLORS } from '../../variables/colors';
12
13
  import propTypes from './prop-types';
13
14
  import style from './style.css';
14
15
  const FilterChip = (props, context) => {
15
16
  const {
16
17
  options,
18
+ titleAriaLabel,
17
19
  title,
18
20
  onClear
19
21
  } = props;
@@ -27,7 +29,8 @@ const FilterChip = (props, context) => {
27
29
  }, /*#__PURE__*/React.createElement("div", {
28
30
  className: style.titleContainer
29
31
  }, /*#__PURE__*/React.createElement(Title, {
30
- title: title
32
+ title: title,
33
+ ariaLabel: titleAriaLabel
31
34
  }), hasSelectedFilters ? /*#__PURE__*/React.createElement(Tag, {
32
35
  label: _toString(selectedFiltersCount),
33
36
  type: "info",
@@ -43,15 +46,18 @@ const FilterChip = (props, context) => {
43
46
  type: "text",
44
47
  "data-name": "filter-chip-clear-button",
45
48
  "aria-label": "filter chip clear button",
46
- onClick: onClear
49
+ onClick: onClear,
50
+ hoverColor: COLORS.cm_grey_700
47
51
  })) : null), /*#__PURE__*/React.createElement("div", {
48
52
  className: style.optionsContainer
49
53
  }, _map(({
50
54
  icon,
51
55
  label,
52
56
  onClick,
57
+ textColor,
53
58
  type,
54
- selected
59
+ selected,
60
+ customIcon
55
61
  }) => {
56
62
  function handleClick() {
57
63
  onClick(type);
@@ -59,9 +65,11 @@ const FilterChip = (props, context) => {
59
65
  return /*#__PURE__*/React.createElement(Chip, {
60
66
  leftIcon: icon,
61
67
  text: label,
68
+ textColor: textColor,
62
69
  key: label,
63
70
  selected: selected,
64
- onClick: handleClick
71
+ onClick: handleClick,
72
+ customIcon: customIcon
65
73
  });
66
74
  }, options)));
67
75
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","Chip","Title","Tag","ButtonLink","Provider","GetTranslateFromContext","propTypes","style","FilterChip","props","context","options","title","onClear","selectedFiltersCount","_pipe","_filter","selected","_size","hasSelectedFilters","translate","createElement","Fragment","className","header","titleContainer","label","_toString","type","size","buttonContainer","customStyle","fontWeight","padding","onClick","optionsContainer","_map","icon","handleClick","leftIcon","text","key","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-chip/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, map, pipe, size, toString} from 'lodash/fp';\nimport Chip from '../../atom/chip';\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 propTypes, {FilterChipProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterChip = (props: FilterChipProps, context: WebContextValues) => {\n const {options, title, onClear} = props;\n const selectedFiltersCount = pipe(filter({selected: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n const translate = GetTranslateFromContext(context);\n return (\n <>\n <div className={style.header}>\n <div className={style.titleContainer}>\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.buttonContainer}>\n <ButtonLink\n customStyle={{fontWeight: 'normal', padding: 0}}\n label={translate('clear')}\n type=\"text\"\n data-name=\"filter-chip-clear-button\"\n aria-label=\"filter chip clear button\"\n onClick={onClear}\n />\n </div>\n ) : null}\n </div>\n <div className={style.optionsContainer}>\n {map(({icon, label, onClick, type, selected}) => {\n function handleClick() {\n onClick(type);\n }\n\n return (\n <Chip\n leftIcon={icon}\n text={label}\n key={label}\n selected={selected}\n onClick={handleClick}\n />\n );\n }, options)}\n </div>\n </>\n );\n};\n\nFilterChip.propTypes = propTypes;\n\nFilterChip.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterChip;\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,OAAOC,SAAS,MAAyB,cAAc;AACvD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGA,CAACC,KAAsB,EAAEC,OAAyB,KAAK;EACxE,MAAM;IAACC,OAAO;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGJ,KAAK;EACvC,MAAMK,oBAAoB,GAAGC,KAAA,CAAKC,OAAA,CAAO;IAACC,QAAQ,EAAE;EAAI,CAAC,CAAC,EAAAC,KAAM,CAAC,CAACP,OAAO,CAAC;EAC1E,MAAMQ,kBAAkB,GAAGL,oBAAoB,GAAG,CAAC;EACnD,MAAMM,SAAS,GAAGf,uBAAuB,CAACK,OAAO,CAAC;EAClD,oBACEX,KAAA,CAAAsB,aAAA,CAAAtB,KAAA,CAAAuB,QAAA,qBACEvB,KAAA,CAAAsB,aAAA;IAAKE,SAAS,EAAEhB,KAAK,CAACiB;EAAO,gBAC3BzB,KAAA,CAAAsB,aAAA;IAAKE,SAAS,EAAEhB,KAAK,CAACkB;EAAe,gBACnC1B,KAAA,CAAAsB,aAAA,CAACpB,KAAK;IAACW,KAAK,EAAEA;EAAM,CAAE,CAAC,EACtBO,kBAAkB,gBACjBpB,KAAA,CAAAsB,aAAA,CAACnB,GAAG;IAACwB,KAAK,EAAEC,SAAA,CAASb,oBAAoB,CAAE;IAACc,IAAI,EAAC,MAAM;IAACC,IAAI,EAAC;EAAG,CAAE,CAAC,GACjE,IACD,CAAC,EACLV,kBAAkB,gBACjBpB,KAAA,CAAAsB,aAAA;IAAKE,SAAS,EAAEhB,KAAK,CAACuB;EAAgB,gBACpC/B,KAAA,CAAAsB,aAAA,CAAClB,UAAU;IACT4B,WAAW,EAAE;MAACC,UAAU,EAAE,QAAQ;MAAEC,OAAO,EAAE;IAAC,CAAE;IAChDP,KAAK,EAAEN,SAAS,CAAC,OAAO,CAAE;IAC1BQ,IAAI,EAAC,MAAM;IACX,aAAU,0BAA0B;IACpC,cAAW,0BAA0B;IACrCM,OAAO,EAAErB;EAAQ,CAClB,CACE,CAAC,GACJ,IACD,CAAC,eACNd,KAAA,CAAAsB,aAAA;IAAKE,SAAS,EAAEhB,KAAK,CAAC4B;EAAiB,GACpCC,IAAA,CAAI,CAAC;IAACC,IAAI;IAAEX,KAAK;IAAEQ,OAAO;IAAEN,IAAI;IAAEX;EAAQ,CAAC,KAAK;IAC/C,SAASqB,WAAWA,CAAA,EAAG;MACrBJ,OAAO,CAACN,IAAI,CAAC;IACf;IAEA,oBACE7B,KAAA,CAAAsB,aAAA,CAACrB,IAAI;MACHuC,QAAQ,EAAEF,IAAK;MACfG,IAAI,EAAEd,KAAM;MACZe,GAAG,EAAEf,KAAM;MACXT,QAAQ,EAAEA,QAAS;MACnBiB,OAAO,EAAEI;IAAY,CACtB,CAAC;EAEN,CAAC,EAAE3B,OAAO,CACP,CACL,CAAC;AAEP,CAAC;AAEDH,UAAU,CAACF,SAAS,GAAAoC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGtC,SAAS;AAEhCE,UAAU,CAACqC,YAAY,GAAG;EACxBzB,SAAS,EAAEhB,QAAQ,CAAC0C,iBAAiB,CAAC1B;AACxC,CAAC;AAED,eAAeZ,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","Chip","Title","Tag","ButtonLink","Provider","GetTranslateFromContext","COLORS","propTypes","style","FilterChip","props","context","options","titleAriaLabel","title","onClear","selectedFiltersCount","_pipe","_filter","selected","_size","hasSelectedFilters","translate","createElement","Fragment","className","header","titleContainer","ariaLabel","label","_toString","type","size","buttonContainer","customStyle","fontWeight","padding","onClick","hoverColor","cm_grey_700","optionsContainer","_map","icon","textColor","customIcon","handleClick","leftIcon","text","key","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-chip/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, map, pipe, size, toString} from 'lodash/fp';\nimport Chip from '../../atom/chip';\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 {COLORS} from '../../variables/colors';\nimport propTypes, {FilterChipProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterChip = (props: FilterChipProps, context: WebContextValues) => {\n const {options, titleAriaLabel, title, onClear} = props;\n const selectedFiltersCount = pipe(filter({selected: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n const translate = GetTranslateFromContext(context);\n return (\n <>\n <div className={style.header}>\n <div className={style.titleContainer}>\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.buttonContainer}>\n <ButtonLink\n customStyle={{fontWeight: 'normal', padding: 0}}\n label={translate('clear')}\n type=\"text\"\n data-name=\"filter-chip-clear-button\"\n aria-label=\"filter chip clear button\"\n onClick={onClear}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n <div className={style.optionsContainer}>\n {map(({icon, label, onClick, textColor, type, selected, customIcon}) => {\n function handleClick() {\n onClick(type);\n }\n\n return (\n <Chip\n leftIcon={icon}\n text={label}\n textColor={textColor}\n key={label}\n selected={selected}\n onClick={handleClick}\n customIcon={customIcon}\n />\n );\n }, options)}\n </div>\n </>\n );\n};\n\nFilterChip.propTypes = propTypes;\n\nFilterChip.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterChip;\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAAyB,cAAc;AACvD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGA,CAACC,KAAsB,EAAEC,OAAyB,KAAK;EACxE,MAAM;IAACC,OAAO;IAAEC,cAAc;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGL,KAAK;EACvD,MAAMM,oBAAoB,GAAGC,KAAA,CAAKC,OAAA,CAAO;IAACC,QAAQ,EAAE;EAAI,CAAC,CAAC,EAAAC,KAAM,CAAC,CAACR,OAAO,CAAC;EAC1E,MAAMS,kBAAkB,GAAGL,oBAAoB,GAAG,CAAC;EACnD,MAAMM,SAAS,GAAGjB,uBAAuB,CAACM,OAAO,CAAC;EAClD,oBACEZ,KAAA,CAAAwB,aAAA,CAAAxB,KAAA,CAAAyB,QAAA,qBACEzB,KAAA,CAAAwB,aAAA;IAAKE,SAAS,EAAEjB,KAAK,CAACkB;EAAO,gBAC3B3B,KAAA,CAAAwB,aAAA;IAAKE,SAAS,EAAEjB,KAAK,CAACmB;EAAe,gBACnC5B,KAAA,CAAAwB,aAAA,CAACtB,KAAK;IAACa,KAAK,EAAEA,KAAM;IAACc,SAAS,EAAEf;EAAe,CAAE,CAAC,EACjDQ,kBAAkB,gBACjBtB,KAAA,CAAAwB,aAAA,CAACrB,GAAG;IAAC2B,KAAK,EAAEC,SAAA,CAASd,oBAAoB,CAAE;IAACe,IAAI,EAAC,MAAM;IAACC,IAAI,EAAC;EAAG,CAAE,CAAC,GACjE,IACD,CAAC,EACLX,kBAAkB,gBACjBtB,KAAA,CAAAwB,aAAA;IAAKE,SAAS,EAAEjB,KAAK,CAACyB;EAAgB,gBACpClC,KAAA,CAAAwB,aAAA,CAACpB,UAAU;IACT+B,WAAW,EAAE;MAACC,UAAU,EAAE,QAAQ;MAAEC,OAAO,EAAE;IAAC,CAAE;IAChDP,KAAK,EAAEP,SAAS,CAAC,OAAO,CAAE;IAC1BS,IAAI,EAAC,MAAM;IACX,aAAU,0BAA0B;IACpC,cAAW,0BAA0B;IACrCM,OAAO,EAAEtB,OAAQ;IACjBuB,UAAU,EAAEhC,MAAM,CAACiC;EAAY,CAChC,CACE,CAAC,GACJ,IACD,CAAC,eACNxC,KAAA,CAAAwB,aAAA;IAAKE,SAAS,EAAEjB,KAAK,CAACgC;EAAiB,GACpCC,IAAA,CAAI,CAAC;IAACC,IAAI;IAAEb,KAAK;IAAEQ,OAAO;IAAEM,SAAS;IAAEZ,IAAI;IAAEZ,QAAQ;IAAEyB;EAAU,CAAC,KAAK;IACtE,SAASC,WAAWA,CAAA,EAAG;MACrBR,OAAO,CAACN,IAAI,CAAC;IACf;IAEA,oBACEhC,KAAA,CAAAwB,aAAA,CAACvB,IAAI;MACH8C,QAAQ,EAAEJ,IAAK;MACfK,IAAI,EAAElB,KAAM;MACZc,SAAS,EAAEA,SAAU;MACrBK,GAAG,EAAEnB,KAAM;MACXV,QAAQ,EAAEA,QAAS;MACnBkB,OAAO,EAAEQ,WAAY;MACrBD,UAAU,EAAEA;IAAW,CACxB,CAAC;EAEN,CAAC,EAAEhC,OAAO,CACP,CACL,CAAC;AAEP,CAAC;AAEDH,UAAU,CAACF,SAAS,GAAA0C,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG5C,SAAS;AAEhCE,UAAU,CAAC2C,YAAY,GAAG;EACxB9B,SAAS,EAAElB,QAAQ,CAACiD,iBAAiB,CAAC/B;AACxC,CAAC;AAED,eAAeb,UAAU","ignoreList":[]}
@@ -1,25 +1,32 @@
1
1
  import PropTypes 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>;
7
8
  type: PropTypes.Requireable<string>;
9
+ textColor: PropTypes.Requireable<string>;
8
10
  selected: PropTypes.Requireable<boolean>;
9
11
  icon: PropTypes.Requireable<string>;
12
+ customIcon: PropTypes.Requireable<string>;
10
13
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
11
14
  }> | null | undefined)[]>;
12
15
  };
16
+ export declare type FilterChipOptionsProps = {
17
+ label: string;
18
+ type: string;
19
+ selected: boolean;
20
+ icon?: string;
21
+ textColor?: string;
22
+ customIcon?: string;
23
+ onClick: (type: string) => void;
24
+ };
13
25
  export declare type FilterChipProps = {
14
26
  title: string;
27
+ titleAriaLabel?: string;
15
28
  onClear: () => void;
16
- options: {
17
- label: string;
18
- type: string;
19
- selected: boolean;
20
- icon: string;
21
- onClick: (type: string) => void;
22
- }[];
29
+ options: FilterChipOptionsProps[];
23
30
  };
24
31
  export default propTypes;
25
32
  //# sourceMappingURL=prop-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;CAYd,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,OAAO,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;KACjC,EAAE,CAAC;CACL,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;;;;CAed,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,12 +1,15 @@
1
1
  import PropTypes from 'prop-types';
2
2
  const propTypes = {
3
3
  title: PropTypes.string,
4
+ titleAriaLabel: PropTypes.string,
4
5
  onClear: PropTypes.func,
5
6
  options: PropTypes.arrayOf(PropTypes.shape({
6
7
  label: PropTypes.string,
7
8
  type: PropTypes.string,
9
+ textColor: PropTypes.string,
8
10
  selected: PropTypes.bool,
9
11
  icon: PropTypes.string,
12
+ customIcon: PropTypes.string,
10
13
  onClick: PropTypes.func
11
14
  }))
12
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","onClear","func","options","arrayOf","shape","label","type","selected","bool","icon","onClick"],"sources":["../../../src/organism/filter-chip/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n title: PropTypes.string,\n onClear: PropTypes.func,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.string,\n selected: PropTypes.bool,\n icon: PropTypes.string,\n onClick: PropTypes.func\n })\n )\n};\n\nexport type FilterChipProps = {\n title: string;\n onClear: () => void;\n options: {\n label: string;\n type: string;\n selected: boolean;\n icon: string;\n onClick: (type: string) => void;\n }[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM;EACvBC,OAAO,EAAEJ,SAAS,CAACK,IAAI;EACvBC,OAAO,EAAEN,SAAS,CAACO,OAAO,CACxBP,SAAS,CAACQ,KAAK,CAAC;IACdC,KAAK,EAAET,SAAS,CAACG,MAAM;IACvBO,IAAI,EAAEV,SAAS,CAACG,MAAM;IACtBQ,QAAQ,EAAEX,SAAS,CAACY,IAAI;IACxBC,IAAI,EAAEb,SAAS,CAACG,MAAM;IACtBW,OAAO,EAAEd,SAAS,CAACK;EACrB,CAAC,CACH;AACF,CAAC;AAcD,eAAeJ,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","titleAriaLabel","onClear","func","options","arrayOf","shape","label","type","textColor","selected","bool","icon","customIcon","onClick"],"sources":["../../../src/organism/filter-chip/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\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 type: PropTypes.string,\n textColor: PropTypes.string,\n selected: PropTypes.bool,\n icon: PropTypes.string,\n customIcon: PropTypes.string,\n onClick: PropTypes.func\n })\n )\n};\n\nexport type FilterChipOptionsProps = {\n label: string;\n type: string;\n selected: boolean;\n icon?: string;\n textColor?: string;\n customIcon?: string;\n onClick: (type: string) => void;\n};\n\nexport type FilterChipProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n options: FilterChipOptionsProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM;EACvBC,cAAc,EAAEJ,SAAS,CAACG,MAAM;EAChCE,OAAO,EAAEL,SAAS,CAACM,IAAI;EACvBC,OAAO,EAAEP,SAAS,CAACQ,OAAO,CACxBR,SAAS,CAACS,KAAK,CAAC;IACdC,KAAK,EAAEV,SAAS,CAACG,MAAM;IACvBQ,IAAI,EAAEX,SAAS,CAACG,MAAM;IACtBS,SAAS,EAAEZ,SAAS,CAACG,MAAM;IAC3BU,QAAQ,EAAEb,SAAS,CAACc,IAAI;IACxBC,IAAI,EAAEf,SAAS,CAACG,MAAM;IACtBa,UAAU,EAAEhB,SAAS,CAACG,MAAM;IAC5Bc,OAAO,EAAEjB,SAAS,CAACM;EACrB,CAAC,CACH;AACF,CAAC;AAmBD,eAAeL,SAAS","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import { WebContextValues } from '../../atom/provider/web-context';
3
+ import { FilterSwitchProps } from './prop-types';
4
+ declare const FilterSwitch: {
5
+ (props: FilterSwitchProps, context: WebContextValues): JSX.Element;
6
+ propTypes: {
7
+ title: import("prop-types").Validator<string>;
8
+ titleAriaLabel: import("prop-types").Requireable<string>;
9
+ onClear: import("prop-types").Validator<(...args: any[]) => any>;
10
+ options: import("prop-types").Requireable<(import("prop-types").InferProps<{
11
+ label: import("prop-types").Validator<string>;
12
+ value: import("prop-types").Validator<boolean>;
13
+ onChange: import("prop-types").Validator<(...args: any[]) => any>;
14
+ theme: import("prop-types").Validator<string>;
15
+ ariaLabel: import("prop-types").Validator<string>;
16
+ }> | null | undefined)[]>;
17
+ };
18
+ contextTypes: {
19
+ translate: import("prop-types").Requireable<(...args: any[]) => any>;
20
+ };
21
+ };
22
+ export default FilterSwitch;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAG1D,QAAA,MAAM,YAAY;YAAW,iBAAiB,WAAW,gBAAgB;;;;;;;;;;;;;;;;CA+CxE,CAAC;AAQF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,76 @@
1
+ import _toString from "lodash/fp/toString";
2
+ import _size from "lodash/fp/size";
3
+ import _pipe from "lodash/fp/pipe";
4
+ import _filter from "lodash/fp/filter";
5
+ import React from 'react';
6
+ import Title from '../../atom/title';
7
+ import InputSwitch from '../../atom/input-switch';
8
+ import Tag from '../../atom/tag';
9
+ import ButtonLink from '../../atom/button-link';
10
+ import Provider, { GetTranslateFromContext } from '../../atom/provider';
11
+ import { COLORS } from '../../variables/colors';
12
+ import propTypes from './prop-types';
13
+ import style from './style.css';
14
+ const FilterSwitch = (props, context) => {
15
+ const {
16
+ title,
17
+ titleAriaLabel,
18
+ onClear,
19
+ options
20
+ } = props;
21
+ const selectedFiltersCount = _pipe(_filter({
22
+ value: true
23
+ }), _size)(options);
24
+ const hasSelectedFilters = selectedFiltersCount > 0;
25
+ const translate = GetTranslateFromContext(context);
26
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
27
+ className: style.header
28
+ }, /*#__PURE__*/React.createElement("div", {
29
+ className: style.titleContainer
30
+ }, /*#__PURE__*/React.createElement(Title, {
31
+ title: title,
32
+ ariaLabel: titleAriaLabel
33
+ }), hasSelectedFilters ? /*#__PURE__*/React.createElement(Tag, {
34
+ label: _toString(selectedFiltersCount),
35
+ type: "info",
36
+ size: "S"
37
+ }) : null), hasSelectedFilters ? /*#__PURE__*/React.createElement("div", {
38
+ className: style.buttonContainer
39
+ }, /*#__PURE__*/React.createElement(ButtonLink, {
40
+ customStyle: {
41
+ fontWeight: 'normal',
42
+ padding: 0
43
+ },
44
+ label: translate('clear'),
45
+ type: "text",
46
+ "data-name": "filter-chip-clear-button",
47
+ "aria-label": "filter chip clear button",
48
+ onClick: onClear,
49
+ hoverColor: COLORS.cm_grey_700
50
+ })) : null), /*#__PURE__*/React.createElement("div", {
51
+ className: style.optionsContainer
52
+ }, options.map(optionItem => {
53
+ const {
54
+ label,
55
+ value,
56
+ onChange,
57
+ ariaLabel
58
+ } = optionItem;
59
+ return /*#__PURE__*/React.createElement("div", {
60
+ key: label,
61
+ className: style.switchOption
62
+ }, /*#__PURE__*/React.createElement(InputSwitch, {
63
+ title: label,
64
+ value: value,
65
+ theme: 'newMooc',
66
+ onChange: onChange,
67
+ "aria-label": ariaLabel
68
+ }));
69
+ })));
70
+ };
71
+ FilterSwitch.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
72
+ FilterSwitch.contextTypes = {
73
+ translate: Provider.childContextTypes.translate
74
+ };
75
+ export default FilterSwitch;
76
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","Title","InputSwitch","Tag","ButtonLink","Provider","GetTranslateFromContext","COLORS","propTypes","style","FilterSwitch","props","context","title","titleAriaLabel","onClear","options","selectedFiltersCount","_pipe","_filter","value","_size","hasSelectedFilters","translate","createElement","className","header","titleContainer","ariaLabel","label","_toString","type","size","buttonContainer","customStyle","fontWeight","padding","onClick","hoverColor","cm_grey_700","optionsContainer","map","optionItem","onChange","key","switchOption","theme","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-switch/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, pipe, size, toString} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport InputSwitch from '../../atom/input-switch';\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 {COLORS} from '../../variables/colors';\nimport propTypes, {FilterSwitchProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterSwitch = (props: FilterSwitchProps, context: WebContextValues) => {\n const {title, titleAriaLabel, onClear, options} = props;\n const selectedFiltersCount = pipe(filter({value: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n const translate = GetTranslateFromContext(context);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.titleContainer}>\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.buttonContainer}>\n <ButtonLink\n customStyle={{fontWeight: 'normal', padding: 0}}\n label={translate('clear')}\n type=\"text\"\n data-name=\"filter-chip-clear-button\"\n aria-label=\"filter chip clear button\"\n onClick={onClear}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n <div className={style.optionsContainer}>\n {options.map(optionItem => {\n const {label, value, onChange, ariaLabel} = optionItem;\n return (\n <div key={label} className={style.switchOption}>\n <InputSwitch\n title={label}\n value={value}\n theme={'newMooc'}\n onChange={onChange}\n aria-label={ariaLabel}\n />\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nFilterSwitch.propTypes = propTypes;\n\nFilterSwitch.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterSwitch;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,WAAW,MAAM,yBAAyB;AACjD,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAA2B,cAAc;AACzD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,YAAY,GAAGA,CAACC,KAAwB,EAAEC,OAAyB,KAAK;EAC5E,MAAM;IAACC,KAAK;IAAEC,cAAc;IAAEC,OAAO;IAAEC;EAAO,CAAC,GAAGL,KAAK;EACvD,MAAMM,oBAAoB,GAAGC,KAAA,CAAKC,OAAA,CAAO;IAACC,KAAK,EAAE;EAAI,CAAC,CAAC,EAAAC,KAAM,CAAC,CAACL,OAAO,CAAC;EACvE,MAAMM,kBAAkB,GAAGL,oBAAoB,GAAG,CAAC;EACnD,MAAMM,SAAS,GAAGjB,uBAAuB,CAACM,OAAO,CAAC;EAElD,oBACEZ,KAAA,CAAAwB,aAAA,2BACExB,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACiB;EAAO,gBAC3B1B,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACkB;EAAe,gBACnC3B,KAAA,CAAAwB,aAAA,CAACvB,KAAK;IAACY,KAAK,EAAEA,KAAM;IAACe,SAAS,EAAEd;EAAe,CAAE,CAAC,EACjDQ,kBAAkB,gBACjBtB,KAAA,CAAAwB,aAAA,CAACrB,GAAG;IAAC0B,KAAK,EAAEC,SAAA,CAASb,oBAAoB,CAAE;IAACc,IAAI,EAAC,MAAM;IAACC,IAAI,EAAC;EAAG,CAAE,CAAC,GACjE,IACD,CAAC,EACLV,kBAAkB,gBACjBtB,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACwB;EAAgB,gBACpCjC,KAAA,CAAAwB,aAAA,CAACpB,UAAU;IACT8B,WAAW,EAAE;MAACC,UAAU,EAAE,QAAQ;MAAEC,OAAO,EAAE;IAAC,CAAE;IAChDP,KAAK,EAAEN,SAAS,CAAC,OAAO,CAAE;IAC1BQ,IAAI,EAAC,MAAM;IACX,aAAU,0BAA0B;IACpC,cAAW,0BAA0B;IACrCM,OAAO,EAAEtB,OAAQ;IACjBuB,UAAU,EAAE/B,MAAM,CAACgC;EAAY,CAChC,CACE,CAAC,GACJ,IACD,CAAC,eACNvC,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAAC+B;EAAiB,GACpCxB,OAAO,CAACyB,GAAG,CAACC,UAAU,IAAI;IACzB,MAAM;MAACb,KAAK;MAAET,KAAK;MAAEuB,QAAQ;MAAEf;IAAS,CAAC,GAAGc,UAAU;IACtD,oBACE1C,KAAA,CAAAwB,aAAA;MAAKoB,GAAG,EAAEf,KAAM;MAACJ,SAAS,EAAEhB,KAAK,CAACoC;IAAa,gBAC7C7C,KAAA,CAAAwB,aAAA,CAACtB,WAAW;MACVW,KAAK,EAAEgB,KAAM;MACbT,KAAK,EAAEA,KAAM;MACb0B,KAAK,EAAE,SAAU;MACjBH,QAAQ,EAAEA,QAAS;MACnB,cAAYf;IAAU,CACvB,CACE,CAAC;EAEV,CAAC,CACE,CACF,CAAC;AAEV,CAAC;AAEDlB,YAAY,CAACF,SAAS,GAAAuC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGzC,SAAS;AAElCE,YAAY,CAACwC,YAAY,GAAG;EAC1B3B,SAAS,EAAElB,QAAQ,CAAC8C,iBAAiB,CAAC5B;AACxC,CAAC;AAED,eAAeb,YAAY","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ import PropTypes from 'prop-types';
2
+ declare const propTypes: {
3
+ title: PropTypes.Validator<string>;
4
+ titleAriaLabel: PropTypes.Requireable<string>;
5
+ onClear: PropTypes.Validator<(...args: any[]) => any>;
6
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
7
+ label: PropTypes.Validator<string>;
8
+ value: PropTypes.Validator<boolean>;
9
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
10
+ theme: PropTypes.Validator<string>;
11
+ ariaLabel: PropTypes.Validator<string>;
12
+ }> | null | undefined)[]>;
13
+ };
14
+ export declare type FilterSwitchOptionsProps = {
15
+ label: string;
16
+ value: boolean;
17
+ onChange: (value: string) => void;
18
+ theme: string;
19
+ ariaLabel: string;
20
+ };
21
+ export declare type FilterSwitchProps = {
22
+ title: string;
23
+ titleAriaLabel?: string;
24
+ onClear: () => void;
25
+ options: FilterSwitchOptionsProps[];
26
+ };
27
+ export default propTypes;
28
+ //# sourceMappingURL=prop-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;;CAad,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACrC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import PropTypes from 'prop-types';
2
+ const propTypes = {
3
+ title: PropTypes.string.isRequired,
4
+ titleAriaLabel: PropTypes.string,
5
+ onClear: PropTypes.func.isRequired,
6
+ options: PropTypes.arrayOf(PropTypes.shape({
7
+ label: PropTypes.string.isRequired,
8
+ value: PropTypes.bool.isRequired,
9
+ onChange: PropTypes.func.isRequired,
10
+ theme: PropTypes.string.isRequired,
11
+ ariaLabel: PropTypes.string.isRequired
12
+ }))
13
+ };
14
+ export default propTypes;
15
+ //# sourceMappingURL=prop-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","isRequired","titleAriaLabel","onClear","func","options","arrayOf","shape","label","value","bool","onChange","theme","ariaLabel"],"sources":["../../../src/organism/filter-switch/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n title: PropTypes.string.isRequired,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n theme: PropTypes.string.isRequired,\n ariaLabel: PropTypes.string.isRequired\n })\n )\n};\n\nexport type FilterSwitchOptionsProps = {\n label: string;\n value: boolean;\n onChange: (value: string) => void;\n theme: string;\n ariaLabel: string;\n};\n\nexport type FilterSwitchProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n options: FilterSwitchOptionsProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;EAClCC,cAAc,EAAEL,SAAS,CAACG,MAAM;EAChCG,OAAO,EAAEN,SAAS,CAACO,IAAI,CAACH,UAAU;EAClCI,OAAO,EAAER,SAAS,CAACS,OAAO,CACxBT,SAAS,CAACU,KAAK,CAAC;IACdC,KAAK,EAAEX,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCQ,KAAK,EAAEZ,SAAS,CAACa,IAAI,CAACT,UAAU;IAChCU,QAAQ,EAAEd,SAAS,CAACO,IAAI,CAACH,UAAU;IACnCW,KAAK,EAAEf,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCY,SAAS,EAAEhB,SAAS,CAACG,MAAM,CAACC;EAC9B,CAAC,CACH;AACF,CAAC;AAiBD,eAAeH,SAAS","ignoreList":[]}
@@ -0,0 +1,46 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_grey_500 from colors;
3
+ @value cm_grey_700 from colors;
4
+
5
+ .header {
6
+ display: flex;
7
+ justify-content: space-between;
8
+ margin-bottom: 16px;
9
+ }
10
+
11
+ .titleContainer {
12
+ color: cm_grey_700;
13
+ font-family: Gilroy;
14
+ font-size: 14px;
15
+ font-style: normal;
16
+ font-weight: 600;
17
+ display: flex;
18
+ gap: 8px;
19
+ align-items: center;
20
+ flex: 10;
21
+ }
22
+
23
+ .buttonContainer {
24
+ font-weight: normal;
25
+ color: cm_grey_500;
26
+ }
27
+
28
+ .optionsContainer {
29
+ display: flex;
30
+ flex-wrap: wrap;
31
+ flex-direction: column;
32
+ gap: 8px;
33
+ width: 100%;
34
+ }
35
+
36
+ .switchOption {
37
+ cursor: pointer;
38
+ }
39
+
40
+ .switchOption label {
41
+ margin: 0;
42
+ }
43
+
44
+ .switchOption span {
45
+ color: cm_grey_500;
46
+ }
@@ -44,7 +44,7 @@ declare const IconEditor: {
44
44
  tooltipPlacement: import("prop-types").Requireable<string>;
45
45
  'data-name': import("prop-types").Requireable<string>;
46
46
  'data-testid': import("prop-types").Requireable<string>;
47
- icon: import("prop-types").Requireable<import("prop-types").InferProps<{
47
+ icon: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
48
48
  position: import("prop-types").Requireable<string>;
49
49
  type: import("prop-types").Requireable<string>;
50
50
  faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
@@ -52,11 +52,19 @@ declare const IconEditor: {
52
52
  color: import("prop-types").Requireable<string>;
53
53
  backgroundColor: import("prop-types").Requireable<string>;
54
54
  size: import("prop-types").Requireable<number>;
55
- customStyle: import("prop-types").Requireable<{
56
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
57
- }>;
55
+ customStyle: import("prop-types").Requireable<object>;
58
56
  }>>;
59
- }>>;
57
+ }> | (import("prop-types").InferProps<{
58
+ position: import("prop-types").Requireable<string>;
59
+ type: import("prop-types").Requireable<string>;
60
+ faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
61
+ name: import("prop-types").Validator<string>;
62
+ color: import("prop-types").Requireable<string>;
63
+ backgroundColor: import("prop-types").Requireable<string>;
64
+ size: import("prop-types").Requireable<number>;
65
+ customStyle: import("prop-types").Requireable<object>;
66
+ }>>;
67
+ }> | null | undefined)[] | null | undefined>>;
60
68
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
61
69
  link: import("prop-types").Requireable<import("prop-types").InferProps<{
62
70
  href: import("prop-types").Requireable<string>;
@@ -67,9 +75,8 @@ declare const IconEditor: {
67
75
  hoverColor: import("prop-types").Requireable<string>;
68
76
  disabled: import("prop-types").Requireable<boolean>;
69
77
  className: import("prop-types").Requireable<string>;
70
- customStyle: import("prop-types").Requireable<{
71
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
72
- }>;
78
+ customStyle: import("prop-types").Requireable<object>;
79
+ contentCustomStyle: import("prop-types").Requireable<object>;
73
80
  useTitle: import("prop-types").Requireable<boolean>;
74
81
  customLabelClassName: import("prop-types").Requireable<string>;
75
82
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB1E,CAAC;AAQF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB1E,CAAC;AAQF,eAAe,UAAU,CAAC"}
@@ -41,7 +41,7 @@ declare const IconEditorPropTypes: {
41
41
  tooltipPlacement: PropTypes.Requireable<string>;
42
42
  'data-name': PropTypes.Requireable<string>;
43
43
  'data-testid': PropTypes.Requireable<string>;
44
- icon: PropTypes.Requireable<PropTypes.InferProps<{
44
+ icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
45
45
  position: PropTypes.Requireable<string>;
46
46
  type: PropTypes.Requireable<string>;
47
47
  faIcon: PropTypes.Requireable<PropTypes.InferProps<{
@@ -49,11 +49,19 @@ declare const IconEditorPropTypes: {
49
49
  color: PropTypes.Requireable<string>;
50
50
  backgroundColor: PropTypes.Requireable<string>;
51
51
  size: PropTypes.Requireable<number>;
52
- customStyle: PropTypes.Requireable<{
53
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
54
- }>;
52
+ customStyle: PropTypes.Requireable<object>;
55
53
  }>>;
56
- }>>;
54
+ }> | (PropTypes.InferProps<{
55
+ position: PropTypes.Requireable<string>;
56
+ type: PropTypes.Requireable<string>;
57
+ faIcon: PropTypes.Requireable<PropTypes.InferProps<{
58
+ name: PropTypes.Validator<string>;
59
+ color: PropTypes.Requireable<string>;
60
+ backgroundColor: PropTypes.Requireable<string>;
61
+ size: PropTypes.Requireable<number>;
62
+ customStyle: PropTypes.Requireable<object>;
63
+ }>>;
64
+ }> | null | undefined)[] | null | undefined>>;
57
65
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
58
66
  link: PropTypes.Requireable<PropTypes.InferProps<{
59
67
  href: PropTypes.Requireable<string>;
@@ -64,9 +72,8 @@ declare const IconEditorPropTypes: {
64
72
  hoverColor: PropTypes.Requireable<string>;
65
73
  disabled: PropTypes.Requireable<boolean>;
66
74
  className: PropTypes.Requireable<string>;
67
- customStyle: PropTypes.Requireable<{
68
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
69
- }>;
75
+ customStyle: PropTypes.Requireable<object>;
76
+ contentCustomStyle: PropTypes.Requireable<object>;
70
77
  useTitle: PropTypes.Requireable<boolean>;
71
78
  customLabelClassName: PropTypes.Requireable<string>;
72
79
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAC;AAEF,eAAe,mBAAmB,CAAC;AAEnC,oBAAY,eAAe,GAAG;IAC5B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAC;AAEF,eAAe,mBAAmB,CAAC;AAEnC,oBAAY,eAAe,GAAG;IAC5B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B,CAAC"}