@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
@@ -75,6 +75,8 @@ declare namespace Dashboard {
75
75
  customStyle: PropTypes.Requireable<{
76
76
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
77
77
  }>;
78
+ useTitle: PropTypes.Requireable<boolean>;
79
+ customLabelClassName: PropTypes.Requireable<string>;
78
80
  }>>;
79
81
  required: PropTypes.Requireable<boolean>;
80
82
  }>>;
@@ -200,6 +202,8 @@ declare namespace Dashboard {
200
202
  customStyle: PropTypes.Requireable<{
201
203
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
202
204
  }>;
205
+ useTitle: PropTypes.Requireable<boolean>;
206
+ customLabelClassName: PropTypes.Requireable<string>;
203
207
  }>>;
204
208
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
205
209
  title: PropTypes.Requireable<string>;
@@ -352,6 +356,8 @@ declare namespace Dashboard {
352
356
  customStyle: PropTypes.Requireable<{
353
357
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
354
358
  }>;
359
+ useTitle: PropTypes.Requireable<boolean>;
360
+ customLabelClassName: PropTypes.Requireable<string>;
355
361
  }> | PropTypes.InferProps<{
356
362
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
357
363
  type: PropTypes.Requireable<string>;
@@ -389,6 +395,8 @@ declare namespace Dashboard {
389
395
  customStyle: PropTypes.Requireable<{
390
396
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
391
397
  }>;
398
+ useTitle: PropTypes.Requireable<boolean>;
399
+ customLabelClassName: PropTypes.Requireable<string>;
392
400
  }>>>;
393
401
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
394
402
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -415,9 +423,11 @@ declare namespace Dashboard {
415
423
  customStyle: PropTypes.Requireable<{
416
424
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
417
425
  }>;
426
+ customLabelClassName: PropTypes.Requireable<string>;
418
427
  }> | null | undefined)[]>;
419
428
  'data-name': PropTypes.Requireable<string>;
420
429
  'aria-label': PropTypes.Requireable<string>;
430
+ enableScroll: PropTypes.Requireable<boolean>;
421
431
  }>>>;
422
432
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
423
433
  ariaLabel: PropTypes.Requireable<string>;
@@ -428,6 +438,7 @@ declare namespace Dashboard {
428
438
  type: PropTypes.Requireable<string>;
429
439
  primaryColor: PropTypes.Requireable<string>;
430
440
  closeOnClick: PropTypes.Requireable<boolean>;
441
+ enableScroll: PropTypes.Requireable<boolean>;
431
442
  }> | null | undefined>>;
432
443
  }>>;
433
444
  }> | PropTypes.InferProps<{
@@ -474,6 +485,7 @@ declare namespace Dashboard {
474
485
  customStyle: PropTypes.Requireable<{
475
486
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
476
487
  }>;
488
+ customLabelClassName: PropTypes.Requireable<string>;
477
489
  }> | null | undefined)[]>;
478
490
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
479
491
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -521,6 +533,8 @@ declare namespace Dashboard {
521
533
  customStyle: PropTypes.Requireable<{
522
534
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
523
535
  }>;
536
+ useTitle: PropTypes.Requireable<boolean>;
537
+ customLabelClassName: PropTypes.Requireable<string>;
524
538
  }> | PropTypes.InferProps<{
525
539
  componentType: PropTypes.Requireable<string>;
526
540
  'data-name': PropTypes.Requireable<string>;
@@ -551,6 +565,7 @@ declare namespace Dashboard {
551
565
  customStyle: PropTypes.Requireable<{
552
566
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
553
567
  }>;
568
+ customLabelClassName: PropTypes.Requireable<string>;
554
569
  }> | null | undefined)[]>;
555
570
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
556
571
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -623,6 +638,8 @@ declare namespace Dashboard {
623
638
  customStyle: PropTypes.Requireable<{
624
639
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
625
640
  }>;
641
+ useTitle: PropTypes.Requireable<boolean>;
642
+ customLabelClassName: PropTypes.Requireable<string>;
626
643
  }>>;
627
644
  required: PropTypes.Requireable<boolean>;
628
645
  }> | null | undefined>>;
@@ -689,6 +706,8 @@ declare namespace Dashboard {
689
706
  customStyle: PropTypes.Requireable<{
690
707
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
691
708
  }>;
709
+ useTitle: PropTypes.Requireable<boolean>;
710
+ customLabelClassName: PropTypes.Requireable<string>;
692
711
  }> | null | undefined)[]>;
693
712
  buttonMenuAction: PropTypes.Requireable<PropTypes.InferProps<{
694
713
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -727,6 +746,8 @@ declare namespace Dashboard {
727
746
  customStyle: PropTypes.Requireable<{
728
747
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
729
748
  }>;
749
+ useTitle: PropTypes.Requireable<boolean>;
750
+ customLabelClassName: PropTypes.Requireable<string>;
730
751
  }>>>;
731
752
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
732
753
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -753,9 +774,11 @@ declare namespace Dashboard {
753
774
  customStyle: PropTypes.Requireable<{
754
775
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
755
776
  }>;
777
+ customLabelClassName: PropTypes.Requireable<string>;
756
778
  }> | null | undefined)[]>;
757
779
  'data-name': PropTypes.Requireable<string>;
758
780
  'aria-label': PropTypes.Requireable<string>;
