@coorpacademy/components 11.33.3-alpha.12 → 11.33.3

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 (146) hide show
  1. package/es/atom/button-link/index.d.ts +0 -1
  2. package/es/atom/button-link/index.d.ts.map +1 -1
  3. package/es/atom/button-link/index.js +7 -11
  4. package/es/atom/button-link/index.js.map +1 -1
  5. package/es/atom/button-link/style.css +0 -10
  6. package/es/atom/button-link/types.d.ts +0 -2
  7. package/es/atom/button-link/types.d.ts.map +1 -1
  8. package/es/atom/button-link/types.js +1 -2
  9. package/es/atom/button-link/types.js.map +1 -1
  10. package/es/atom/button-link-icon/style.css +2 -2
  11. package/es/atom/button-menu/index.d.ts +0 -15
  12. package/es/atom/button-menu/index.d.ts.map +1 -1
  13. package/es/atom/button-menu/index.js +5 -43
  14. package/es/atom/button-menu/index.js.map +1 -1
  15. package/es/atom/button-menu/style.css +0 -13
  16. package/es/atom/button-menu/types.d.ts +0 -40
  17. package/es/atom/button-menu/types.d.ts.map +1 -1
  18. package/es/atom/button-menu/types.js +1 -16
  19. package/es/atom/button-menu/types.js.map +1 -1
  20. package/es/atom/tag/style.css +6 -10
  21. package/es/molecule/bullet-point-menu-button/index.d.ts +0 -16
  22. package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
  23. package/es/molecule/bullet-point-menu-button/index.js +3 -5
  24. package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
  25. package/es/molecule/bullet-point-menu-button/style.css +7 -26
  26. package/es/molecule/bullet-point-menu-button/types.d.ts +0 -17
  27. package/es/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
  28. package/es/molecule/bullet-point-menu-button/types.js +1 -2
  29. package/es/molecule/bullet-point-menu-button/types.js.map +1 -1
  30. package/es/molecule/cm-popin/types.d.ts +0 -34
  31. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  32. package/es/molecule/expandible-actionable-table/index.d.ts +0 -33
  33. package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  34. package/es/molecule/expandible-actionable-table/types.d.ts +0 -33
  35. package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  36. package/es/organism/list-items/index.d.ts +0 -34
  37. package/es/organism/setup-header/index.d.ts +0 -4
  38. package/es/organism/wizard-contents/index.d.ts +0 -35
  39. package/es/template/app-player/loading/index.d.ts +0 -34
  40. package/es/template/app-player/player/index.d.ts +0 -68
  41. package/es/template/app-player/player/slides/index.d.ts +0 -34
  42. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  43. package/es/template/app-player/popin-correction/index.d.ts +0 -34
  44. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  45. package/es/template/app-player/popin-end/index.d.ts +0 -34
  46. package/es/template/app-review/index.d.ts +0 -34
  47. package/es/template/app-review/index.d.ts.map +1 -1
  48. package/es/template/app-review/player/prop-types.d.ts +0 -34
  49. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  50. package/es/template/app-review/prop-types.d.ts +0 -34
  51. package/es/template/app-review/prop-types.d.ts.map +1 -1
  52. package/es/template/back-office/brand-create/index.d.ts +0 -4
  53. package/es/template/back-office/brand-create/index.d.ts.map +1 -1
  54. package/es/template/back-office/brand-list/index.d.ts +0 -4
  55. package/es/template/back-office/brand-list/index.d.ts.map +1 -1
  56. package/es/template/back-office/brand-update/index.d.ts +0 -107
  57. package/es/template/back-office/dashboard-preview/index.d.ts +0 -4
  58. package/es/template/back-office/layout/index.d.ts +0 -4
  59. package/es/template/back-office/layout/index.d.ts.map +1 -1
  60. package/es/template/common/dashboard/index.d.ts +0 -68
  61. package/es/template/common/search-page/index.d.ts +0 -34
  62. package/es/template/external-course/index.d.ts +0 -34
  63. package/es/variables/colors.css +0 -3
  64. package/lib/atom/button-link/index.d.ts +0 -1
  65. package/lib/atom/button-link/index.d.ts.map +1 -1
  66. package/lib/atom/button-link/index.js +7 -11
  67. package/lib/atom/button-link/index.js.map +1 -1
  68. package/lib/atom/button-link/style.css +0 -10
  69. package/lib/atom/button-link/types.d.ts +0 -2
  70. package/lib/atom/button-link/types.d.ts.map +1 -1
  71. package/lib/atom/button-link/types.js +1 -2
  72. package/lib/atom/button-link/types.js.map +1 -1
  73. package/lib/atom/button-link-icon/style.css +2 -2
  74. package/lib/atom/button-menu/index.d.ts +0 -15
  75. package/lib/atom/button-menu/index.d.ts.map +1 -1
  76. package/lib/atom/button-menu/index.js +5 -43
  77. package/lib/atom/button-menu/index.js.map +1 -1
  78. package/lib/atom/button-menu/style.css +0 -13
  79. package/lib/atom/button-menu/types.d.ts +0 -40
  80. package/lib/atom/button-menu/types.d.ts.map +1 -1
  81. package/lib/atom/button-menu/types.js +1 -16
  82. package/lib/atom/button-menu/types.js.map +1 -1
  83. package/lib/atom/tag/style.css +6 -10
  84. package/lib/molecule/bullet-point-menu-button/index.d.ts +0 -16
  85. package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
  86. package/lib/molecule/bullet-point-menu-button/index.js +3 -5
  87. package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
  88. package/lib/molecule/bullet-point-menu-button/style.css +7 -26
  89. package/lib/molecule/bullet-point-menu-button/types.d.ts +0 -17
  90. package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
  91. package/lib/molecule/bullet-point-menu-button/types.js +1 -2
  92. package/lib/molecule/bullet-point-menu-button/types.js.map +1 -1
  93. package/lib/molecule/cm-popin/types.d.ts +0 -34
  94. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  95. package/lib/molecule/expandible-actionable-table/index.d.ts +0 -33
  96. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  97. package/lib/molecule/expandible-actionable-table/types.d.ts +0 -33
  98. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  99. package/lib/organism/list-items/index.d.ts +0 -34
  100. package/lib/organism/setup-header/index.d.ts +0 -4
  101. package/lib/organism/wizard-contents/index.d.ts +0 -35
  102. package/lib/template/app-player/loading/index.d.ts +0 -34
  103. package/lib/template/app-player/player/index.d.ts +0 -68
  104. package/lib/template/app-player/player/slides/index.d.ts +0 -34
  105. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  106. package/lib/template/app-player/popin-correction/index.d.ts +0 -34
  107. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  108. package/lib/template/app-player/popin-end/index.d.ts +0 -34
  109. package/lib/template/app-review/index.d.ts +0 -34
  110. package/lib/template/app-review/index.d.ts.map +1 -1
  111. package/lib/template/app-review/player/prop-types.d.ts +0 -34
  112. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  113. package/lib/template/app-review/prop-types.d.ts +0 -34
  114. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  115. package/lib/template/back-office/brand-create/index.d.ts +0 -4
  116. package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
  117. package/lib/template/back-office/brand-list/index.d.ts +0 -4
  118. package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
  119. package/lib/template/back-office/brand-update/index.d.ts +0 -107
  120. package/lib/template/back-office/dashboard-preview/index.d.ts +0 -4
  121. package/lib/template/back-office/layout/index.d.ts +0 -4
  122. package/lib/template/back-office/layout/index.d.ts.map +1 -1
  123. package/lib/template/common/dashboard/index.d.ts +0 -68
  124. package/lib/template/common/search-page/index.d.ts +0 -34
  125. package/lib/template/external-course/index.d.ts +0 -34
  126. package/lib/variables/colors.css +0 -3
  127. package/package.json +3 -3
  128. package/es/organism/custom-skill-header/index.d.ts +0 -5
  129. package/es/organism/custom-skill-header/index.d.ts.map +0 -1
  130. package/es/organism/custom-skill-header/index.js +0 -88
  131. package/es/organism/custom-skill-header/index.js.map +0 -1
  132. package/es/organism/custom-skill-header/style.css +0 -54
  133. package/es/organism/custom-skill-header/types.d.ts +0 -28
  134. package/es/organism/custom-skill-header/types.d.ts.map +0 -1
  135. package/es/organism/custom-skill-header/types.js +0 -2
  136. package/es/organism/custom-skill-header/types.js.map +0 -1
  137. package/lib/organism/custom-skill-header/index.d.ts +0 -5
  138. package/lib/organism/custom-skill-header/index.d.ts.map +0 -1
  139. package/lib/organism/custom-skill-header/index.js +0 -93
  140. package/lib/organism/custom-skill-header/index.js.map +0 -1
  141. package/lib/organism/custom-skill-header/style.css +0 -54
  142. package/lib/organism/custom-skill-header/types.d.ts +0 -28
  143. package/lib/organism/custom-skill-header/types.d.ts.map +0 -1
  144. package/lib/organism/custom-skill-header/types.js +0 -4
  145. package/lib/organism/custom-skill-header/types.js.map +0 -1
  146. package/locales/.mtslconfig.json +0 -1
