@coorpacademy/components 11.36.5-alpha.2 → 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 (220) 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.js +2 -2
  49. package/es/molecule/multi-filter-panel/index.js.map +1 -1
  50. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  51. package/es/molecule/title-radio-wrapper/index.d.ts +2 -0
  52. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  53. package/es/molecule/title-radio-wrapper/types.d.ts +2 -0
  54. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  55. package/es/organism/content-skill-modal/index.d.ts +22 -0
  56. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  57. package/es/organism/content-skill-modal/types.d.ts +22 -0
  58. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  59. package/es/organism/filter-checkbox-and-search/index.d.ts +2 -2
  60. package/es/organism/filter-checkbox-and-search/index.js +5 -5
  61. package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
  62. package/es/organism/header-with-actions/index.d.ts +3 -0
  63. package/es/organism/header-with-actions/index.d.ts.map +1 -1
  64. package/es/organism/header-with-actions/types.d.ts +3 -0
  65. package/es/organism/header-with-actions/types.d.ts.map +1 -1
  66. package/es/organism/icon-editor/index.d.ts +2 -0
  67. package/es/organism/icon-editor/index.d.ts.map +1 -1
  68. package/es/organism/icon-editor/types.d.ts +2 -0
  69. package/es/organism/icon-editor/types.d.ts.map +1 -1
  70. package/es/organism/list-items/index.d.ts +22 -0
  71. package/es/organism/mooc-header/index.d.ts +1 -0
  72. package/es/organism/mooc-header/index.d.ts.map +1 -1
  73. package/es/organism/mooc-header/index.js +7 -3
  74. package/es/organism/mooc-header/index.js.map +1 -1
  75. package/es/organism/mooc-header/style.css +7 -0
  76. package/es/organism/rewards-form/index.d.ts +2 -0
  77. package/es/organism/select-opponents/index.d.ts +2 -0
  78. package/es/organism/select-opponents/index.d.ts.map +1 -1
  79. package/es/organism/select-opponents/types.d.ts +2 -0
  80. package/es/organism/select-opponents/types.d.ts.map +1 -1
  81. package/es/organism/setup-header/index.d.ts +8 -0
  82. package/es/organism/title-and-input/index.d.ts +6 -0
  83. package/es/organism/title-and-input/index.d.ts.map +1 -1
  84. package/es/organism/title-and-input/types.d.ts +6 -0
  85. package/es/organism/title-and-input/types.d.ts.map +1 -1
  86. package/es/organism/wizard-contents/index.d.ts +10 -0
  87. package/es/template/app-player/loading/index.d.ts +24 -0
  88. package/es/template/app-player/player/index.d.ts +48 -0
  89. package/es/template/app-player/player/slides/index.d.ts +24 -0
  90. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  91. package/es/template/app-player/popin-correction/index.d.ts +24 -0
  92. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  93. package/es/template/app-player/popin-end/index.d.ts +24 -0
  94. package/es/template/app-review/index.d.ts +24 -0
  95. package/es/template/app-review/index.d.ts.map +1 -1
  96. package/es/template/app-review/player/prop-types.d.ts +24 -0
  97. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  98. package/es/template/app-review/prop-types.d.ts +24 -0
  99. package/es/template/app-review/prop-types.d.ts.map +1 -1
  100. package/es/template/back-office/brand-create/index.d.ts +8 -0
  101. package/es/template/back-office/brand-create/index.d.ts.map +1 -1
  102. package/es/template/back-office/brand-list/index.d.ts +8 -0
  103. package/es/template/back-office/brand-list/index.d.ts.map +1 -1
  104. package/es/template/back-office/brand-update/index.d.ts +89 -0
  105. package/es/template/back-office/dashboard-preview/index.d.ts +8 -0
  106. package/es/template/back-office/layout/index.d.ts +8 -0
  107. package/es/template/back-office/layout/index.d.ts.map +1 -1
  108. package/es/template/common/dashboard/index.d.ts +48 -0
  109. package/es/template/common/search-page/index.d.ts +24 -0
  110. package/es/template/external-course/index.d.ts +24 -0
  111. package/lib/atom/button-link/index.d.ts +2 -0
  112. package/lib/atom/button-link/index.d.ts.map +1 -1
  113. package/lib/atom/button-link/index.js +6 -5
  114. package/lib/atom/button-link/index.js.map +1 -1
  115. package/lib/atom/button-link/types.d.ts +3 -0
  116. package/lib/atom/button-link/types.d.ts.map +1 -1
  117. package/lib/atom/button-link/types.js +3 -1
  118. package/lib/atom/button-link/types.js.map +1 -1
  119. package/lib/atom/button-menu/index.d.ts +2 -0
  120. package/lib/atom/button-menu/index.d.ts.map +1 -1
  121. package/lib/atom/button-menu/index.js +9 -3
  122. package/lib/atom/button-menu/index.js.map +1 -1
  123. package/lib/atom/button-menu/style.css +22 -0
  124. package/lib/atom/button-menu/types.d.ts +5 -0
  125. package/lib/atom/button-menu/types.d.ts.map +1 -1
  126. package/lib/atom/button-menu/types.js +4 -2
  127. package/lib/atom/button-menu/types.js.map +1 -1
  128. package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
  129. package/lib/atom/checkbox-with-title/index.js +2 -2
  130. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  131. package/lib/atom/radio-with-title/index.d.ts +2 -0
  132. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  133. package/lib/atom/radio-with-title/types.d.ts +2 -0
  134. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  135. package/lib/atom/tag/index.d.ts +1 -1
  136. package/lib/atom/tag/index.d.ts.map +1 -1
  137. package/lib/atom/tag/index.js +3 -14
  138. package/lib/atom/tag/index.js.map +1 -1
  139. package/lib/atom/title/index.d.ts +2 -0
  140. package/lib/molecule/bullet-point-menu-button/index.d.ts +1 -0
  141. package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
  142. package/lib/molecule/bullet-point-menu-button/types.d.ts +1 -0
  143. package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
  144. package/lib/molecule/button-menu-action/index.d.ts +5 -0
  145. package/lib/molecule/button-menu-action/index.d.ts.map +1 -1
  146. package/lib/molecule/button-menu-action/index.js +5 -2
  147. package/lib/molecule/button-menu-action/index.js.map +1 -1
  148. package/lib/molecule/button-menu-action/types.d.ts +9 -3
  149. package/lib/molecule/button-menu-action/types.d.ts.map +1 -1
  150. package/lib/molecule/button-menu-action/types.js +2 -1
  151. package/lib/molecule/button-menu-action/types.js.map +1 -1
  152. package/lib/molecule/cm-popin/types.d.ts +24 -0
  153. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  154. package/lib/molecule/expandible-actionable-table/index.d.ts +4 -0
  155. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  156. package/lib/molecule/expandible-actionable-table/types.d.ts +4 -0
  157. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  158. package/lib/molecule/multi-filter-panel/index.js.map +1 -1
  159. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  160. package/lib/molecule/title-radio-wrapper/index.d.ts +2 -0
  161. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  162. package/lib/molecule/title-radio-wrapper/types.d.ts +2 -0
  163. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  164. package/lib/organism/content-skill-modal/index.d.ts +22 -0
  165. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  166. package/lib/organism/content-skill-modal/types.d.ts +22 -0
  167. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  168. package/lib/organism/filter-checkbox-and-search/index.d.ts +2 -2
  169. package/lib/organism/filter-checkbox-and-search/index.js +5 -5
  170. package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
  171. package/lib/organism/header-with-actions/index.d.ts +3 -0
  172. package/lib/organism/header-with-actions/index.d.ts.map +1 -1
  173. package/lib/organism/header-with-actions/types.d.ts +3 -0
  174. package/lib/organism/header-with-actions/types.d.ts.map +1 -1
  175. package/lib/organism/icon-editor/index.d.ts +2 -0
  176. package/lib/organism/icon-editor/index.d.ts.map +1 -1
  177. package/lib/organism/icon-editor/types.d.ts +2 -0
  178. package/lib/organism/icon-editor/types.d.ts.map +1 -1
  179. package/lib/organism/list-items/index.d.ts +22 -0
  180. package/lib/organism/mooc-header/index.d.ts +1 -0
  181. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  182. package/lib/organism/mooc-header/index.js +7 -3
  183. package/lib/organism/mooc-header/index.js.map +1 -1
  184. package/lib/organism/mooc-header/style.css +7 -0
  185. package/lib/organism/rewards-form/index.d.ts +2 -0
  186. package/lib/organism/select-opponents/index.d.ts +2 -0
  187. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  188. package/lib/organism/select-opponents/types.d.ts +2 -0
  189. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  190. package/lib/organism/setup-header/index.d.ts +8 -0
  191. package/lib/organism/title-and-input/index.d.ts +6 -0
  192. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  193. package/lib/organism/title-and-input/types.d.ts +6 -0
  194. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  195. package/lib/organism/wizard-contents/index.d.ts +10 -0
  196. package/lib/template/app-player/loading/index.d.ts +24 -0
  197. package/lib/template/app-player/player/index.d.ts +48 -0
  198. package/lib/template/app-player/player/slides/index.d.ts +24 -0
  199. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  200. package/lib/template/app-player/popin-correction/index.d.ts +24 -0
  201. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  202. package/lib/template/app-player/popin-end/index.d.ts +24 -0
  203. package/lib/template/app-review/index.d.ts +24 -0
  204. package/lib/template/app-review/index.d.ts.map +1 -1
  205. package/lib/template/app-review/player/prop-types.d.ts +24 -0
  206. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  207. package/lib/template/app-review/prop-types.d.ts +24 -0
  208. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  209. package/lib/template/back-office/brand-create/index.d.ts +8 -0
  210. package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
  211. package/lib/template/back-office/brand-list/index.d.ts +8 -0
  212. package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
  213. package/lib/template/back-office/brand-update/index.d.ts +89 -0
  214. package/lib/template/back-office/dashboard-preview/index.d.ts +8 -0
  215. package/lib/template/back-office/layout/index.d.ts +8 -0
  216. package/lib/template/back-office/layout/index.d.ts.map +1 -1
  217. package/lib/template/common/dashboard/index.d.ts +48 -0
  218. package/lib/template/common/search-page/index.d.ts +24 -0
  219. package/lib/template/external-course/index.d.ts +24 -0
  220. package/package.json +2 -2
