@coorpacademy/components 11.36.5-alpha.3 → 11.36.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 (238) hide show
  1. package/es/atom/button-link/index.d.ts +2 -0
  2. package/es/atom/button-link/index.d.ts.map +1 -1
  3. package/es/atom/button-link/index.js +6 -5
  4. package/es/atom/button-link/index.js.map +1 -1
  5. package/es/atom/button-link/types.d.ts +3 -0
  6. package/es/atom/button-link/types.d.ts.map +1 -1
  7. package/es/atom/button-link/types.js +3 -1
  8. package/es/atom/button-link/types.js.map +1 -1
  9. package/es/atom/button-menu/index.d.ts +2 -0
  10. package/es/atom/button-menu/index.d.ts.map +1 -1
  11. package/es/atom/button-menu/index.js +9 -3
  12. package/es/atom/button-menu/index.js.map +1 -1
  13. package/es/atom/button-menu/style.css +22 -0
  14. package/es/atom/button-menu/types.d.ts +5 -0
  15. package/es/atom/button-menu/types.d.ts.map +1 -1
  16. package/es/atom/button-menu/types.js +4 -2
  17. package/es/atom/button-menu/types.js.map +1 -1
  18. package/es/atom/checkbox-with-title/index.d.ts.map +1 -1
  19. package/es/atom/checkbox-with-title/index.js +2 -2
  20. package/es/atom/checkbox-with-title/index.js.map +1 -1
  21. package/es/atom/radio-with-title/index.d.ts +2 -0
  22. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  23. package/es/atom/radio-with-title/types.d.ts +2 -0
  24. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  25. package/es/atom/tag/index.d.ts +1 -1
  26. package/es/atom/tag/index.d.ts.map +1 -1
  27. package/es/atom/tag/index.js +3 -14
  28. package/es/atom/tag/index.js.map +1 -1
  29. package/es/atom/title/index.d.ts +2 -0
  30. package/es/molecule/bullet-point-menu-button/index.d.ts +1 -0
  31. package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
  32. package/es/molecule/bullet-point-menu-button/types.d.ts +1 -0
  33. package/es/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
  34. package/es/molecule/button-menu-action/index.d.ts +5 -0
  35. package/es/molecule/button-menu-action/index.d.ts.map +1 -1
  36. package/es/molecule/button-menu-action/index.js +5 -2
  37. package/es/molecule/button-menu-action/index.js.map +1 -1
  38. package/es/molecule/button-menu-action/types.d.ts +9 -3
  39. package/es/molecule/button-menu-action/types.d.ts.map +1 -1
  40. package/es/molecule/button-menu-action/types.js +2 -1
  41. package/es/molecule/button-menu-action/types.js.map +1 -1
  42. package/es/molecule/cm-popin/types.d.ts +24 -0
  43. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  44. package/es/molecule/expandible-actionable-table/index.d.ts +4 -0
  45. package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  46. package/es/molecule/expandible-actionable-table/types.d.ts +4 -0
  47. package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  48. package/es/molecule/multi-filter-panel/index.d.ts +17 -7
  49. package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
  50. package/es/molecule/multi-filter-panel/index.js +2 -2
  51. package/es/molecule/multi-filter-panel/index.js.map +1 -1
  52. package/es/molecule/multi-filter-panel/prop-types.d.ts +17 -7
  53. package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  54. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  55. package/es/molecule/title-radio-wrapper/index.d.ts +2 -0
  56. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  57. package/es/molecule/title-radio-wrapper/types.d.ts +2 -0
  58. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  59. package/es/organism/content-skill-modal/index.d.ts +39 -7
  60. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  61. package/es/organism/content-skill-modal/types.d.ts +39 -7
  62. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  63. package/es/organism/filter-checkbox-and-search/index.d.ts +19 -9
  64. package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  65. package/es/organism/filter-checkbox-and-search/index.js +7 -7
  66. package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
  67. package/es/organism/filter-checkbox-and-search/props-types.d.ts +20 -18
  68. package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  69. package/es/organism/filter-checkbox-and-search/props-types.js +2 -2
  70. package/es/organism/filter-checkbox-and-search/props-types.js.map +1 -1
  71. package/es/organism/header-with-actions/index.d.ts +3 -0
  72. package/es/organism/header-with-actions/index.d.ts.map +1 -1
  73. package/es/organism/header-with-actions/types.d.ts +3 -0
  74. package/es/organism/header-with-actions/types.d.ts.map +1 -1
  75. package/es/organism/icon-editor/index.d.ts +2 -0
  76. package/es/organism/icon-editor/index.d.ts.map +1 -1
  77. package/es/organism/icon-editor/types.d.ts +2 -0
  78. package/es/organism/icon-editor/types.d.ts.map +1 -1
  79. package/es/organism/list-items/index.d.ts +22 -0
  80. package/es/organism/mooc-header/index.d.ts +1 -0
  81. package/es/organism/mooc-header/index.d.ts.map +1 -1
  82. package/es/organism/mooc-header/index.js +7 -3
  83. package/es/organism/mooc-header/index.js.map +1 -1
  84. package/es/organism/mooc-header/style.css +7 -0
  85. package/es/organism/rewards-form/index.d.ts +2 -0
  86. package/es/organism/select-opponents/index.d.ts +2 -0
  87. package/es/organism/select-opponents/index.d.ts.map +1 -1
  88. package/es/organism/select-opponents/types.d.ts +2 -0
  89. package/es/organism/select-opponents/types.d.ts.map +1 -1
  90. package/es/organism/setup-header/index.d.ts +8 -0
  91. package/es/organism/title-and-input/index.d.ts +6 -0
  92. package/es/organism/title-and-input/index.d.ts.map +1 -1
  93. package/es/organism/title-and-input/types.d.ts +6 -0
  94. package/es/organism/title-and-input/types.d.ts.map +1 -1
  95. package/es/organism/wizard-contents/index.d.ts +10 -0
  96. package/es/template/app-player/loading/index.d.ts +24 -0
  97. package/es/template/app-player/player/index.d.ts +48 -0
  98. package/es/template/app-player/player/slides/index.d.ts +24 -0
  99. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  100. package/es/template/app-player/popin-correction/index.d.ts +24 -0
  101. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  102. package/es/template/app-player/popin-end/index.d.ts +24 -0
  103. package/es/template/app-review/index.d.ts +24 -0
  104. package/es/template/app-review/index.d.ts.map +1 -1
  105. package/es/template/app-review/player/prop-types.d.ts +24 -0
  106. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  107. package/es/template/app-review/prop-types.d.ts +24 -0
  108. package/es/template/app-review/prop-types.d.ts.map +1 -1
  109. package/es/template/back-office/brand-create/index.d.ts +8 -0
  110. package/es/template/back-office/brand-create/index.d.ts.map +1 -1
  111. package/es/template/back-office/brand-list/index.d.ts +8 -0
  112. package/es/template/back-office/brand-list/index.d.ts.map +1 -1
  113. package/es/template/back-office/brand-update/index.d.ts +106 -7
  114. package/es/template/back-office/dashboard-preview/index.d.ts +8 -0
  115. package/es/template/back-office/layout/index.d.ts +8 -0
  116. package/es/template/back-office/layout/index.d.ts.map +1 -1
  117. package/es/template/common/dashboard/index.d.ts +48 -0
  118. package/es/template/common/search-page/index.d.ts +24 -0
  119. package/es/template/external-course/index.d.ts +24 -0
  120. package/lib/atom/button-link/index.d.ts +2 -0
  121. package/lib/atom/button-link/index.d.ts.map +1 -1
  122. package/lib/atom/button-link/index.js +6 -5
  123. package/lib/atom/button-link/index.js.map +1 -1
  124. package/lib/atom/button-link/types.d.ts +3 -0
  125. package/lib/atom/button-link/types.d.ts.map +1 -1
  126. package/lib/atom/button-link/types.js +3 -1
  127. package/lib/atom/button-link/types.js.map +1 -1
  128. package/lib/atom/button-menu/index.d.ts +2 -0
  129. package/lib/atom/button-menu/index.d.ts.map +1 -1
  130. package/lib/atom/button-menu/index.js +9 -3
  131. package/lib/atom/button-menu/index.js.map +1 -1
  132. package/lib/atom/button-menu/style.css +22 -0
  133. package/lib/atom/button-menu/types.d.ts +5 -0
  134. package/lib/atom/button-menu/types.d.ts.map +1 -1
  135. package/lib/atom/button-menu/types.js +4 -2
  136. package/lib/atom/button-menu/types.js.map +1 -1
  137. package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
  138. package/lib/atom/checkbox-with-title/index.js +2 -2
  139. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  140. package/lib/atom/radio-with-title/index.d.ts +2 -0
  141. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  142. package/lib/atom/radio-with-title/types.d.ts +2 -0
  143. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  144. package/lib/atom/tag/index.d.ts +1 -1
  145. package/lib/atom/tag/index.d.ts.map +1 -1
  146. package/lib/atom/tag/index.js +3 -14
  147. package/lib/atom/tag/index.js.map +1 -1
  148. package/lib/atom/title/index.d.ts +2 -0
  149. package/lib/molecule/bullet-point-menu-button/index.d.ts +1 -0
  150. package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
  151. package/lib/molecule/bullet-point-menu-button/types.d.ts +1 -0
  152. package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
  153. package/lib/molecule/button-menu-action/index.d.ts +5 -0
  154. package/lib/molecule/button-menu-action/index.d.ts.map +1 -1
  155. package/lib/molecule/button-menu-action/index.js +5 -2
  156. package/lib/molecule/button-menu-action/index.js.map +1 -1
  157. package/lib/molecule/button-menu-action/types.d.ts +9 -3
  158. package/lib/molecule/button-menu-action/types.d.ts.map +1 -1
  159. package/lib/molecule/button-menu-action/types.js +2 -1
  160. package/lib/molecule/button-menu-action/types.js.map +1 -1
  161. package/lib/molecule/cm-popin/types.d.ts +24 -0
  162. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  163. package/lib/molecule/expandible-actionable-table/index.d.ts +4 -0
  164. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  165. package/lib/molecule/expandible-actionable-table/types.d.ts +4 -0
  166. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  167. package/lib/molecule/multi-filter-panel/index.d.ts +17 -7
  168. package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
  169. package/lib/molecule/multi-filter-panel/index.js.map +1 -1
  170. package/lib/molecule/multi-filter-panel/prop-types.d.ts +17 -7
  171. package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  172. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  173. package/lib/molecule/title-radio-wrapper/index.d.ts +2 -0
  174. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  175. package/lib/molecule/title-radio-wrapper/types.d.ts +2 -0
  176. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  177. package/lib/organism/content-skill-modal/index.d.ts +39 -7
  178. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  179. package/lib/organism/content-skill-modal/types.d.ts +39 -7
  180. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  181. package/lib/organism/filter-checkbox-and-search/index.d.ts +19 -9
  182. package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  183. package/lib/organism/filter-checkbox-and-search/index.js +7 -7
  184. package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
  185. package/lib/organism/filter-checkbox-and-search/props-types.d.ts +20 -18
  186. package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  187. package/lib/organism/filter-checkbox-and-search/props-types.js +2 -2
  188. package/lib/organism/filter-checkbox-and-search/props-types.js.map +1 -1
  189. package/lib/organism/header-with-actions/index.d.ts +3 -0
  190. package/lib/organism/header-with-actions/index.d.ts.map +1 -1
  191. package/lib/organism/header-with-actions/types.d.ts +3 -0
  192. package/lib/organism/header-with-actions/types.d.ts.map +1 -1
  193. package/lib/organism/icon-editor/index.d.ts +2 -0
  194. package/lib/organism/icon-editor/index.d.ts.map +1 -1
  195. package/lib/organism/icon-editor/types.d.ts +2 -0
  196. package/lib/organism/icon-editor/types.d.ts.map +1 -1
  197. package/lib/organism/list-items/index.d.ts +22 -0
  198. package/lib/organism/mooc-header/index.d.ts +1 -0
  199. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  200. package/lib/organism/mooc-header/index.js +7 -3
  201. package/lib/organism/mooc-header/index.js.map +1 -1
  202. package/lib/organism/mooc-header/style.css +7 -0
  203. package/lib/organism/rewards-form/index.d.ts +2 -0
  204. package/lib/organism/select-opponents/index.d.ts +2 -0
  205. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  206. package/lib/organism/select-opponents/types.d.ts +2 -0
  207. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  208. package/lib/organism/setup-header/index.d.ts +8 -0
  209. package/lib/organism/title-and-input/index.d.ts +6 -0
  210. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  211. package/lib/organism/title-and-input/types.d.ts +6 -0
  212. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  213. package/lib/organism/wizard-contents/index.d.ts +10 -0
  214. package/lib/template/app-player/loading/index.d.ts +24 -0
  215. package/lib/template/app-player/player/index.d.ts +48 -0
  216. package/lib/template/app-player/player/slides/index.d.ts +24 -0
  217. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  218. package/lib/template/app-player/popin-correction/index.d.ts +24 -0
  219. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  220. package/lib/template/app-player/popin-end/index.d.ts +24 -0
  221. package/lib/template/app-review/index.d.ts +24 -0
  222. package/lib/template/app-review/index.d.ts.map +1 -1
  223. package/lib/template/app-review/player/prop-types.d.ts +24 -0
  224. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  225. package/lib/template/app-review/prop-types.d.ts +24 -0
  226. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  227. package/lib/template/back-office/brand-create/index.d.ts +8 -0
  228. package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
  229. package/lib/template/back-office/brand-list/index.d.ts +8 -0
  230. package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
  231. package/lib/template/back-office/brand-update/index.d.ts +106 -7
  232. package/lib/template/back-office/dashboard-preview/index.d.ts +8 -0
  233. package/lib/template/back-office/layout/index.d.ts +8 -0
  234. package/lib/template/back-office/layout/index.d.ts.map +1 -1
  235. package/lib/template/common/dashboard/index.d.ts +48 -0
  236. package/lib/template/common/search-page/index.d.ts +24 -0
  237. package/lib/template/external-course/index.d.ts +24 -0
  238. package/package.json +2 -2