@@ -120,7 +120,6 @@ declare namespace Dashboard {
120
120
  disabled: PropTypes.Requireable<boolean>;
121
121
  className: PropTypes.Requireable<string>;
122
122
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
123
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
124
123
  }>>;
125
124
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
126
125
  title: PropTypes.Requireable<string>;
@@ -238,26 +237,10 @@ declare namespace Dashboard {
238
237
  label: PropTypes.Validator<string>;
239
238
  onClick: PropTypes.Validator<(...args: any[]) => any>;
240
239
  type: PropTypes.Requireable<string>;
241
- linkType: PropTypes.Requireable<string>;
242
- icon: PropTypes.Requireable<PropTypes.InferProps<{
243
- position: PropTypes.Validator<string>;
244
- type: PropTypes.Requireable<string>;
245
- faIcon: PropTypes.Requireable<PropTypes.InferProps<{
246
- name: PropTypes.Validator<string>;
247
- size: PropTypes.Requireable<number>;
248
- color: PropTypes.Requireable<string>;
249
- }>>;
250
- }>>;
251
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{
252
- color: PropTypes.Requireable<string>;
253
- hoverBackgroundColor: PropTypes.Requireable<string>;
254
- }>>;
255
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
256
240
  }> | null | undefined)[]>;
257
241
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
258
242
  menuButtonClassName: PropTypes.Requireable<string>;