@@ -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<{
@@ -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>;
@@ -39,5 +39,5 @@ declare const FilterCheckboxAndSearch: {
39
39
  translate: import("prop-types").Requireable<(...args: any[]) => any>;
40
40
  };
41
41
  };
42
- export default FilterCheckboxAndSearch;
42
+ export default FilterCkeckboxAndSearch;
43
43
  //# sourceMappingURL=index.d.ts.map
@@ -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,
@@ -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","_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","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 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 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 <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 {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,WAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,SAAA,GAAAP,uBAAA,CAAAC,OAAA;AAEA,IAAAO,kBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,WAAA,GAAAR,sBAAA,CAAAF,OAAA;AAAsE,SAAAW,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,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C,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,SAAA,GAAAP,uBAAA,CAAAC,OAAA;AAEA,IAAAO,kBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAP,sBAAA,CAAAF,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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":[]}
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAuC,EACrC,0BAA0B,EAC3B,MAAM,+CAA+C,CAAC;AACvD,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAS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AASlF,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,QAAQ,GAAG;IACd,KAAK,EAAE,WAAW,GAAG,iBAAiB,GAAG,OAAO,GAAG,UAAU,CAAC;IAC9D,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,aAAK,eAAe,GAAG;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,UAAU,EAAE,eAAe,CAAC;IAC5B,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;CACpD,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC"}
@@ -69,6 +69,8 @@ declare const IconEditor: {
69
69
  customStyle: import("prop-types").Requireable<{
70
70
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
71
71
  }>;
72
+ useTitle: import("prop-types").Requireable<boolean>;
73
+ customLabelClassName: import("prop-types").Requireable<string>;
72
74
  }>>;
73
75
  };