781
+ enableScroll: PropTypes.Requireable<boolean>;
759
782
  }>>>;
760
783
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
761
784
  ariaLabel: PropTypes.Requireable<string>;
@@ -766,6 +789,7 @@ declare namespace Dashboard {
766
789
  type: PropTypes.Requireable<string>;
767
790
  primaryColor: PropTypes.Requireable<string>;
768
791
  closeOnClick: PropTypes.Requireable<boolean>;
792
+ enableScroll: PropTypes.Requireable<boolean>;
769
793
  }>>;
770
794
  }> | null | undefined>>;
771
795
  }>>;
@@ -859,6 +883,8 @@ declare namespace Dashboard {
859
883
  customStyle: PropTypes.Requireable<{
860
884
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
861
885
  }>;
886
+ useTitle: PropTypes.Requireable<boolean>;
887
+ customLabelClassName: PropTypes.Requireable<string>;
862
888
  }>>;
863
889
  required: PropTypes.Requireable<boolean>;
864
890
  }>>;
@@ -984,6 +1010,8 @@ declare namespace Dashboard {
984
1010
  customStyle: PropTypes.Requireable<{
985
1011
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
986
1012
  }>;
1013
+ useTitle: PropTypes.Requireable<boolean>;
1014
+ customLabelClassName: PropTypes.Requireable<string>;
987
1015
  }>>;
988
1016
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
989
1017
  title: PropTypes.Requireable<string>;
@@ -1136,6 +1164,8 @@ declare namespace Dashboard {
1136
1164
  customStyle: PropTypes.Requireable<{
1137
1165
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1138
1166
  }>;
1167
+ useTitle: PropTypes.Requireable<boolean>;
1168
+ customLabelClassName: PropTypes.Requireable<string>;
1139
1169
  }> | PropTypes.InferProps<{
1140
1170
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
1141
1171
  type: PropTypes.Requireable<string>;
@@ -1173,6 +1203,8 @@ declare namespace Dashboard {
1173
1203
  customStyle: PropTypes.Requireable<{
1174
1204
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1175
1205
  }>;
1206
+ useTitle: PropTypes.Requireable<boolean>;
1207
+ customLabelClassName: PropTypes.Requireable<string>;
1176
1208
  }>>>;
1177
1209
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
1178
1210
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -1199,9 +1231,11 @@ declare namespace Dashboard {
1199
1231
  customStyle: PropTypes.Requireable<{
1200
1232
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1201
1233
  }>;
1234
+ customLabelClassName: PropTypes.Requireable<string>;
1202
1235
  }> | null | undefined)[]>;
1203
1236
  'data-name': PropTypes.Requireable<string>;
1204
1237
  'aria-label': PropTypes.Requireable<string>;
1238
+ enableScroll: PropTypes.Requireable<boolean>;
1205
1239
  }>>>;
1206
1240
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
1207
1241
  ariaLabel: PropTypes.Requireable<string>;
@@ -1212,6 +1246,7 @@ declare namespace Dashboard {
1212
1246
  type: PropTypes.Requireable<string>;
1213
1247
  primaryColor: PropTypes.Requireable<string>;
1214
1248
  closeOnClick: PropTypes.Requireable<boolean>;
1249
+ enableScroll: PropTypes.Requireable<boolean>;
1215
1250
  }> | null | undefined>>;
1216
1251
  }>>;
1217
1252
  }> | PropTypes.InferProps<{
@@ -1258,6 +1293,7 @@ declare namespace Dashboard {
1258
1293
  customStyle: PropTypes.Requireable<{
1259
1294
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1260
1295
  }>;
1296
+ customLabelClassName: PropTypes.Requireable<string>;
1261
1297
  }> | null | undefined)[]>;
1262
1298
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
1263
1299
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -1305,6 +1341,8 @@ declare namespace Dashboard {
1305
1341
  customStyle: PropTypes.Requireable<{
1306
1342
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1307
1343
  }>;
1344
+ useTitle: PropTypes.Requireable<boolean>;
1345
+ customLabelClassName: PropTypes.Requireable<string>;
1308
1346
  }> | PropTypes.InferProps<{
1309
1347
  componentType: PropTypes.Requireable<string>;
1310
1348
  'data-name': PropTypes.Requireable<string>;
@@ -1335,6 +1373,7 @@ declare namespace Dashboard {
1335
1373
  customStyle: PropTypes.Requireable<{
1336
1374
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1337
1375
  }>;
1376
+ customLabelClassName: PropTypes.Requireable<string>;
1338
1377
  }> | null | undefined)[]>;
1339
1378
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
1340
1379
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -1407,6 +1446,8 @@ declare namespace Dashboard {
1407
1446
  customStyle: PropTypes.Requireable<{
1408
1447
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1409
1448
  }>;
1449
+ useTitle: PropTypes.Requireable<boolean>;
1450
+ customLabelClassName: PropTypes.Requireable<string>;
1410
1451
  }>>;
1411
1452
  required: PropTypes.Requireable<boolean>;
1412
1453
  }> | null | undefined>>;
@@ -1473,6 +1514,8 @@ declare namespace Dashboard {
1473
1514
  customStyle: PropTypes.Requireable<{
1474
1515
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1475
1516
  }>;
1517
+ useTitle: PropTypes.Requireable<boolean>;
1518
+ customLabelClassName: PropTypes.Requireable<string>;
1476
1519
  }> | null | undefined)[]>;