259
243
  isBulkMenu: PropTypes.Requireable<boolean>;
260
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
261
244
  }> | null | undefined>>;
262
245
  }> | null | undefined)[]>;
263
246
  stickyFirstColumn: PropTypes.Requireable<boolean>;
@@ -290,7 +273,6 @@ declare namespace Dashboard {
290
273
  disabled: PropTypes.Requireable<boolean>;
291
274
  className: PropTypes.Requireable<string>;
292
275
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
293
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
294
276
  }> | PropTypes.InferProps<{
295
277
  componentType: PropTypes.Requireable<string>;
296
278
  disabled: PropTypes.Requireable<boolean>;
@@ -302,26 +284,10 @@ declare namespace Dashboard {
302
284
  label: PropTypes.Validator<string>;
303
285
  onClick: PropTypes.Validator<(...args: any[]) => any>;
304
286
  type: PropTypes.Requireable<string>;
305
- linkType: PropTypes.Requireable<string>;
306
- icon: PropTypes.Requireable<PropTypes.InferProps<{
307
- position: PropTypes.Validator<string>;
308
- type: PropTypes.Requireable<string>;
309
- faIcon: PropTypes.Requireable<PropTypes.InferProps<{
310
- name: PropTypes.Validator<string>;
311
- size: PropTypes.Requireable<number>;
312
- color: PropTypes.Requireable<string>;
313
- }>>;
314
- }>>;
315
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{
316
- color: PropTypes.Requireable<string>;
317
- hoverBackgroundColor: PropTypes.Requireable<string>;
318
- }>>;
319
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
320
287
  }> | null | undefined)[]>;
321
288
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
322
289
  menuButtonClassName: PropTypes.Requireable<string>;
323
290
  isBulkMenu: PropTypes.Requireable<boolean>;
324
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
325
291
  }> | null | undefined>>;
326
292
  isNestedTable: PropTypes.Requireable<boolean>;
327
293
  emptyStateFirstMessage: PropTypes.Requireable<string>;
@@ -466,7 +432,6 @@ declare namespace Dashboard {
466
432
  disabled: PropTypes.Requireable<boolean>;
467
433
  className: PropTypes.Requireable<string>;
468
434
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
469
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
470
435
  }>>;
471
436
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
472
437
  title: PropTypes.Requireable<string>;
@@ -584,26 +549,10 @@ declare namespace Dashboard {
584
549
  label: PropTypes.Validator<string>;
585
550
  onClick: PropTypes.Validator<(...args: any[]) => any>;
586
551
  type: PropTypes.Requireable<string>;
587
- linkType: PropTypes.Requireable<string>;
588
- icon: PropTypes.Requireable<PropTypes.InferProps<{
589
- position: PropTypes.Validator<string>;
590
- type: PropTypes.Requireable<string>;
591
- faIcon: PropTypes.Requireable<PropTypes.InferProps<{
592
- name: PropTypes.Validator<string>;
593
- size: PropTypes.Requireable<number>;
594
- color: PropTypes.Requireable<string>;
595
- }>>;
596
- }>>;
597
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{
598
- color: PropTypes.Requireable<string>;
599
- hoverBackgroundColor: PropTypes.Requireable<string>;
600
- }>>;
601
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
602
552
  }> | null | undefined)[]>;
603
553
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
604
554
  menuButtonClassName: PropTypes.Requireable<string>;
605
555
  isBulkMenu: PropTypes.Requireable<boolean>;
606
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
607
556
  }> | null | undefined>>;
608
557
  }> | null | undefined)[]>;
609
558
  stickyFirstColumn: PropTypes.Requireable<boolean>;
@@ -636,7 +585,6 @@ declare namespace Dashboard {
636
585
  disabled: PropTypes.Requireable<boolean>;
637
586
  className: PropTypes.Requireable<string>;
638
587
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
639
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
640
588
  }> | PropTypes.InferProps<{
641
589
  componentType: PropTypes.Requireable<string>;
642
590
  disabled: PropTypes.Requireable<boolean>;
@@ -648,26 +596,10 @@ declare namespace Dashboard {
648
596
  label: PropTypes.Validator<string>;
649
597
  onClick: PropTypes.Validator<(...args: any[]) => any>;
650
598
  type: PropTypes.Requireable<string>;
651
- linkType: PropTypes.Requireable<string>;
652
- icon: PropTypes.Requireable<PropTypes.InferProps<{
653
- position: PropTypes.Validator<string>;
654
- type: PropTypes.Requireable<string>;
655
- faIcon: PropTypes.Requireable<PropTypes.InferProps<{
656
- name: PropTypes.Validator<string>;
657
- size: PropTypes.Requireable<number>;
658
- color: PropTypes.Requireable<string>;
659
- }>>;
660
- }>>;
661
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{
662
- color: PropTypes.Requireable<string>;
663
- hoverBackgroundColor: PropTypes.Requireable<string>;
664
- }>>;
665
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
666
599
  }> | null | undefined)[]>;