@@ -44,6 +44,8 @@ declare const ContentSkillModal: {
44
44
  customStyle: import("prop-types").Requireable<{
45
45
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
46
46
  }>;
47
+ useTitle: import("prop-types").Requireable<boolean>;
48
+ customLabelClassName: import("prop-types").Requireable<string>;
47
49
  }>>;
48
50
  selectMultiple: import("prop-types").Requireable<import("prop-types").InferProps<{
49
51
  title: import("prop-types").Requireable<string>;
@@ -196,6 +198,8 @@ declare const ContentSkillModal: {
196
198
  customStyle: import("prop-types").Requireable<{
197
199
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
198
200
  }>;
201
+ useTitle: import("prop-types").Requireable<boolean>;
202
+ customLabelClassName: import("prop-types").Requireable<string>;
199
203
  }> | import("prop-types").InferProps<{
200
204
  button: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
201
205
  type: import("prop-types").Requireable<string>;
@@ -233,6 +237,8 @@ declare const ContentSkillModal: {
233
237
  customStyle: import("prop-types").Requireable<{
234
238
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
235
239
  }>;
240
+ useTitle: import("prop-types").Requireable<boolean>;
241
+ customLabelClassName: import("prop-types").Requireable<string>;
236
242
  }>>>;
237
243
  menu: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
238
244
  buttons: import("prop-types").Validator<(import("prop-types").InferProps<{
@@ -259,9 +265,11 @@ declare const ContentSkillModal: {
259
265
  customStyle: import("prop-types").Requireable<{
260
266
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
261
267
  }>;
268
+ customLabelClassName: import("prop-types").Requireable<string>;
262
269
  }> | null | undefined)[]>;
263
270
  'data-name': import("prop-types").Requireable<string>;
264
271
  'aria-label': import("prop-types").Requireable<string>;
272
+ enableScroll: import("prop-types").Requireable<boolean>;
265
273
  }>>>;
266
274
  menuWrapper: import("prop-types").Requireable<import("prop-types").InferProps<{
267
275
  ariaLabel: import("prop-types").Requireable<string>;
@@ -272,6 +280,7 @@ declare const ContentSkillModal: {
272
280
  type: import("prop-types").Requireable<string>;
273
281
  primaryColor: import("prop-types").Requireable<string>;
274
282
  closeOnClick: import("prop-types").Requireable<boolean>;
283
+ enableScroll: import("prop-types").Requireable<boolean>;
275
284
  }> | null | undefined>>;
276
285
  }>>;
277
286
  }> | import("prop-types").InferProps<{
@@ -318,6 +327,7 @@ declare const ContentSkillModal: {
318
327
  customStyle: import("prop-types").Requireable<{
319
328
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
320
329
  }>;
330
+ customLabelClassName: import("prop-types").Requireable<string>;
321
331
  }> | null | undefined)[]>;
322
332
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
323
333
  menuButtonClassName: import("prop-types").Requireable<string>;
@@ -365,6 +375,8 @@ declare const ContentSkillModal: {
365
375
  customStyle: import("prop-types").Requireable<{
366
376
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
367
377
  }>;
378
+ useTitle: import("prop-types").Requireable<boolean>;
379
+ customLabelClassName: import("prop-types").Requireable<string>;
368
380
  }> | import("prop-types").InferProps<{
369
381
  componentType: import("prop-types").Requireable<string>;
370
382
  'data-name': import("prop-types").Requireable<string>;
@@ -395,6 +407,7 @@ declare const ContentSkillModal: {
395
407
  customStyle: import("prop-types").Requireable<{
396
408
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
397
409
  }>;
410
+ customLabelClassName: import("prop-types").Requireable<string>;
398
411
  }> | null | undefined)[]>;
399
412
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
400
413
  menuButtonClassName: import("prop-types").Requireable<string>;
@@ -467,6 +480,8 @@ declare const ContentSkillModal: {
467
480
  customStyle: import("prop-types").Requireable<{
468
481
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
469
482
  }>;
483
+ useTitle: import("prop-types").Requireable<boolean>;
484
+ customLabelClassName: import("prop-types").Requireable<string>;
470
485
  }>>;
471
486
  required: import("prop-types").Requireable<boolean>;
472
487
  }> | null | undefined>>;