74
76
  };
@@ -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"}
@@ -66,6 +66,8 @@ declare const IconEditorPropTypes: {
66
66
  customStyle: PropTypes.Requireable<{
67
67
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
68
68
  }>;
69
+ useTitle: PropTypes.Requireable<boolean>;
70
+ customLabelClassName: PropTypes.Requireable<string>;
69
71
  }>>;
70
72
  };
71
73
  export default IconEditorPropTypes;
@@ -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"}
@@ -50,6 +50,8 @@ declare namespace ListItems {
50
50
  customStyle: PropTypes.Requireable<{
51
51
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
52
52
  }>;
53
+ useTitle: PropTypes.Requireable<boolean>;
54
+ customLabelClassName: PropTypes.Requireable<string>;
53
55
  }>>;
54
56
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
55
57
  title: PropTypes.Requireable<string>;
@@ -202,6 +204,8 @@ declare namespace ListItems {
202
204
  customStyle: PropTypes.Requireable<{
203
205
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
204
206
  }>;
207
+ useTitle: PropTypes.Requireable<boolean>;
208
+ customLabelClassName: PropTypes.Requireable<string>;
205
209
  }> | PropTypes.InferProps<{
206
210
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
207
211
  type: PropTypes.Requireable<string>;
@@ -239,6 +243,8 @@ declare namespace ListItems {
239
243
  customStyle: PropTypes.Requireable<{
240
244
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
241
245
  }>;
246
+ useTitle: PropTypes.Requireable<boolean>;
247
+ customLabelClassName: PropTypes.Requireable<string>;
242
248
  }>>>;
243
249
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
244
250
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -265,9 +271,11 @@ declare namespace ListItems {
265
271
  customStyle: PropTypes.Requireable<{
266
272
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
267
273
  }>;
274
+ customLabelClassName: PropTypes.Requireable<string>;
268
275
  }> | null | undefined)[]>;