667
600
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
668
601
  menuButtonClassName: PropTypes.Requireable<string>;
669
602
  isBulkMenu: PropTypes.Requireable<boolean>;
670
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
671
603
  }> | null | undefined>>;
672
604
  isNestedTable: PropTypes.Requireable<boolean>;
673
605
  emptyStateFirstMessage: PropTypes.Requireable<string>;
@@ -301,7 +301,6 @@ declare namespace SearchPage {
301
301
  disabled: PropTypes.Requireable<boolean>;
302
302
  className: PropTypes.Requireable<string>;
303
303
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
304
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
305
304
  }>>;
306
305
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
307
306
  title: PropTypes.Requireable<string>;
@@ -419,26 +418,10 @@ declare namespace SearchPage {
419
418
  label: PropTypes.Validator<string>;
420
419
  onClick: PropTypes.Validator<(...args: any[]) => any>;
421
420
  type: PropTypes.Requireable<string>;
422
- linkType: PropTypes.Requireable<string>;
423
- icon: PropTypes.Requireable<PropTypes.InferProps<{
424
- position: PropTypes.Validator<string>;
425
- type: PropTypes.Requireable<string>;
426
- faIcon: PropTypes.Requireable<PropTypes.InferProps<{
427
- name: PropTypes.Validator<string>;
428
- size: PropTypes.Requireable<number>;
429
- color: PropTypes.Requireable<string>;
430
- }>>;
431
- }>>;
432
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{
433
- color: PropTypes.Requireable<string>;
434
- hoverBackgroundColor: PropTypes.Requireable<string>;
435
- }>>;
436
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
437
421
  }> | null | undefined)[]>;
438
422
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
439
423
  menuButtonClassName: PropTypes.Requireable<string>;
440
424
  isBulkMenu: PropTypes.Requireable<boolean>;
441
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
442
425
  }> | null | undefined>>;
443
426
  }> | null | undefined)[]>;
444
427
  stickyFirstColumn: PropTypes.Requireable<boolean>;
@@ -471,7 +454,6 @@ declare namespace SearchPage {
471
454
  disabled: PropTypes.Requireable<boolean>;
472
455
  className: PropTypes.Requireable<string>;
473
456
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
474
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
475
457
  }> | PropTypes.InferProps<{
476
458
  componentType: PropTypes.Requireable<string>;
477
459
  disabled: PropTypes.Requireable<boolean>;
@@ -483,26 +465,10 @@ declare namespace SearchPage {
483
465
  label: PropTypes.Validator<string>;
484
466
  onClick: PropTypes.Validator<(...args: any[]) => any>;
485
467
  type: PropTypes.Requireable<string>;
486
- linkType: PropTypes.Requireable<string>;
487
- icon: PropTypes.Requireable<PropTypes.InferProps<{
488
- position: PropTypes.Validator<string>;
489
- type: PropTypes.Requireable<string>;
490
- faIcon: PropTypes.Requireable<PropTypes.InferProps<{
491
- name: PropTypes.Validator<string>;
492
- size: PropTypes.Requireable<number>;
493
- color: PropTypes.Requireable<string>;
494
- }>>;
495
- }>>;
496
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{
497
- color: PropTypes.Requireable<string>;
498
- hoverBackgroundColor: PropTypes.Requireable<string>;
499
- }>>;
500
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
501
468
  }> | null | undefined)[]>;
502
469
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
503
470
  menuButtonClassName: PropTypes.Requireable<string>;
504
471
  isBulkMenu: PropTypes.Requireable<boolean>;
505
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
506
472
  }> | null | undefined>>;
507
473
  isNestedTable: PropTypes.Requireable<boolean>;
508
474
  emptyStateFirstMessage: PropTypes.Requireable<string>;
@@ -138,7 +138,6 @@ declare namespace ExternalCourse {
138
138
  disabled: PropTypes.Requireable<boolean>;
139
139
  className: PropTypes.Requireable<string>;
140
140
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
141
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
142
141
  }>>;
143
142
  selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
144
143
  title: PropTypes.Requireable<string>;
@@ -256,26 +255,10 @@ declare namespace ExternalCourse {
256
255
  label: PropTypes.Validator<string>;
257
256
  onClick: PropTypes.Validator<(...args: any[]) => any>;
258
257
  type: PropTypes.Requireable<string>;
259
- linkType: PropTypes.Requireable<string>;
260
- icon: PropTypes.Requireable<PropTypes.InferProps<{
261
- position: PropTypes.Validator<string>;
262
- type: PropTypes.Requireable<string>;
263
- faIcon: PropTypes.Requireable<PropTypes.InferProps<{
264
- name: PropTypes.Validator<string>;
265
- size: PropTypes.Requireable<number>;
266
- color: PropTypes.Requireable<string>;
267
- }>>;
268
- }>>;
269
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{
270
- color: PropTypes.Requireable<string>;
271
- hoverBackgroundColor: PropTypes.Requireable<string>;
272
- }>>;
273
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
274
258
  }> | null | undefined)[]>;
275
259
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
276
260
  menuButtonClassName: PropTypes.Requireable<string>;
277
261
  isBulkMenu: PropTypes.Requireable<boolean>;