1477
1520
  buttonMenuAction: PropTypes.Requireable<PropTypes.InferProps<{
1478
1521
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -1511,6 +1554,8 @@ declare namespace Dashboard {
1511
1554
  customStyle: PropTypes.Requireable<{
1512
1555
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1513
1556
  }>;
1557
+ useTitle: PropTypes.Requireable<boolean>;
1558
+ customLabelClassName: PropTypes.Requireable<string>;
1514
1559
  }>>>;
1515
1560
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
1516
1561
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -1537,9 +1582,11 @@ declare namespace Dashboard {
1537
1582
  customStyle: PropTypes.Requireable<{
1538
1583
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1539
1584
  }>;
1585
+ customLabelClassName: PropTypes.Requireable<string>;
1540
1586
  }> | null | undefined)[]>;
1541
1587
  'data-name': PropTypes.Requireable<string>;
1542
1588
  'aria-label': PropTypes.Requireable<string>;
1589
+ enableScroll: PropTypes.Requireable<boolean>;
1543
1590
  }>>>;
1544
1591
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
1545
1592
  ariaLabel: PropTypes.Requireable<string>;
@@ -1550,6 +1597,7 @@ declare namespace Dashboard {
1550
1597
  type: PropTypes.Requireable<string>;
1551
1598
  primaryColor: PropTypes.Requireable<string>;
1552
1599
  closeOnClick: PropTypes.Requireable<boolean>;
1600
+ enableScroll: PropTypes.Requireable<boolean>;
1553
1601
  }>>;
1554
1602
  }> | null | undefined>>;
1555
1603
  }>>;
@@ -256,6 +256,8 @@ declare namespace SearchPage {
256
256
  customStyle: PropTypes.Requireable<{
257
257
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
258
258
  }>;
259
+ useTitle: PropTypes.Requireable<boolean>;
260
+ customLabelClassName: PropTypes.Requireable<string>;
259
261
  }>>;
260
262
  required: PropTypes.Requireable<boolean>;
261
263
  }>>;
@@ -381,6 +383,8 @@ declare namespace SearchPage {
381
383
  customStyle: PropTypes.Requireable<{
382
384
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
383
385
  }>;
386
+ useTitle: PropTypes.Requireable<boolean>;
387
+ customLabelClassName: PropTypes.Requireable<string>;
384
388
  }>>;
385
389
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
386
390
  title: PropTypes.Requireable<string>;
@@ -533,6 +537,8 @@ declare namespace SearchPage {
533
537
  customStyle: PropTypes.Requireable<{
534
538
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
535
539
  }>;
540
+ useTitle: PropTypes.Requireable<boolean>;
541
+ customLabelClassName: PropTypes.Requireable<string>;
536
542
  }> | PropTypes.InferProps<{
537
543
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
538
544
  type: PropTypes.Requireable<string>;
@@ -570,6 +576,8 @@ declare namespace SearchPage {
570
576
  customStyle: PropTypes.Requireable<{
571
577
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
572
578
  }>;
579
+ useTitle: PropTypes.Requireable<boolean>;
580
+ customLabelClassName: PropTypes.Requireable<string>;
573
581
  }>>>;
574
582
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
575
583
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -596,9 +604,11 @@ declare namespace SearchPage {
596
604
  customStyle: PropTypes.Requireable<{
597
605
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
598
606
  }>;
607
+ customLabelClassName: PropTypes.Requireable<string>;
599
608
  }> | null | undefined)[]>;
600
609
  'data-name': PropTypes.Requireable<string>;
601
610
  'aria-label': PropTypes.Requireable<string>;
611
+ enableScroll: PropTypes.Requireable<boolean>;
602
612
  }>>>;
603
613
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
604
614
  ariaLabel: PropTypes.Requireable<string>;
@@ -609,6 +619,7 @@ declare namespace SearchPage {
609
619
  type: PropTypes.Requireable<string>;
610
620
  primaryColor: PropTypes.Requireable<string>;
611
621
  closeOnClick: PropTypes.Requireable<boolean>;
622
+ enableScroll: PropTypes.Requireable<boolean>;
612
623
  }> | null | undefined>>;
613
624
  }>>;
614
625
  }> | PropTypes.InferProps<{
@@ -655,6 +666,7 @@ declare namespace SearchPage {
655
666
  customStyle: PropTypes.Requireable<{
656
667
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
657
668
  }>;
669
+ customLabelClassName: PropTypes.Requireable<string>;
658
670
  }> | null | undefined)[]>;
659
671
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
660
672
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -702,6 +714,8 @@ declare namespace SearchPage {
702
714
  customStyle: PropTypes.Requireable<{
703
715
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
704
716
  }>;
717
+ useTitle: PropTypes.Requireable<boolean>;
718
+ customLabelClassName: PropTypes.Requireable<string>;
705
719
  }> | PropTypes.InferProps<{
706
720
  componentType: PropTypes.Requireable<string>;
707
721
  'data-name': PropTypes.Requireable<string>;
@@ -732,6 +746,7 @@ declare namespace SearchPage {
732
746
  customStyle: PropTypes.Requireable<{
733
747
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
734
748
  }>;
749
+ customLabelClassName: PropTypes.Requireable<string>;
735
750
  }> | null | undefined)[]>;