@@ -533,6 +548,8 @@ declare const ContentSkillModal: {
533
548
  customStyle: import("prop-types").Requireable<{
534
549
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
535
550
  }>;
551
+ useTitle: import("prop-types").Requireable<boolean>;
552
+ customLabelClassName: import("prop-types").Requireable<string>;
536
553
  }> | null | undefined)[]>;
537
554
  buttonMenuAction: import("prop-types").Requireable<import("prop-types").InferProps<{
538
555
  button: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
@@ -571,6 +588,8 @@ declare const ContentSkillModal: {
571
588
  customStyle: import("prop-types").Requireable<{
572
589
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
573
590
  }>;
591
+ useTitle: import("prop-types").Requireable<boolean>;
592
+ customLabelClassName: import("prop-types").Requireable<string>;
574
593
  }>>>;
575
594
  menu: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
576
595
  buttons: import("prop-types").Validator<(import("prop-types").InferProps<{
@@ -597,9 +616,11 @@ declare const ContentSkillModal: {
597
616
  customStyle: import("prop-types").Requireable<{
598
617
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
599
618
  }>;
619
+ customLabelClassName: import("prop-types").Requireable<string>;
600
620
  }> | null | undefined)[]>;
601
621
  'data-name': import("prop-types").Requireable<string>;
602
622
  'aria-label': import("prop-types").Requireable<string>;
623
+ enableScroll: import("prop-types").Requireable<boolean>;
603
624
  }>>>;
604
625
  menuWrapper: import("prop-types").Requireable<import("prop-types").InferProps<{
605
626
  ariaLabel: import("prop-types").Requireable<string>;
@@ -610,6 +631,7 @@ declare const ContentSkillModal: {
610
631
  type: import("prop-types").Requireable<string>;
611
632
  primaryColor: import("prop-types").Requireable<string>;
612
633
  closeOnClick: import("prop-types").Requireable<boolean>;
634
+ enableScroll: import("prop-types").Requireable<boolean>;
613
635
  }>>;
614
636
  }>>>;
615
637
  filters: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
@@ -642,13 +664,23 @@ declare const ContentSkillModal: {
642
664
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
643
665
  }> | null | undefined)[]>;