269
276
  'data-name': PropTypes.Requireable<string>;
270
277
  'aria-label': PropTypes.Requireable<string>;
278
+ enableScroll: PropTypes.Requireable<boolean>;
271
279
  }>>>;
272
280
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
273
281
  ariaLabel: PropTypes.Requireable<string>;
@@ -278,6 +286,7 @@ declare namespace ListItems {
278
286
  type: PropTypes.Requireable<string>;
279
287
  primaryColor: PropTypes.Requireable<string>;
280
288
  closeOnClick: PropTypes.Requireable<boolean>;
289
+ enableScroll: PropTypes.Requireable<boolean>;
281
290
  }> | null | undefined>>;
282
291
  }>>;
283
292
  }> | PropTypes.InferProps<{
@@ -324,6 +333,7 @@ declare namespace ListItems {
324
333
  customStyle: PropTypes.Requireable<{
325
334
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
326
335
  }>;
336
+ customLabelClassName: PropTypes.Requireable<string>;
327
337
  }> | null | undefined)[]>;
328
338
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
329
339
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -371,6 +381,8 @@ declare namespace ListItems {
371
381
  customStyle: PropTypes.Requireable<{
372
382
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
373
383
  }>;
384
+ useTitle: PropTypes.Requireable<boolean>;
385
+ customLabelClassName: PropTypes.Requireable<string>;
374
386
  }> | PropTypes.InferProps<{
375
387
  componentType: PropTypes.Requireable<string>;
376
388
  'data-name': PropTypes.Requireable<string>;
@@ -401,6 +413,7 @@ declare namespace ListItems {
401
413
  customStyle: PropTypes.Requireable<{
402
414
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
403
415
  }>;
416
+ customLabelClassName: PropTypes.Requireable<string>;
404
417
  }> | null | undefined)[]>;
405
418
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
406
419
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -473,6 +486,8 @@ declare namespace ListItems {
473
486
  customStyle: PropTypes.Requireable<{
474
487
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
475
488
  }>;
489
+ useTitle: PropTypes.Requireable<boolean>;
490
+ customLabelClassName: PropTypes.Requireable<string>;
476
491
  }>>;
477
492
  required: PropTypes.Requireable<boolean>;
478
493
  }> | null | undefined>>;