736
751
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
737
752
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -804,6 +819,8 @@ declare namespace SearchPage {
804
819
  customStyle: PropTypes.Requireable<{
805
820
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
806
821
  }>;
822
+ useTitle: PropTypes.Requireable<boolean>;
823
+ customLabelClassName: PropTypes.Requireable<string>;
807
824
  }>>;
808
825
  required: PropTypes.Requireable<boolean>;
809
826
  }> | null | undefined>>;
@@ -870,6 +887,8 @@ declare namespace SearchPage {
870
887
  customStyle: PropTypes.Requireable<{
871
888
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
872
889
  }>;
890
+ useTitle: PropTypes.Requireable<boolean>;
891
+ customLabelClassName: PropTypes.Requireable<string>;
873
892
  }> | null | undefined)[]>;
874
893
  buttonMenuAction: PropTypes.Requireable<PropTypes.InferProps<{
875
894
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -908,6 +927,8 @@ declare namespace SearchPage {
908
927
  customStyle: PropTypes.Requireable<{
909
928
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
910
929
  }>;
930
+ useTitle: PropTypes.Requireable<boolean>;
931
+ customLabelClassName: PropTypes.Requireable<string>;
911
932
  }>>>;
912
933
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
913
934
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -934,9 +955,11 @@ declare namespace SearchPage {
934
955
  customStyle: PropTypes.Requireable<{
935
956
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
936
957
  }>;
958
+ customLabelClassName: PropTypes.Requireable<string>;
937
959
  }> | null | undefined)[]>;
938
960
  'data-name': PropTypes.Requireable<string>;
939
961
  'aria-label': PropTypes.Requireable<string>;
962
+ enableScroll: PropTypes.Requireable<boolean>;
940
963
  }>>>;
941
964
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
942
965
  ariaLabel: PropTypes.Requireable<string>;
@@ -947,6 +970,7 @@ declare namespace SearchPage {
947
970
  type: PropTypes.Requireable<string>;
948
971
  primaryColor: PropTypes.Requireable<string>;
949
972
  closeOnClick: PropTypes.Requireable<boolean>;
973
+ enableScroll: PropTypes.Requireable<boolean>;
950
974
  }>>;
951
975
  }> | null | undefined>>;
952
976
  }>>;
@@ -93,6 +93,8 @@ declare namespace ExternalCourse {
93
93
  customStyle: PropTypes.Requireable<{
94
94
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
95
95
  }>;
96
+ useTitle: PropTypes.Requireable<boolean>;
97
+ customLabelClassName: PropTypes.Requireable<string>;
96
98
  }>>;
97
99
  required: PropTypes.Requireable<boolean>;
98
100
  }>>;
@@ -218,6 +220,8 @@ declare namespace ExternalCourse {
218
220
  customStyle: PropTypes.Requireable<{
219
221
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
220
222
  }>;
223
+ useTitle: PropTypes.Requireable<boolean>;
224
+ customLabelClassName: PropTypes.Requireable<string>;
221
225
  }>>;
222
226
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
223
227
  title: PropTypes.Requireable<string>;
@@ -370,6 +374,8 @@ declare namespace ExternalCourse {
370
374
  customStyle: PropTypes.Requireable<{
371
375
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
372
376
  }>;
377
+ useTitle: PropTypes.Requireable<boolean>;
378
+ customLabelClassName: PropTypes.Requireable<string>;
373
379
  }> | PropTypes.InferProps<{
374
380
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
375
381
  type: PropTypes.Requireable<string>;
@@ -407,6 +413,8 @@ declare namespace ExternalCourse {
407
413
  customStyle: PropTypes.Requireable<{
408
414
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
409
415
  }>;
416
+ useTitle: PropTypes.Requireable<boolean>;
417
+ customLabelClassName: PropTypes.Requireable<string>;
410
418
  }>>>;
411
419
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
412
420
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -433,9 +441,11 @@ declare namespace ExternalCourse {
433
441
  customStyle: PropTypes.Requireable<{
434
442
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
435
443
  }>;
444
+ customLabelClassName: PropTypes.Requireable<string>;
436
445
  }> | null | undefined)[]>;
437
446
  'data-name': PropTypes.Requireable<string>;
438
447
  'aria-label': PropTypes.Requireable<string>;
448
+ enableScroll: PropTypes.Requireable<boolean>;
439
449
  }>>>;
440
450
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
441
451
  ariaLabel: PropTypes.Requireable<string>;
@@ -446,6 +456,7 @@ declare namespace ExternalCourse {
446
456
  type: PropTypes.Requireable<string>;
447
457
  primaryColor: PropTypes.Requireable<string>;
448
458
  closeOnClick: PropTypes.Requireable<boolean>;
459
+ enableScroll: PropTypes.Requireable<boolean>;
449
460
  }> | null | undefined>>;
450
461
  }>>;
451
462
  }> | PropTypes.InferProps<{
@@ -492,6 +503,7 @@ declare namespace ExternalCourse {
492
503
  customStyle: PropTypes.Requireable<{
493
504
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
494
505
  }>;
506
+ customLabelClassName: PropTypes.Requireable<string>;
495
507
  }> | null | undefined)[]>;