644
666
  searchOptions: import("prop-types").Requireable<import("prop-types").InferProps<{
645
- value: import("prop-types").Requireable<string>;
646
- placeholder: import("prop-types").Validator<string>;
647
- onChange: import("prop-types").Requireable<(...args: any[]) => any>;
648
- onClear: import("prop-types").Requireable<(...args: any[]) => any>;
649
- onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
650
- onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
651
- theme: import("prop-types").Requireable<string>;
667
+ action: import("prop-types").Requireable<string>;
668
+ method: import("prop-types").Requireable<string>;
669
+ onSubmit: import("prop-types").Requireable<(...args: any[]) => any>;
670
+ onReset: import("prop-types").Requireable<(...args: any[]) => any>;
671
+ onSearchFocus: import("prop-types").Requireable<(...args: any[]) => any>;
672
+ onSearchBlur: import("prop-types").Requireable<(...args: any[]) => any>;
673
+ search: import("prop-types").Requireable<import("prop-types").InferProps<{
674
+ value: import("prop-types").Requireable<string>;
675
+ placeholder: import("prop-types").Validator<string>;
676
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
677
+ onClear: import("prop-types").Requireable<(...args: any[]) => any>;
678
+ onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
679
+ onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
680
+ theme: import("prop-types").Requireable<string>;
681
+ dataTestId: import("prop-types").Requireable<string>;
682
+ }>>;
683
+ 'search-reset-aria-label': import("prop-types").Requireable<string>;
652
684
  dataTestId: import("prop-types").Requireable<string>;
653
685
  }>>;