278
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
279
262
  }> | null | undefined>>;
280
263
  }> | null | undefined)[]>;
281
264
  stickyFirstColumn: PropTypes.Requireable<boolean>;
@@ -308,7 +291,6 @@ declare namespace ExternalCourse {
308
291
  disabled: PropTypes.Requireable<boolean>;
309
292
  className: PropTypes.Requireable<string>;
310
293
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
311
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
312
294
  }> | PropTypes.InferProps<{
313
295
  componentType: PropTypes.Requireable<string>;
314
296
  disabled: PropTypes.Requireable<boolean>;
@@ -320,26 +302,10 @@ declare namespace ExternalCourse {
320
302
  label: PropTypes.Validator<string>;
321
303
  onClick: PropTypes.Validator<(...args: any[]) => any>;
322
304
  type: PropTypes.Requireable<string>;
323
- linkType: PropTypes.Requireable<string>;
324
- icon: PropTypes.Requireable<PropTypes.InferProps<{
325
- position: PropTypes.Validator<string>;
326
- type: PropTypes.Requireable<string>;
327
- faIcon: PropTypes.Requireable<PropTypes.InferProps<{
328
- name: PropTypes.Validator<string>;
329
- size: PropTypes.Requireable<number>;
330
- color: PropTypes.Requireable<string>;
331
- }>>;
332
- }>>;
333
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{
334
- color: PropTypes.Requireable<string>;
335
- hoverBackgroundColor: PropTypes.Requireable<string>;
336
- }>>;
337
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
338
305
  }> | null | undefined)[]>;
339
306
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
340
307
  menuButtonClassName: PropTypes.Requireable<string>;
341
308
  isBulkMenu: PropTypes.Requireable<boolean>;
342
- isCustomSkillMenu: PropTypes.Requireable<boolean>;
343
309
  }> | null | undefined>>;
344
310
  isNestedTable: PropTypes.Requireable<boolean>;
345
311
  emptyStateFirstMessage: PropTypes.Requireable<string>;
@@ -48,7 +48,6 @@
48
48
  @value cm_grey_900: #111117;
49
49
  @value cm_positive_100: #35CC7F;
50
50
  @value cm_positive_200: #05944F;
51
- @value cm_positive_300: #04713D;
52
51
  @value cm_negative_100: #ed3436;
53
52
  @value cm_negative_200: #b81400;
54
53
  @value cm_negative_50: #ffe5e6;
@@ -58,14 +57,12 @@
58
57
  @value cm_green_secondary_200: #38CC6C;
59
58
  @value cm_orange_200: #FF7043;
60
59
  @value cm_orange_700: #FF4105;
61
- @value cm_orange_800: #A32700;
62
60
  @value cm_pink_50: #ffefeb;
63
61
  @value cm_purple_200: #7340FF;
64
62
  @value cm_yellow_scorm: #FFB800;
65
63
  @value cm_yellow_secondary_200: #ffde03;
66
64
  @value cm_yellow_100: #ffc043;
67
65
  @value cm_yellow_200: #DB9200;
68
- @value cm_yellow_300: #B87A00;
69
66
  @value cm_yellow_400: #bd7e00;
70
67
  @value cm_red_200: #FF4040;
71
68
  @value cm_negative_red_200: #ED3436;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.33.3-alpha.12+264c0fe46",
3
+ "version": "11.33.3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -104,7 +104,7 @@
104
104
  "@coorpacademy/react-native-mock-render": "^0.2.9",
105
105
  "@coorpacademy/react-native-slider": "^0.11.1",
106
106
  "@coorpacademy/translate": "6.3.0",
107
- "@coorpacademy/webpack-config": "13.1.1",
107
+ "@coorpacademy/webpack-config": "13.1.2",
108
108
  "@react-native-community/blur": "^4.2.0",
109
109
  "@storybook/addon-actions": "^6.5.12",
110
110
  "@storybook/addon-controls": "^6.5.12",
@@ -165,5 +165,5 @@
165
165
  "last 2 versions",
166
166
  "IE 11"
167
167
  ],
168
- "gitHead": "264c0fe465b0f95801ff01abdb2108faed7934c8"
168
+ "gitHead": "df4ab76d3cd6fa27a173f230ef1fab07c42988eb"
169
169
  }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomSkillHeaderProps } from './types';