496
508
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
497
509
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -539,6 +551,8 @@ declare namespace ExternalCourse {
539
551
  customStyle: PropTypes.Requireable<{
540
552
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
541
553
  }>;
554
+ useTitle: PropTypes.Requireable<boolean>;
555
+ customLabelClassName: PropTypes.Requireable<string>;
542
556
  }> | PropTypes.InferProps<{
543
557
  componentType: PropTypes.Requireable<string>;
544
558
  'data-name': PropTypes.Requireable<string>;
@@ -569,6 +583,7 @@ declare namespace ExternalCourse {
569
583
  customStyle: PropTypes.Requireable<{
570
584
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
571
585
  }>;
586
+ customLabelClassName: PropTypes.Requireable<string>;
572
587
  }> | null | undefined)[]>;
573
588
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
574
589
  menuButtonClassName: PropTypes.Requireable<string>;
@@ -641,6 +656,8 @@ declare namespace ExternalCourse {
641
656
  customStyle: PropTypes.Requireable<{
642
657
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
643
658
  }>;
659
+ useTitle: PropTypes.Requireable<boolean>;
660
+ customLabelClassName: PropTypes.Requireable<string>;
644
661
  }>>;
645
662
  required: PropTypes.Requireable<boolean>;
646
663
  }> | null | undefined>>;
@@ -707,6 +724,8 @@ declare namespace ExternalCourse {
707
724
  customStyle: PropTypes.Requireable<{
708
725
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
709
726
  }>;
727
+ useTitle: PropTypes.Requireable<boolean>;
728
+ customLabelClassName: PropTypes.Requireable<string>;
710
729
  }> | null | undefined)[]>;
711
730
  buttonMenuAction: PropTypes.Requireable<PropTypes.InferProps<{
712
731
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -745,6 +764,8 @@ declare namespace ExternalCourse {
745
764
  customStyle: PropTypes.Requireable<{
746
765
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
747
766
  }>;
767
+ useTitle: PropTypes.Requireable<boolean>;
768
+ customLabelClassName: PropTypes.Requireable<string>;
748
769
  }>>>;
749
770
  menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
750
771
  buttons: PropTypes.Validator<(PropTypes.InferProps<{
@@ -771,9 +792,11 @@ declare namespace ExternalCourse {
771
792
  customStyle: PropTypes.Requireable<{
772
793
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
773
794
  }>;
795
+ customLabelClassName: PropTypes.Requireable<string>;
774
796
  }> | null | undefined)[]>;
775
797
  'data-name': PropTypes.Requireable<string>;
776
798
  'aria-label': PropTypes.Requireable<string>;
799
+ enableScroll: PropTypes.Requireable<boolean>;
777
800
  }>>>;
778
801
  menuWrapper: PropTypes.Requireable<PropTypes.InferProps<{
779
802
  ariaLabel: PropTypes.Requireable<string>;
@@ -784,6 +807,7 @@ declare namespace ExternalCourse {
784
807
  type: PropTypes.Requireable<string>;
785
808
  primaryColor: PropTypes.Requireable<string>;
786
809
  closeOnClick: PropTypes.Requireable<boolean>;
810
+ enableScroll: PropTypes.Requireable<boolean>;
787
811
  }>>;
788
812
  }> | null | undefined>>;
789
813
  }>>;
@@ -38,6 +38,8 @@ declare const ButtonLink: {
38
38
  customStyle: import("prop-types").Requireable<{
39
39
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
40
40
  }>;
41
+ useTitle: import("prop-types").Requireable<boolean>;
42
+ customLabelClassName: import("prop-types").Requireable<string>;
41
43
  };
42
44
  };
43
45
  export default ButtonLink;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/index.tsx"],"names":[],"mappings":";AAOA,OAAkB,EAAC,eAAe,EAAW,MAAM,SAAS,CAAC;AAoD7D,QAAA,MAAM,UAAU;YAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIzC,CAAC;AAIF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/index.tsx"],"names":[],"mappings":";AAOA,OAAkB,EAAC,eAAe,EAAW,MAAM,SAAS,CAAC;AAqD7D,QAAA,MAAM,UAAU;YAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4IzC,CAAC;AAIF,eAAe,UAAU,CAAC"}
@@ -15,7 +15,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
17
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
18
- const getButtonContent = (icon, content, hovered, hoverBackgroundColor, hoverColor) => {
18
+ const getButtonContent = (icon, content, hovered, hoverBackgroundColor, hoverColor, customLabelClassName) => {
19
19
  const {
20
20
  type,
21
21
  faIcon,
@@ -27,9 +27,9 @@ const getButtonContent = (icon, content, hovered, hoverBackgroundColor, hoverCol
27
27
  const Icon = type && _buttonIcons.ICONS[type];
28
28
  if (!Icon && !faIcon) {
29
29
  return /*#__PURE__*/_react.default.createElement("div", {
30
- className: _style.default.buttonContent
30
+ className: (_style.default.buttonContent, customLabelClassName)
31
31
  }, /*#__PURE__*/_react.default.createElement("span", {
32
- className: _style.default.label
32
+ className: (_style.default.label, customLabelClassName)
33
33
  }, content));
34
34
  }
35
35
  const iconComponent = faIcon ? /*#__PURE__*/_react.default.createElement(_icon.default, {
@@ -72,7 +72,8 @@ const ButtonLink = props => {
72
72
  onKeyDown = _noop2.default,
73
73
  className,
74
74
  customStyle,
75
- useTitle = true
75
+ useTitle = true,
76
+ customLabelClassName
76
77
  } = props;
77
78
  const styleButton = (0, _classnames.default)(link && _style.default.link, className, _style.default.button, !label && _style.default.iconButton, type === 'primary' && _style.default.primary, type === 'secondary' && _style.default.secondary, type === 'tertiary' && _style.default.tertiary, type === 'text' && _style.default.text, type === 'dangerous' && _style.default.dangerous, disabled && _style.default.disabled);
78
79
  const [hovered, setHovered] = (0, _react.useState)(false);
@@ -120,7 +121,7 @@ const ButtonLink = props => {
120
121
  hoverBackgroundColor: hoverBackgroundColor,
121
122
  onMouseEnter: handleMouseOver,
122
123
  onMouseLeave: handleMouseLeave
123
- }), getButtonContent(icon, content ?? label, hovered, hoverBackgroundColor, hoverColor), renderToolTip());
124
+ }), getButtonContent(icon, content ?? label, hovered, hoverBackgroundColor, hoverColor, customLabelClassName), renderToolTip());
124
125
  }