654
686
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
@@ -41,6 +41,8 @@ declare const ContentSkillModalPropTypes: {
41
41
  customStyle: PropTypes.Requireable<{
42
42
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
43
43
  }>;
44
+ useTitle: PropTypes.Requireable<boolean>;
45
+ customLabelClassName: PropTypes.Requireable<string>;
44
46
  }>>;
45
47
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
46
48
  title: PropTypes.Requireable<string>;
@@ -193,6 +195,8 @@ declare const ContentSkillModalPropTypes: {
193
195
  customStyle: PropTypes.Requireable<{
194
196
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
195
197
  }>;
198
+ useTitle: PropTypes.Requireable<boolean>;
199
+ customLabelClassName: PropTypes.Requireable<string>;
196
200
  }> | PropTypes.InferProps<{
197
201
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
198
202
  type: PropTypes.Requireable<string>;
@@ -230,6 +234,8 @@ declare const ContentSkillModalPropTypes: {
230
234
  customStyle: PropTypes.Requireable<{
231
235
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
232
236
  }>;
237
+ useTitle: PropTypes.Requireable<boolean>;
238
+ customLabelClassName: PropTypes.Requireable<string>;
233
239
  }>>>;
234
240
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
235
241
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -256,9 +262,11 @@ declare const ContentSkillModalPropTypes: {
256
262
  customStyle: PropTypes.Requireable<{
257
263
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
258
264
  }>;
265
+ customLabelClassName: PropTypes.Requireable<string>;
259
266
  }> | null | undefined)[]>;
260
267
  'data-name': PropTypes.Requireable<string>;
261
268
  'aria-label': PropTypes.Requireable<string>;
269
+ enableScroll: PropTypes.Requireable<boolean>;
262
270
  }>>>;
263
271
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
264
272
  ariaLabel: PropTypes.Requireable<string>;
@@ -269,6 +277,7 @@ declare const ContentSkillModalPropTypes: {
269
277
  type: PropTypes.Requireable<string>;
270
278
  primaryColor: PropTypes.Requireable<string>;
271
279
  closeOnClick: PropTypes.Requireable<boolean>;
280
+ enableScroll: PropTypes.Requireable<boolean>;
272
281
  }> | null | undefined>>;
273
282
  }>>;
274
283
  }> | PropTypes.InferProps<{
@@ -315,6 +324,7 @@ declare const ContentSkillModalPropTypes: {
315
324
  customStyle: PropTypes.Requireable<{
316
325
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
317
326
  }>;
327
+ customLabelClassName: PropTypes.Requireable<string>;
318
328
  }> | null | undefined)[]>;
319
329
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
320
330
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -362,6 +372,8 @@ declare const ContentSkillModalPropTypes: {
362
372
  customStyle: PropTypes.Requireable<{
363
373
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
364
374
  }>;
375
+ useTitle: PropTypes.Requireable<boolean>;
376
+ customLabelClassName: PropTypes.Requireable<string>;
365
377
  }> | PropTypes.InferProps<{
366
378
  componentType: PropTypes.Requireable<string>;
367
379
  'data-name': PropTypes.Requireable<string>;
@@ -392,6 +404,7 @@ declare const ContentSkillModalPropTypes: {
392
404
  customStyle: PropTypes.Requireable<{
393
405
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
394
406
  }>;
407
+ customLabelClassName: PropTypes.Requireable<string>;
395
408
  }> | null | undefined)[]>;
396
409
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
397
410
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -464,6 +477,8 @@ declare const ContentSkillModalPropTypes: {
464
477
  customStyle: PropTypes.Requireable<{
465
478
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
466
479
  }>;
480
+ useTitle: PropTypes.Requireable<boolean>;
481
+ customLabelClassName: PropTypes.Requireable<string>;
467
482
  }>>;
468
483
  required: PropTypes.Requireable<boolean>;
469
484
  }> | null | undefined>>;
@@ -530,6 +545,8 @@ declare const ContentSkillModalPropTypes: {
530
545
  customStyle: PropTypes.Requireable<{
531
546
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
532
547
  }>;
548
+ useTitle: PropTypes.Requireable<boolean>;
549
+ customLabelClassName: PropTypes.Requireable<string>;
533
550
  }> | null | undefined)[]>;
534
551
  buttonMenuAction: PropTypes.Requireable<PropTypes.InferProps<{
535
552
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -568,6 +585,8 @@ declare const ContentSkillModalPropTypes: {
568
585
  customStyle: PropTypes.Requireable<{
569
586
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
570
587
  }>;
588
+ useTitle: PropTypes.Requireable<boolean>;
589
+ customLabelClassName: PropTypes.Requireable<string>;
571
590
  }>>>;
572
591
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
573
592
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -594,9 +613,11 @@ declare const ContentSkillModalPropTypes: {
594
613
  customStyle: PropTypes.Requireable<{
595
614
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
596
615
  }>;
616
+ customLabelClassName: PropTypes.Requireable<string>;
597
617
  }> | null | undefined)[]>;
598
618
  'data-name': PropTypes.Requireable<string>;
599
619
  'aria-label': PropTypes.Requireable<string>;
620
+ enableScroll: PropTypes.Requireable<boolean>;
600
621
  }>>>;
601
622
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
602
623
  ariaLabel: PropTypes.Requireable<string>;
@@ -607,6 +628,7 @@ declare const ContentSkillModalPropTypes: {
607
628
  type: PropTypes.Requireable<string>;
608
629
  primaryColor: PropTypes.Requireable<string>;
609
630
  closeOnClick: PropTypes.Requireable<boolean>;
631
+ enableScroll: PropTypes.Requireable<boolean>;
610
632
  }>>;
611
633
  }>>>;