3
- declare const CustomSkillHeader: (props: CustomSkillHeaderProps) => JSX.Element;
4
- export default CustomSkillHeader;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/custom-skill-header/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAoB,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqClE,QAAA,MAAM,iBAAiB,UAAW,sBAAsB,gBA4DvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,88 +0,0 @@
1
- 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); }
2
- import React from 'react';
3
- import ButtonLink from '../../atom/button-link';
4
- import ButtonLinkIcon from '../../atom/button-link-icon';
5
- import BulletPointMenuButton from '../../molecule/bullet-point-menu-button';
6
- import Tag from '../../atom/tag';
7
- import style from './style.css';
8
- const commonButtonStyles = {
9
- fontWeight: '600',
10
- borderRadius: '12px'
11
- };
12
- const createButtonLinkProps = (buttonProps, type) => ({
13
- ...buttonProps,
14
- 'data-name': `custom-skill-header-${type}-button`,
15
- 'aria-label': `aria ${type} button`,
16
- type: type === 'save' || type === 'archive' ? 'secondary' : 'primary',
17
- icon: {
18
- position: 'left',
19
- faIcon: {
20
- name: (() => {
21
- switch (type) {
22
- case 'save':
23
- return 'floppy-disk';
24
- case 'archive':
25
- return 'folder-open';
26
- default:
27
- return buttonProps?.faIconName ?? 'circle-check';
28
- }
29
- })(),
30
- color: type === 'save' || type === 'archive' ? '#1D1D2B' : '#FFFFFF',
31
- size: 14
32
- }
33
- },
34
- customStyle: commonButtonStyles,
35
- isCustomSkillMenu: true
36
- });
37
- const CustomSkillHeader = props => {
38
- const {
39
- onQuitClick,
40
- title,
41
- tag,
42
- saveStatus,
43
- bulletPointMenuButton,
44
- saveButton,
45
- publishButton,
46
- archiveButton
47
- } = props;
48
- const saveButtonProps = createButtonLinkProps(saveButton, 'save');
49
- const publishButtonProps = createButtonLinkProps(publishButton, 'publish');
50
- const archiveButtonProps = archiveButton ? createButtonLinkProps(archiveButton, 'archive') : undefined;
51
- const closeButtonProps = {
52
- size: 'default',
53
- icon: 'close',
54
- 'data-name': 'custom-skill-header-close-button',
55
- 'aria-label': 'close-button-aria-label',
56
- onClick: onQuitClick
57
- };
58
- const bulletPointMenuButtonProps = {
59
- ...bulletPointMenuButton,
60
- buttonAriaLabel: 'aria button bullet point menu',
61
- menuAriaLabel: 'aria button bullet point menu',
62
- isCustomSkillMenu: true
63
- };
64
- return /*#__PURE__*/React.createElement("div", {
65
- className: style.headerWrapper,
66
- "data-name": "header-wrapper"
67
- }, /*#__PURE__*/React.createElement("div", {
68
- className: style.titleAndButtonWrapper,
69
- "data-name": "title-and-button-wrapper"
70
- }, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({}, closeButtonProps, {
71
- className: style.button
72
- })), /*#__PURE__*/React.createElement("div", {
73
- className: style.titleWrapper
74
- }, /*#__PURE__*/React.createElement("div", {
75
- className: style.statusWrapper
76
- }, /*#__PURE__*/React.createElement(Tag, tag), saveStatus.display ? /*#__PURE__*/React.createElement("p", {
77
- className: style.saveStatus
78
- }, saveStatus.label) : null), /*#__PURE__*/React.createElement("h3", {
79
- className: style.title,
80
- "aria-label": title,
81
- "data-name": "header-title"
82
- }, title))), /*#__PURE__*/React.createElement("div", {
83
- className: style.buttonsWrapper,
84
- "data-name": "button-wrapper"
85
- }, archiveButton ? /*#__PURE__*/React.createElement(ButtonLink, archiveButtonProps) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BulletPointMenuButton, bulletPointMenuButtonProps), /*#__PURE__*/React.createElement(ButtonLink, saveButtonProps), /*#__PURE__*/React.createElement(ButtonLink, publishButtonProps))));
86
- };
87
- export default CustomSkillHeader;
88
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["React","ButtonLink","ButtonLinkIcon","BulletPointMenuButton","Tag","style","commonButtonStyles","fontWeight","borderRadius","createButtonLinkProps","buttonProps","type","icon","position","faIcon","name","faIconName","color","size","customStyle","isCustomSkillMenu","CustomSkillHeader","props","onQuitClick","title","tag","saveStatus","bulletPointMenuButton","saveButton","publishButton","archiveButton","saveButtonProps","publishButtonProps","archiveButtonProps","undefined","closeButtonProps","onClick","bulletPointMenuButtonProps","buttonAriaLabel","menuAriaLabel","createElement","className","headerWrapper","titleAndButtonWrapper","_extends","button","titleWrapper","statusWrapper","display","label","buttonsWrapper","Fragment"],"sources":["../../../src/organism/custom-skill-header/index.tsx"],"sourcesContent":["import React from 'react';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport Tag from '../../atom/tag';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport {ActionButtonProps, CustomSkillHeaderProps} from './types';\nimport style from './style.css';\n\nconst commonButtonStyles = {\n fontWeight: '600',\n borderRadius: '12px'\n};\n\nconst createButtonLinkProps = (\n buttonProps: ActionButtonProps,\n type: 'save' | 'publish' | 'archive'\n): ButtonLinkProps => ({\n ...buttonProps,\n 'data-name': `custom-skill-header-${type}-button`,\n 'aria-label': `aria ${type} button`,\n type: type === 'save' || type === 'archive' ? 'secondary' : 'primary',\n icon: {\n position: 'left',\n faIcon: {\n name: (() => {\n switch (type) {\n case 'save':\n return 'floppy-disk';\n case 'archive':\n return 'folder-open';\n default:\n return buttonProps?.faIconName ?? 'circle-check';\n }\n })(),\n color: type === 'save' || type === 'archive' ? '#1D1D2B' : '#FFFFFF',\n size: 14\n }\n },\n customStyle: commonButtonStyles,\n isCustomSkillMenu: true\n});\n\nconst CustomSkillHeader = (props: CustomSkillHeaderProps) => {\n const {\n onQuitClick,\n title,\n tag,\n saveStatus,\n bulletPointMenuButton,\n saveButton,\n publishButton,\n archiveButton\n } = props;\n\n const saveButtonProps = createButtonLinkProps(saveButton, 'save');\n const publishButtonProps = createButtonLinkProps(publishButton, 'publish');\n const archiveButtonProps = archiveButton\n ? createButtonLinkProps(archiveButton, 'archive')\n : undefined;\n\n const closeButtonProps = {\n size: 'default',\n icon: 'close',\n 'data-name': 'custom-skill-header-close-button',\n 'aria-label': 'close-button-aria-label',\n onClick: onQuitClick\n };\n\n const bulletPointMenuButtonProps = {\n ...bulletPointMenuButton,\n buttonAriaLabel: 'aria button bullet point menu',\n menuAriaLabel: 'aria button bullet point menu',\n isCustomSkillMenu: true\n };\n\n return (\n <div className={style.headerWrapper} data-name=\"header-wrapper\">\n <div className={style.titleAndButtonWrapper} data-name=\"title-and-button-wrapper\">\n <ButtonLinkIcon {...closeButtonProps} className={style.button} />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display ? <p className={style.saveStatus}>{saveStatus.label}</p> : null}\n </div>\n <h3 className={style.title} aria-label={title} data-name=\"header-title\">\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name=\"button-wrapper\">\n {archiveButton ? (\n <ButtonLink {...archiveButtonProps} />\n ) : (\n <>\n <BulletPointMenuButton {...bulletPointMenuButtonProps} />\n <ButtonLink {...saveButtonProps} />\n <ButtonLink {...publishButtonProps} />\n </>\n )}\n </div>\n </div>\n );\n};\n\nexport default CustomSkillHeader;\n"],"mappings":"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","ignoreList":[]}
@@ -1,54 +0,0 @@
1
- @value colors: '../../variables/colors.css';
2
- @value cm_grey_500 from colors;
3
- @value cm_grey_700 from colors;
4
-
5
- .headerWrapper {
6
- display: flex;
7
- justify-content: space-between;
8
- }
9
-
10
- .titleAndButtonWrapper {
11
- display: flex;
12
- }
13
-
14
- .button {
15
- background-color: #f4f4f5;
16
- }
17
-
18
- .titleWrapper {
19
- display: flex;
20
- flex-direction: column;
21
- align-items: flex-start;
22
- justify-content: space-between;
23
- margin-left: 15px;
24
- }
25
-
26
- .statusWrapper {
27
- display: flex;
28
- flex-direction: row;
29
- align-items: center;
30
- gap: 5px;
31
- }
32
-
33
- .saveStatus {
34
- color: cm_grey_500;
35
- font-family: "Gilroy";
36
- font-size: 10px;
37
- font-weight: 600;
38
- line-height: 12px;
39
- margin: 0;
40
- }
41
-
42
- .title {
43
- color: cm_grey_700;
44
- font-family: "Gilroy";
45
- font-weight: 600;
46
- font-size: 18px;
47
- line-height: 24px;
48
- margin-top: 5px;
49
- }
50
-
51
- .buttonsWrapper {
52
- display: flex;
53
- gap: 10px;
54
- }
@@ -1,28 +0,0 @@
1
- import { BulletPointMenuButtonProps } from '../../molecule/bullet-point-menu-button/types';
2
- declare type TagProps = {
3
- label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';
4
- type: 'success' | 'progress' | 'warning';
5
- size: string;
6
- };
7
- export declare type ActionButtonProps = {
8
- label: string;
9
- onClick: () => void;
10
- disabled?: boolean;
11
- faIconName?: string;
12
- };
13
- declare type SaveStatusProps = {
14
- label?: 'Unsaved changes' | 'Saved';
15
- display: boolean;
16
- };
17
- export declare type CustomSkillHeaderProps = {
18
- onQuitClick: () => void;
19
- title: string;
20
- tag: TagProps;
21
- saveStatus: SaveStatusProps;
22
- bulletPointMenuButton: BulletPointMenuButtonProps;
23
- saveButton: ActionButtonProps;
24
- publishButton: ActionButtonProps;
25
- archiveButton?: ActionButtonProps;
26
- };
27
- export {};
28
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/custom-skill-header/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,+CAA+C,CAAC;AAEzF,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,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,aAAK,eAAe,GAAG;IACrB,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,UAAU,EAAE,eAAe,CAAC;IAC5B,qBAAqB,EAAE,0BAA0B,CAAC;IAClD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,aAAa,EAAE,iBAAiB,CAAC;IACjC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../src/organism/custom-skill-header/types.ts"],"sourcesContent":["import {BulletPointMenuButtonProps} from '../../molecule/bullet-point-menu-button/types';\n\ntype TagProps = {\n label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';\n type: 'success' | 'progress' | 'warning';\n size: string;\n};\n\nexport type ActionButtonProps = {\n label: string;\n onClick: () => void;\n disabled?: boolean;\n faIconName?: string;\n};\n\ntype SaveStatusProps = {\n label?: 'Unsaved changes' | 'Saved';\n display: boolean;\n};\n\nexport type CustomSkillHeaderProps = {\n onQuitClick: () => void;\n title: string;\n tag: TagProps;\n saveStatus: SaveStatusProps;\n bulletPointMenuButton: BulletPointMenuButtonProps;\n saveButton: ActionButtonProps;\n publishButton: ActionButtonProps;\n archiveButton?: ActionButtonProps;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomSkillHeaderProps } from './types';
3
- declare const CustomSkillHeader: (props: CustomSkillHeaderProps) => JSX.Element;
4
- export default CustomSkillHeader;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/custom-skill-header/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAoB,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqClE,QAAA,MAAM,iBAAiB,UAAW,sBAAsB,gBA4DvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,93 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
- var _react = _interopRequireDefault(require("react"));
6
- var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
7
- var _buttonLinkIcon = _interopRequireDefault(require("../../atom/button-link-icon"));
8
- var _bulletPointMenuButton = _interopRequireDefault(require("../../molecule/bullet-point-menu-button"));
9
- var _tag = _interopRequireDefault(require("../../atom/tag"));
10
- var _style = _interopRequireDefault(require("./style.css"));
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- 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); }
13
- const commonButtonStyles = {
14
- fontWeight: '600',
15
- borderRadius: '12px'
16
- };
17
- const createButtonLinkProps = (buttonProps, type) => ({
18
- ...buttonProps,
19
- 'data-name': `custom-skill-header-${type}-button`,
20
- 'aria-label': `aria ${type} button`,
21
- type: type === 'save' || type === 'archive' ? 'secondary' : 'primary',
22
- icon: {
23
- position: 'left',
24
- faIcon: {
25
- name: (() => {
26
- switch (type) {
27
- case 'save':
28
- return 'floppy-disk';
29
- case 'archive':
30
- return 'folder-open';
31
- default:
32
- return buttonProps?.faIconName ?? 'circle-check';
33
- }
34
- })(),
35
- color: type === 'save' || type === 'archive' ? '#1D1D2B' : '#FFFFFF',
36
- size: 14
37
- }
38
- },
39
- customStyle: commonButtonStyles,
40
- isCustomSkillMenu: true
41
- });
42
- const CustomSkillHeader = props => {
43
- const {
44
- onQuitClick,
45
- title,
46
- tag,
47
- saveStatus,
48
- bulletPointMenuButton,
49
- saveButton,
50
- publishButton,
51
- archiveButton
52
- } = props;
53
- const saveButtonProps = createButtonLinkProps(saveButton, 'save');
54
- const publishButtonProps = createButtonLinkProps(publishButton, 'publish');
55
- const archiveButtonProps = archiveButton ? createButtonLinkProps(archiveButton, 'archive') : undefined;
56
- const closeButtonProps = {
57
- size: 'default',
58
- icon: 'close',
59
- 'data-name': 'custom-skill-header-close-button',
60
- 'aria-label': 'close-button-aria-label',
61
- onClick: onQuitClick
62
- };
63
- const bulletPointMenuButtonProps = {
64
- ...bulletPointMenuButton,
65
- buttonAriaLabel: 'aria button bullet point menu',
66
- menuAriaLabel: 'aria button bullet point menu',
67
- isCustomSkillMenu: true
68
- };
69
- return /*#__PURE__*/_react.default.createElement("div", {
70
- className: _style.default.headerWrapper,
71
- "data-name": "header-wrapper"
72
- }, /*#__PURE__*/_react.default.createElement("div", {
73
- className: _style.default.titleAndButtonWrapper,
74
- "data-name": "title-and-button-wrapper"
75
- }, /*#__PURE__*/_react.default.createElement(_buttonLinkIcon.default, _extends({}, closeButtonProps, {
76
- className: _style.default.button
77
- })), /*#__PURE__*/_react.default.createElement("div", {
78
- className: _style.default.titleWrapper
79
- }, /*#__PURE__*/_react.default.createElement("div", {
80
- className: _style.default.statusWrapper
81
- }, /*#__PURE__*/_react.default.createElement(_tag.default, tag), saveStatus.display ? /*#__PURE__*/_react.default.createElement("p", {
82
- className: _style.default.saveStatus
83
- }, saveStatus.label) : null), /*#__PURE__*/_react.default.createElement("h3", {
84
- className: _style.default.title,
85
- "aria-label": title,
86
- "data-name": "header-title"
87
- }, title))), /*#__PURE__*/_react.default.createElement("div", {
88
- className: _style.default.buttonsWrapper,
89
- "data-name": "button-wrapper"
90
- }, archiveButton ? /*#__PURE__*/_react.default.createElement(_buttonLink.default, archiveButtonProps) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_bulletPointMenuButton.default, bulletPointMenuButtonProps), /*#__PURE__*/_react.default.createElement(_buttonLink.default, saveButtonProps), /*#__PURE__*/_react.default.createElement(_buttonLink.default, publishButtonProps))));
91
- };
92
- var _default = exports.default = CustomSkillHeader;
93
- //# sourceMappingURL=index.js.map