125
126
  return /*#__PURE__*/_react.default.createElement("button", _extends({}, useTitle && {
126
127
  title: ariaLabel || label
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_link","_icon","_buttonIcons","_tooltip","_types","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","getButtonContent","icon","content","hovered","hoverBackgroundColor","hoverColor","type","faIcon","position","Icon","ICONS","createElement","className","style","buttonContent","label","iconComponent","iconName","name","iconColor","color","DEFAULT_ICON_COLOR","backgroundColor","size","faSize","wrapperSize","customStyle","theme","ButtonLink","props","usage","disabled","dataName","dataTestId","ariaLabel","tooltipText","tooltipPlacement","link","onClick","_noop2","onKeyDown","useTitle","styleButton","classnames","button","iconButton","primary","secondary","tertiary","text","dangerous","setHovered","useState","handleOnClick","useCallback","event","handleOnKeyDown","handleMouseOver","handleMouseLeave","TooltipContent","tooltipContentWrapper","renderToolTip","closeToolTipInformationTextAriaLabel","fontSize","anchorId","toolTipIsVisible","placement","_customStyle","useMemo","title","onMouseEnter","onMouseLeave","onMouseOver","tabIndex","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/atom/button-link/index.tsx"],"sourcesContent":["import React, {useCallback, useState, useMemo} from 'react';\nimport {noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport FaIcon, {DEFAULT_ICON_COLOR, IconProps} from '../icon';\nimport {ICONS} from '../../util/button-icons';\nimport ToolTip from '../tooltip';\nimport propTypes, {ButtonLinkProps, IconType} from './types';\nimport style from './style.css';\n\nconst getButtonContent = (\n icon?: IconType,\n content?: string | React.ReactNode,\n hovered?: boolean,\n hoverBackgroundColor?: string,\n hoverColor?: string\n) => {\n const {type, faIcon, position} = icon || {type: '', position: ''};\n const Icon = type && ICONS[type];\n\n if (!Icon && !faIcon) {\n return (\n <div className={style.buttonContent}>\n <span className={style.label}>{content}</span>\n </div>\n );\n }\n\n const iconComponent = faIcon ? (\n <FaIcon\n {...({\n iconName: faIcon.name,\n iconColor: hovered && hoverColor ? hoverColor : faIcon.color ?? DEFAULT_ICON_COLOR,\n // eslint-disable-next-line no-nested-ternary\n backgroundColor: !faIcon?.backgroundColor\n ? null\n : hovered && hoverBackgroundColor\n ? hoverBackgroundColor\n : faIcon.backgroundColor,\n size: {\n faSize: faIcon.size,\n wrapperSize: faIcon.size\n },\n customStyle: faIcon.customStyle\n } as IconProps)}\n />\n ) : (\n <Icon className={style.icon} theme=\"coorpmanager\" />\n );\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? iconComponent : null}\n {content ? <span className={style.label}>{content}</span> : null}\n {position === 'right' ? iconComponent : null}\n </div>\n );\n};\n\nconst ButtonLink = (props: ButtonLinkProps) => {\n const {\n type,\n usage = 'button',\n label,\n content,\n hoverBackgroundColor,\n hoverColor,\n disabled = false,\n icon,\n 'data-name': dataName,\n 'data-testid': dataTestId = 'button-link',\n 'aria-label': ariaLabel,\n tooltipText,\n tooltipPlacement = 'left',\n link,\n onClick = noop,\n onKeyDown = noop,\n className,\n customStyle,\n useTitle = true\n } = props;\n const styleButton = classnames(\n link && style.link,\n className,\n style.button,\n !label && style.iconButton,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n disabled && style.disabled\n );\n\n const [hovered, setHovered] = useState(false);\n\n const handleOnClick = useCallback(event => onClick(event), [onClick]);\n\n const handleOnKeyDown = useCallback(event => onKeyDown(event), [onKeyDown]);\n\n const handleMouseOver = useCallback(() => {\n setHovered(true);\n }, [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const TooltipContent = useCallback(\n () => <span className={style.tooltipContentWrapper}>{tooltipText || ariaLabel}</span>,\n [tooltipText, ariaLabel]\n );\n\n const renderToolTip = () => {\n const closeToolTipInformationTextAriaLabel = tooltipText || ariaLabel;\n if (!closeToolTipInformationTextAriaLabel) return null;\n return (\n <ToolTip\n fontSize={12}\n anchorId=\"button-icon\"\n toolTipIsVisible={hovered}\n placement={tooltipPlacement}\n TooltipContent={TooltipContent}\n closeToolTipInformationTextAriaLabel={closeToolTipInformationTextAriaLabel}\n />\n );\n };\n\n const _customStyle = useMemo(() => {\n return {\n ...customStyle,\n ...((hoverBackgroundColor || hoverColor) && hovered\n ? {\n backgroundColor: hoverBackgroundColor,\n color: hoverColor\n }\n : null)\n };\n }, [hoverBackgroundColor, hoverColor, hovered, customStyle]);\n\n if (link) {\n return (\n <Link\n {...link}\n {...(useTitle && {\n title: ariaLabel || label\n })}\n className={styleButton}\n style={customStyle}\n data-name={dataName}\n data-testid={dataTestId}\n onClick={handleOnClick}\n aria-label={ariaLabel || label}\n hoverColor={hoverColor}\n hoverBackgroundColor={hoverBackgroundColor}\n onMouseEnter={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n >\n {getButtonContent(icon, content ?? label, hovered, hoverBackgroundColor, hoverColor)}\n {renderToolTip()}\n </Link>\n );\n }\n\n return (\n <button\n {...(useTitle && {\n title: ariaLabel || label\n })}\n {...(ariaLabel && !label\n ? {\n 'data-for': 'button-icon',\n 'data-tip': hovered\n }\n : {})}\n // eslint-disable-next-line react/button-has-type\n type={usage}\n aria-label={ariaLabel || label}\n data-name={dataName}\n data-testid={dataTestId}\n style={_customStyle}\n className={styleButton}\n onClick={handleOnClick}\n onKeyDown={handleOnKeyDown}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n tabIndex={0}\n disabled={disabled}\n >\n {getButtonContent(icon, content ?? label, hovered, hoverBackgroundColor, hoverColor)}\n {renderToolTip()}\n </button>\n );\n};\n\nButtonLink.propTypes = propTypes;\n\nexport default ButtonLink;\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,KAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,KAAA,GAAAL,uBAAA,CAAAC,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,MAAA,GAAA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AAEZ,OAAO,EAAEC,oBAAoB,EAAEC,UAAU,CAAC,EACnFwD,aAAa,CAAC,CACX,CAAC;EAEX;EAEA,oBACElG,MAAA,CAAAiB,OAAA,CAAA+B,aAAA,WAAAjB,QAAA,KACO+C,QAAQ,IAAI;IACf4B,KAAK,EAAEnC,SAAS,IAAInB;EACtB,CAAC,EACImB,SAAS,IAAI,CAACnB,KAAK,GACpB;IACE,UAAU,EAAE,aAAa;IACzB,UAAU,EAAEZ;EACd,CAAC,GACD,CAAC,CAAC;IACN;IACAG,IAAI,EAAEwB,KAAM;IACZ,cAAYI,SAAS,IAAInB,KAAM;IAC/B,aAAWiB,QAAS;IACpB,eAAaC,UAAW;IACxBpB,KAAK,EAAEsD,YAAa;IACpBvD,SAAS,EAAE8B,WAAY;IACvBJ,OAAO,EAAEe,aAAc;IACvBb,SAAS,EAAEgB,eAAgB;IAC3BgB,WAAW,EAAEf,eAAgB;IAC7Bc,YAAY,EAAEb,gBAAiB;IAC/Be,QAAQ,EAAE,CAAE;IACZ1C,QAAQ,EAAEA;EAAS,IAElB/B,gBAAgB,CAACC,IAAI,EAAEC,OAAO,IAAIa,KAAK,EAAEZ,OAAO,EAAEC,oBAAoB,EAAEC,UAAU,CAAC,EACnFwD,aAAa,CAAC,CACT,CAAC;AAEb,CAAC;AAEDjC,UAAU,CAAC8C,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAnG,OAAA,GAElBgD,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_link","_icon","_buttonIcons","_tooltip","_types","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","getButtonContent","icon","content","hovered","hoverBackgroundColor","hoverColor","customLabelClassName","type","faIcon","position","Icon","ICONS","createElement","className","style","buttonContent","label","iconComponent","iconName","name","iconColor","color","DEFAULT_ICON_COLOR","backgroundColor","size","faSize","wrapperSize","customStyle","theme","ButtonLink","props","usage","disabled","dataName","dataTestId","ariaLabel","tooltipText","tooltipPlacement","link","onClick","_noop2","onKeyDown","useTitle","styleButton","classnames","button","iconButton","primary","secondary","tertiary","text","dangerous","setHovered","useState","handleOnClick","useCallback","event","handleOnKeyDown","handleMouseOver","handleMouseLeave","TooltipContent","tooltipContentWrapper","renderToolTip","closeToolTipInformationTextAriaLabel","fontSize","anchorId","toolTipIsVisible","placement","_customStyle","useMemo","title","onMouseEnter","onMouseLeave","onMouseOver","tabIndex","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/atom/button-link/index.tsx"],"sourcesContent":["import React, {useCallback, useState, useMemo} from 'react';\nimport {noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport FaIcon, {DEFAULT_ICON_COLOR, IconProps} from '../icon';\nimport {ICONS} from '../../util/button-icons';\nimport ToolTip from '../tooltip';\nimport propTypes, {ButtonLinkProps, IconType} from './types';\nimport style from './style.css';\n\nconst getButtonContent = (\n icon?: IconType,\n content?: string | React.ReactNode,\n hovered?: boolean,\n hoverBackgroundColor?: string,\n hoverColor?: string,\n customLabelClassName?: string\n) => {\n const {type, faIcon, position} = icon || {type: '', position: ''};\n const Icon = type && ICONS[type];\n\n if (!Icon && !faIcon) {\n return (\n <div className={(style.buttonContent, customLabelClassName)}>\n <span className={(style.label, customLabelClassName)}>{content}</span>\n </div>\n );\n }\n\n const iconComponent = faIcon ? (\n <FaIcon\n {...({\n iconName: faIcon.name,\n iconColor: hovered && hoverColor ? hoverColor : faIcon.color ?? DEFAULT_ICON_COLOR,\n // eslint-disable-next-line no-nested-ternary\n backgroundColor: !faIcon?.backgroundColor\n ? null\n : hovered && hoverBackgroundColor\n ? hoverBackgroundColor\n : faIcon.backgroundColor,\n size: {\n faSize: faIcon.size,\n wrapperSize: faIcon.size\n },\n customStyle: faIcon.customStyle\n } as IconProps)}\n />\n ) : (\n <Icon className={style.icon} theme=\"coorpmanager\" />\n );\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? iconComponent : null}\n {content ? <span className={style.label}>{content}</span> : null}\n {position === 'right' ? iconComponent : null}\n </div>\n );\n};\n\nconst ButtonLink = (props: ButtonLinkProps) => {\n const {\n type,\n usage = 'button',\n label,\n content,\n hoverBackgroundColor,\n hoverColor,\n disabled = false,\n icon,\n 'data-name': dataName,\n 'data-testid': dataTestId = 'button-link',\n 'aria-label': ariaLabel,\n tooltipText,\n tooltipPlacement = 'left',\n link,\n onClick = noop,\n onKeyDown = noop,\n className,\n customStyle,\n useTitle = true,\n customLabelClassName\n } = props;\n const styleButton = classnames(\n link && style.link,\n className,\n style.button,\n !label && style.iconButton,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n disabled && style.disabled\n );\n\n const [hovered, setHovered] = useState(false);\n\n const handleOnClick = useCallback(event => onClick(event), [onClick]);\n\n const handleOnKeyDown = useCallback(event => onKeyDown(event), [onKeyDown]);\n\n const handleMouseOver = useCallback(() => {\n setHovered(true);\n }, [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const TooltipContent = useCallback(\n () => <span className={style.tooltipContentWrapper}>{tooltipText || ariaLabel}</span>,\n [tooltipText, ariaLabel]\n );\n\n const renderToolTip = () => {\n const closeToolTipInformationTextAriaLabel = tooltipText || ariaLabel;\n if (!closeToolTipInformationTextAriaLabel) return null;\n return (\n <ToolTip\n fontSize={12}\n anchorId=\"button-icon\"\n toolTipIsVisible={hovered}\n placement={tooltipPlacement}\n TooltipContent={TooltipContent}\n closeToolTipInformationTextAriaLabel={closeToolTipInformationTextAriaLabel}\n />\n );\n };\n\n const _customStyle = useMemo(() => {\n return {\n ...customStyle,\n ...((hoverBackgroundColor || hoverColor) && hovered\n ? {\n backgroundColor: hoverBackgroundColor,\n color: hoverColor\n }\n : null)\n };\n }, [hoverBackgroundColor, hoverColor, hovered, customStyle]);\n\n if (link) {\n return (\n <Link\n {...link}\n {...(useTitle && {\n title: ariaLabel || label\n })}\n className={styleButton}\n style={customStyle}\n data-name={dataName}\n data-testid={dataTestId}\n onClick={handleOnClick}\n aria-label={ariaLabel || label}\n hoverColor={hoverColor}\n hoverBackgroundColor={hoverBackgroundColor}\n onMouseEnter={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n >\n {getButtonContent(\n icon,\n content ?? label,\n hovered,\n hoverBackgroundColor,\n hoverColor,\n customLabelClassName\n )}\n {renderToolTip()}\n </Link>\n );\n }\n\n return (\n <button\n {...(useTitle && {\n title: ariaLabel || label\n })}\n {...(ariaLabel && !label\n ? {\n 'data-for': 'button-icon',\n 'data-tip': hovered\n }\n : {})}\n // eslint-disable-next-line react/button-has-type\n type={usage}\n aria-label={ariaLabel || label}\n data-name={dataName}\n data-testid={dataTestId}\n style={_customStyle}\n className={styleButton}\n onClick={handleOnClick}\n onKeyDown={handleOnKeyDown}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n tabIndex={0}\n disabled={disabled}\n >\n {getButtonContent(icon, content ?? label, hovered, hoverBackgroundColor, hoverColor)}\n {renderToolTip()}\n </button>\n );\n};\n\nButtonLink.propTypes = propTypes;\n\nexport default ButtonLink;\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,KAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,KAAA,GAAAL,uBAAA,CAAAC,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAA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