612
634
  filters: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -639,13 +661,23 @@ declare const ContentSkillModalPropTypes: {
639
661
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
640
662
  }> | null | undefined)[]>;
641
663
  searchOptions: PropTypes.Requireable<PropTypes.InferProps<{
642
- value: PropTypes.Requireable<string>;
643
- placeholder: PropTypes.Validator<string>;
644
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
645
- onClear: PropTypes.Requireable<(...args: any[]) => any>;
646
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
647
- onBlur: PropTypes.Requireable<(...args: any[]) => any>;
648
- theme: PropTypes.Requireable<string>;
664
+ action: PropTypes.Requireable<string>;
665
+ method: PropTypes.Requireable<string>;
666
+ onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
667
+ onReset: PropTypes.Requireable<(...args: any[]) => any>;
668
+ onSearchFocus: PropTypes.Requireable<(...args: any[]) => any>;
669
+ onSearchBlur: PropTypes.Requireable<(...args: any[]) => any>;
670
+ search: PropTypes.Requireable<PropTypes.InferProps<{
671
+ value: PropTypes.Requireable<string>;
672
+ placeholder: PropTypes.Validator<string>;
673
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
674
+ onClear: PropTypes.Requireable<(...args: any[]) => any>;
675
+ onFocus: PropTypes.Requireable<(...args: any[]) => any>;
676
+ onBlur: PropTypes.Requireable<(...args: any[]) => any>;
677
+ theme: PropTypes.Requireable<string>;
678
+ dataTestId: PropTypes.Requireable<string>;
679
+ }>>;
680
+ 'search-reset-aria-label': PropTypes.Requireable<string>;
649
681
  dataTestId: PropTypes.Requireable<string>;
650
682
  }>>;
651
683
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAStD,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACpD,OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { WebContextValues } from '../../atom/provider/web-context';
3
3
  import { FilterCheckboxAndSearchProps } from './props-types';
4
- declare const FilterCheckboxAndSearch: {
4
+ declare const FilterCkeckboxAndSearch: {
5
5
  (props: FilterCheckboxAndSearchProps, context: WebContextValues): JSX.Element;
6
6
  propTypes: {
7
7
  title: import("prop-types").Requireable<string>;
@@ -15,13 +15,23 @@ declare const FilterCheckboxAndSearch: {
15
15
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
16
16
  }> | null | undefined)[]>;
17
17
  searchOptions: import("prop-types").Requireable<import("prop-types").InferProps<{
18
- value: import("prop-types").Requireable<string>;
19
- placeholder: import("prop-types").Validator<string>;
20
- onChange: import("prop-types").Requireable<(...args: any[]) => any>;
21
- onClear: import("prop-types").Requireable<(...args: any[]) => any>;
22
- onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
23
- onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
24
- theme: import("prop-types").Requireable<string>;
18
+ action: import("prop-types").Requireable<string>;
19
+ method: import("prop-types").Requireable<string>;
20
+ onSubmit: import("prop-types").Requireable<(...args: any[]) => any>;
21
+ onReset: import("prop-types").Requireable<(...args: any[]) => any>;
22
+ onSearchFocus: import("prop-types").Requireable<(...args: any[]) => any>;
23
+ onSearchBlur: import("prop-types").Requireable<(...args: any[]) => any>;
24
+ search: import("prop-types").Requireable<import("prop-types").InferProps<{
25
+ value: import("prop-types").Requireable<string>;
26
+ placeholder: import("prop-types").Validator<string>;
27
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
28
+ onClear: import("prop-types").Requireable<(...args: any[]) => any>;
29
+ onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
30
+ onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
31
+ theme: import("prop-types").Requireable<string>;
32
+ dataTestId: import("prop-types").Requireable<string>;
33
+ }>>;
34
+ 'search-reset-aria-label': import("prop-types").Requireable<string>;
25
35
  dataTestId: import("prop-types").Requireable<string>;
26
36
  }>>;
27
37
  };
@@ -29,5 +39,5 @@ declare const FilterCheckboxAndSearch: {
29
39
  translate: import("prop-types").Requireable<(...args: any[]) => any>;
30
40
  };
31
41
  };
32
- export default FilterCheckboxAndSearch;
42
+ export default FilterCkeckboxAndSearch;
33
43
  //# sourceMappingURL=index.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;CAiG1B,CAAC;AAQF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAIjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiG1B,CAAC;AAQF,eAAe,uBAAuB,CAAC"}
@@ -11,10 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  var _title = _interopRequireDefault(require("../../atom/title"));
12
12
  var _tag = _interopRequireDefault(require("../../atom/tag"));
13
13
  var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
14
+ var _searchForm = _interopRequireDefault(require("../../molecule/search-form"));
14
15
  var _provider = _interopRequireWildcard(require("../../atom/provider"));
15
16
  var _checkboxWithTitle = _interopRequireDefault(require("../../atom/checkbox-with-title"));
16
17
  var _colors = require("../../variables/colors");
17
- var _inputSearch = _interopRequireDefault(require("../../atom/input-search"));
18
18
  var _style = _interopRequireDefault(require("./style.css"));
19
19
  var _propsTypes = _interopRequireDefault(require("./props-types"));
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
@@ -37,7 +37,7 @@ const CHECKBOX_TITLE_STYLE = {
37
37
  fontWeight: 'normal'
38
38
  };
39
39
  const INITIAL_VISIBLE_OPTIONS = 5;