@@ -539,6 +554,8 @@ declare namespace ListItems {
539
554
  customStyle: PropTypes.Requireable<{
540
555
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
541
556
  }>;
557
+ useTitle: PropTypes.Requireable<boolean>;
558
+ customLabelClassName: PropTypes.Requireable<string>;
542
559
  }> | null | undefined)[]>;
543
560
  buttonMenuAction: PropTypes.Requireable<PropTypes.InferProps<{
544
561
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -577,6 +594,8 @@ declare namespace ListItems {
577
594
  customStyle: PropTypes.Requireable<{
578
595
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
579
596
  }>;
597
+ useTitle: PropTypes.Requireable<boolean>;
598
+ customLabelClassName: PropTypes.Requireable<string>;
580
599
  }>>>;
581
600
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
582
601
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -603,9 +622,11 @@ declare namespace ListItems {
603
622
  customStyle: PropTypes.Requireable<{
604
623
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
605
624
  }>;
625
+ customLabelClassName: PropTypes.Requireable<string>;
606
626
  }> | null | undefined)[]>;
607
627
  'data-name': PropTypes.Requireable<string>;
608
628
  'aria-label': PropTypes.Requireable<string>;
629
+ enableScroll: PropTypes.Requireable<boolean>;
609
630
  }>>>;
610
631
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
611
632
  ariaLabel: PropTypes.Requireable<string>;
@@ -616,6 +637,7 @@ declare namespace ListItems {
616
637
  type: PropTypes.Requireable<string>;
617
638
  primaryColor: PropTypes.Requireable<string>;
618
639
  closeOnClick: PropTypes.Requireable<boolean>;
640
+ enableScroll: PropTypes.Requireable<boolean>;
619
641
  }>>;
620
642
  };
621
643
  }
@@ -119,6 +119,7 @@ declare class MoocHeader extends React.Component<any, any, any> {
119
119
  }> | null | undefined)[]>;
120
120
  onMenuOpen: PropTypes.Requireable<(...args: any[]) => any>;
121
121
  onMenuClose: PropTypes.Requireable<(...args: any[]) => any>;
122
+ enableScroll: PropTypes.Requireable<boolean>;
122
123
  };
123
124
  static contextTypes: {
124
125
  translate: PropTypes.Requireable<(...args: any[]) => any>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAuBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqGE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAuBC;IArBC;;;;;MAKC;IAgDH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAKC;IAED,0BAKC;IAED,sBAIC;IAED,qBAIC;IAED,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IA7GD,2EASC;IAGC,kBAAsB;IAmGxB,0DASE;IAEF,6BA+eC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAuBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsGE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAuBC;IArBC;;;;;MAKC;IAgDH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAKC;IAED,0BAKC;IAED,sBAIC;IAED,qBAIC;IAED,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IA7GD,2EASC;IAGC,kBAAsB;IAmGxB,0DAaE;IAEF,6BAifC;CACF"}
@@ -178,7 +178,8 @@ class MoocHeader extends _react.default.Component {
178
178
  ...(item.selected && {
179
179
  color: primaryColor
180
180
  })
181
- }
181
+ },
182
+ customLabelClassName: _style.default.buttonContentLabel
182
183
  }));
183
184
  };
184
185
  render() {
@@ -313,9 +314,11 @@ class MoocHeader extends _react.default.Component {
313
314
  alignItems: 'flex-start'
314
315
  },
315
316
  closeOnClick: true,
317
+ enableScroll: true,
316
318
  menuWrapper: {
317
319
  customStyle: {
318
- top: '30px'
320
+ top: '30px',
321
+ maxWidth: 360
319
322
  }
320
323
  },
321
324
  menu: {
@@ -704,7 +707,8 @@ MoocHeader.propTypes = process.env.NODE_ENV !== "production" ? {
704
707
  })
705
708
  })),
706
709
  onMenuOpen: _propTypes.default.func,
707
- onMenuClose: _propTypes.default.func
710
+ onMenuClose: _propTypes.default.func,
711
+ enableScroll: _propTypes.default.bool
708
712
  } : {};
709
713
  var _default = exports.default = MoocHeader;
710
714
  //# sourceMappingURL=index.js.map