40
- const FilterCheckboxAndSearch = (props, context) => {
40
+ const FilterCkeckboxAndSearch = (props, context) => {
41
41
  const {
42
42
  title,
43
43
  searchOptions,
@@ -81,7 +81,7 @@ const FilterCheckboxAndSearch = (props, context) => {
81
81
  customStyle: CLEAR_BUTTON_STYLE
82
82
  })) : null), searchOptions ? /*#__PURE__*/_react.default.createElement("div", {
83
83
  className: _style.default.search
84
- }, /*#__PURE__*/_react.default.createElement(_inputSearch.default, searchOptions)) : null, /*#__PURE__*/_react.default.createElement("div", {
84
+ }, /*#__PURE__*/_react.default.createElement(_searchForm.default, searchOptions)) : null, /*#__PURE__*/_react.default.createElement("div", {
85
85
  "data-testid": "filter-checkbox-and-search-options-container",
86
86
  className: _style.default.optionsContainer
87
87
  }, (0, _isEmpty2.default)(visibleOptions) ? /*#__PURE__*/_react.default.createElement("p", {
@@ -106,7 +106,7 @@ const FilterCheckboxAndSearch = (props, context) => {
106
106
  customStyle: CHECKBOX_TITLE_STYLE
107
107
  }), /*#__PURE__*/_react.default.createElement("p", {
108
108
  className: _style.default.optionCount
109
- }, count)))), (0, _size2.default)(options) > INITIAL_VISIBLE_OPTIONS ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
109
+ }, count)))), options.length > INITIAL_VISIBLE_OPTIONS ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
110
110
  label: showMore ? translate('Show less') : translate('Show more'),
111
111
  type: "text",
112
112
  icon: {
@@ -122,9 +122,9 @@ const FilterCheckboxAndSearch = (props, context) => {
122
122
  "data-testid": "filter-checkbox-and-search-show-button"
123
123
  })) : null);
124
124
  };
125
- FilterCheckboxAndSearch.propTypes = process.env.NODE_ENV !== "production" ? _propsTypes.default : {};
126
- FilterCheckboxAndSearch.contextTypes = {
125
+ FilterCkeckboxAndSearch.propTypes = process.env.NODE_ENV !== "production" ? _propsTypes.default : {};
126
+ FilterCkeckboxAndSearch.contextTypes = {
127
127
  translate: _provider.default.childContextTypes.translate
128
128
  };
129
- var _default = exports.default = FilterCheckboxAndSearch;
129
+ var _default = exports.default = FilterCkeckboxAndSearch;
130
130
  //# sourceMappingURL=index.js.map
@@ -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","marginTop","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 marginTop: '16px'\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 <div>\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 </div>\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,Y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E,EAAE;QACRqB,KAAK,EAAEC,cAAM,CAACC;MAChB;IACF,CAAE;IACFpB,WAAW,EAAE1C,iBAAkB;IAC/ByC,OAAO,EAAEhB,cAAe;IACxB,eAAY;EAAwC,CACrD,CACE,CAAC,GACJ,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,CAAAxF,OAAA,GAEawB,uBAAuB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_title","_interopRequireDefault","_tag","_buttonLink","_searchForm","_provider","_checkboxWithTitle","_colors","_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","marginTop","CHECKBOX_TITLE_STYLE","marginRight","INITIAL_VISIBLE_OPTIONS","FilterCkeckboxAndSearch","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","length","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 SearchForm from '../../molecule/search-form';\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 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 marginTop: '16px'\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 FilterCkeckboxAndSearch = (\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 <SearchForm {...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 {options.length > INITIAL_VISIBLE_OPTIONS ? (\n <div>\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 </div>\n ) : null}\n </div>\n );\n};\n\nFilterCkeckboxAndSearch.propTypes = propTypes;\n\nFilterCkeckboxAndSearch.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterCkeckboxAndSearch;\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,WAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,SA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AA+C,aAAA,CAAC5D,WAAA,CAAAa,OAAU;IACTqD,KAAK,EAAEpB,QAAQ,GAAGF,SAAS,CAAC,WAAW,CAAC,GAAGA,SAAS,CAAC,WAAW,CAAE;IAClEwB,IAAI,EAAC,MAAM;IACXoB,IAAI,EAAE;MACJC,QAAQ,EAAE,OAAO;MACjBC,MAAM,EAAE;QACNN,IAAI,EAAEtC,QAAQ,GAAG,YAAY,GAAG,cAAc;QAC9CuB,IAAI,EAAE,EAAE;QACRsB,KAAK,EAAEC,cAAM,CAACC;MAChB;IACF,CAAE;IACFrB,WAAW,EAAE1C,iBAAkB;IAC/ByC,OAAO,EAAEhB,cAAe;IACxB,eAAY;EAAwC,CACrD,CACE,CAAC,GACJ,IACD,CAAC;AAEV,CAAC;AAEDlB,uBAAuB,CAACyD,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,mBAAS;AAE7CzD,uBAAuB,CAAC6D,YAAY,GAAG;EACrCtD,SAAS,EAAEuD,iBAAQ,CAACC,iBAAiB,CAACxD;AACxC,CAAC;AAAC,IAAAyD,QAAA,GAAAC,OAAA,CAAAzF,OAAA,GAEawB,uBAAuB","ignoreList":[]}
@@ -1,4 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
3
+ import SearchForm from '../../molecule/search-form';
2
4
  declare const propTypes: {
3
5
  title: PropTypes.Requireable<string>;
4
6
  onClear: PropTypes.Requireable<(...args: any[]) => any>;
@@ -11,13 +13,23 @@ declare const propTypes: {
11
13
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
12
14
  }> | null | undefined)[]>;
13
15
  searchOptions: PropTypes.Requireable<PropTypes.InferProps<{
14
- value: PropTypes.Requireable<string>;
15
- placeholder: PropTypes.Validator<string>;
16
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
17
- onClear: PropTypes.Requireable<(...args: any[]) => any>;
18
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
19
- onBlur: PropTypes.Requireable<(...args: any[]) => any>;
20
- theme: PropTypes.Requireable<string>;
16
+ action: PropTypes.Requireable<string>;
17
+ method: PropTypes.Requireable<string>;
18
+ onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
19
+ onReset: PropTypes.Requireable<(...args: any[]) => any>;
20
+ onSearchFocus: PropTypes.Requireable<(...args: any[]) => any>;
21
+ onSearchBlur: PropTypes.Requireable<(...args: any[]) => any>;
22
+ search: PropTypes.Requireable<PropTypes.InferProps<{
23
+ value: PropTypes.Requireable<string>;
24
+ placeholder: PropTypes.Validator<string>;
25
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
26
+ onClear: PropTypes.Requireable<(...args: any[]) => any>;
27
+ onFocus: PropTypes.Requireable<(...args: any[]) => any>;
28
+ onBlur: PropTypes.Requireable<(...args: any[]) => any>;
29
+ theme: PropTypes.Requireable<string>;
30
+ dataTestId: PropTypes.Requireable<string>;
31
+ }>>;
32
+ 'search-reset-aria-label': PropTypes.Requireable<string>;
21
33
  dataTestId: PropTypes.Requireable<string>;
22
34
  }>>;
23
35
  };
@@ -29,20 +41,10 @@ export declare type FilterCheckboxAndSearchOptions = {
29
41
  count: number;
30
42
  onClick: () => void;
31
43
  };
32
- declare type SearchType = {
33
- value?: string;
34
- placeholder: string;
35
- onChange?: () => void;
36
- onClear?: () => void;
37
- onFocus?: () => void;
38
- onBlur?: () => void;
39
- theme?: 'default' | 'coorpmanager';
40
- dataTestId?: string;
41
- };
42
44
  export declare type FilterCheckboxAndSearchProps = {
43
45
  title: string;
44
46
  onClear: () => void;
45
- searchOptions: SearchType;
47
+ searchOptions: React.ComponentProps<typeof SearchForm>;
46
48
  options: FilterCheckboxAndSearchOptions[];
47
49
  };
48
50
  export default propTypes;
@@ -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;AACnC,OAAO,UAAU,MAAM,4BAA4B,CAAC;AAEpD,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,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;IACvD,OAAO,EAAE,8BAA8B,EAAE,CAAC;CAC3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -3,7 +3,7 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
  var _propTypes = _interopRequireDefault(require("prop-types"));
6
- var _inputSearch = _interopRequireDefault(require("../../atom/input-search"));
6
+ var _searchForm = _interopRequireDefault(require("../../molecule/search-form"));
7
7
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8
8
  const propTypes = {
9
9
  title: _propTypes.default.string,
@@ -16,7 +16,7 @@ const propTypes = {
16
16
  count: _propTypes.default.number,
17
17
  onClick: _propTypes.default.func
18
18
  })),
19
- searchOptions: _propTypes.default.shape(_inputSearch.default.propTypes)
19
+ searchOptions: _propTypes.default.shape(_searchForm.default.propTypes)
20
20
  };
21
21
  var _default = exports.default = propTypes;
22
22
  //# sourceMappingURL=props-types.js.map
@@ -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","_searchForm","e","__esModule","default","propTypes","title","PropTypes","string","onClear","func","options","arrayOf","shape","label","value","selected","bool","ref","count","number","onClick","searchOptions","SearchForm","_default","exports"],"sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport SearchForm from '../../molecule/search-form';\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(SearchForm.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\nexport type FilterCheckboxAndSearchProps = {\n title: string;\n onClear: () => void;\n searchOptions: React.ComponentProps<typeof SearchForm>;\n options: FilterCheckboxAndSearchOptions[];\n};\n\nexport default propTypes;\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAoD,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpD,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,mBAAU,CAAClB,SAAS;AACrD,CAAC;AAAC,IAAAmB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAkBaC,SAAS","ignoreList":[]}
@@ -49,6 +49,7 @@ declare const HeaderWithActions: {
49
49
  customStyle: import("prop-types").Requireable<{
50
50
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
51
51
  }>;
52
+ customLabelClassName: import("prop-types").Requireable<string>;
52
53
  }> | null | undefined)[]>;
53
54
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
54
55
  menuButtonClassName: import("prop-types").Requireable<string>;
@@ -90,6 +91,8 @@ declare const HeaderWithActions: {
90
91
  customStyle: import("prop-types").Requireable<{
91
92
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
92
93
  }>;
94
+ useTitle: import("prop-types").Requireable<boolean>;
95
+ customLabelClassName: import("prop-types").Requireable<string>;
93
96
  }> | null | undefined)[]>;
94
97
  };
95
98
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAO3E,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAO3E,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
@@ -48,6 +48,7 @@ declare const headerWithActionsPropTypes: {
48
48
  customStyle: PropTypes.Requireable<{
49
49
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
50
50
  }>;
51
+ customLabelClassName: PropTypes.Requireable<string>;
51
52
  }> | null | undefined)[]>;
52
53
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
53
54
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -89,6 +90,8 @@ declare const headerWithActionsPropTypes: {
89
90
  customStyle: PropTypes.Requireable<{
90
91
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
91
92
  }>;
93
+ useTitle: PropTypes.Requireable<boolean>;
94
+ customLabelClassName: PropTypes.Requireable<string>;
92
95
  }> | null | undefined)[]>;
93
96
  };
94
97
  export default headerWithActionsPropTypes;