@coorpacademy/components 11.36.3 → 11.36.4-alpha.11

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 (129) hide show
  1. package/es/atom/button-link/index.d.ts.map +1 -1
  2. package/es/atom/button-link/index.js +1 -0
  3. package/es/atom/button-link/index.js.map +1 -1
  4. package/es/atom/input-select/index.d.ts +5 -0
  5. package/es/atom/input-select/index.d.ts.map +1 -0
  6. package/es/atom/input-select/index.js +98 -0
  7. package/es/atom/input-select/index.js.map +1 -0
  8. package/es/atom/input-select/style.css +169 -0
  9. package/es/atom/input-select/types.d.ts +31 -0
  10. package/es/atom/input-select/types.d.ts.map +1 -0
  11. package/es/atom/input-select/types.js +17 -0
  12. package/es/atom/input-select/types.js.map +1 -0
  13. package/es/atom/input-switch/index.d.ts +1 -0
  14. package/es/atom/input-switch/index.d.ts.map +1 -1
  15. package/es/atom/input-switch/index.js +18 -5
  16. package/es/atom/input-switch/index.js.map +1 -1
  17. package/es/atom/input-switch/style.css +75 -0
  18. package/es/atom/link/index.d.ts.map +1 -1
  19. package/es/atom/link/index.js +3 -0
  20. package/es/atom/link/index.js.map +1 -1
  21. package/es/molecule/button-menu-action/index.d.ts +1 -0
  22. package/es/molecule/button-menu-action/index.d.ts.map +1 -1
  23. package/es/molecule/button-menu-action/index.js +11 -2
  24. package/es/molecule/button-menu-action/index.js.map +1 -1
  25. package/es/molecule/button-menu-action/types.d.ts +2 -0
  26. package/es/molecule/button-menu-action/types.d.ts.map +1 -1
  27. package/es/molecule/button-menu-action/types.js +2 -1
  28. package/es/molecule/button-menu-action/types.js.map +1 -1
  29. package/es/molecule/cm-popin/types.d.ts +3 -0
  30. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  31. package/es/molecule/draggable-list/index.d.ts +1 -0
  32. package/es/molecule/setup-section/index.d.ts +1 -0
  33. package/es/molecule/setup-section/index.d.ts.map +1 -1
  34. package/es/molecule/setup-sections/index.d.ts +1 -0
  35. package/es/organism/brand-learning-priorities/index.d.ts +1 -0
  36. package/es/organism/content-skill-modal/index.d.ts +2 -0
  37. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  38. package/es/organism/content-skill-modal/types.d.ts +2 -0
  39. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  40. package/es/organism/list-items/index.d.ts +2 -0
  41. package/es/organism/mooc-header/index.d.ts +1 -0
  42. package/es/organism/mooc-header/index.d.ts.map +1 -1
  43. package/es/organism/mooc-header/index.js +53 -55
  44. package/es/organism/mooc-header/index.js.map +1 -1
  45. package/es/organism/mooc-header/style.css +118 -110
  46. package/es/organism/user-preferences/index.d.ts +1 -0
  47. package/es/template/app-player/loading/index.d.ts +3 -0
  48. package/es/template/app-player/player/index.d.ts +6 -0
  49. package/es/template/app-player/player/slides/index.d.ts +3 -0
  50. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  51. package/es/template/app-player/popin-correction/index.d.ts +3 -0
  52. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  53. package/es/template/app-player/popin-end/index.d.ts +3 -0
  54. package/es/template/app-review/index.d.ts +3 -0
  55. package/es/template/app-review/index.d.ts.map +1 -1
  56. package/es/template/app-review/player/prop-types.d.ts +3 -0
  57. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  58. package/es/template/app-review/prop-types.d.ts +3 -0
  59. package/es/template/app-review/prop-types.d.ts.map +1 -1
  60. package/es/template/back-office/brand-update/index.d.ts +8 -0
  61. package/es/template/common/dashboard/index.d.ts +6 -0
  62. package/es/template/common/search-page/index.d.ts +3 -0
  63. package/es/template/external-course/index.d.ts +3 -0
  64. package/es/variables/colors.css +8 -6
  65. package/lib/atom/button-link/index.d.ts.map +1 -1
  66. package/lib/atom/button-link/index.js +1 -0
  67. package/lib/atom/button-link/index.js.map +1 -1
  68. package/lib/atom/input-select/index.d.ts +5 -0
  69. package/lib/atom/input-select/index.d.ts.map +1 -0
  70. package/lib/atom/input-select/index.js +105 -0
  71. package/lib/atom/input-select/index.js.map +1 -0
  72. package/lib/atom/input-select/style.css +169 -0
  73. package/lib/atom/input-select/types.d.ts +31 -0
  74. package/lib/atom/input-select/types.d.ts.map +1 -0
  75. package/lib/atom/input-select/types.js +22 -0
  76. package/lib/atom/input-select/types.js.map +1 -0
  77. package/lib/atom/input-switch/index.d.ts +1 -0
  78. package/lib/atom/input-switch/index.d.ts.map +1 -1
  79. package/lib/atom/input-switch/index.js +18 -5
  80. package/lib/atom/input-switch/index.js.map +1 -1
  81. package/lib/atom/input-switch/style.css +75 -0
  82. package/lib/atom/link/index.d.ts.map +1 -1
  83. package/lib/atom/link/index.js +3 -0
  84. package/lib/atom/link/index.js.map +1 -1
  85. package/lib/molecule/button-menu-action/index.d.ts +1 -0
  86. package/lib/molecule/button-menu-action/index.d.ts.map +1 -1
  87. package/lib/molecule/button-menu-action/index.js +11 -2
  88. package/lib/molecule/button-menu-action/index.js.map +1 -1
  89. package/lib/molecule/button-menu-action/types.d.ts +2 -0
  90. package/lib/molecule/button-menu-action/types.d.ts.map +1 -1
  91. package/lib/molecule/button-menu-action/types.js +2 -1
  92. package/lib/molecule/button-menu-action/types.js.map +1 -1
  93. package/lib/molecule/cm-popin/types.d.ts +3 -0
  94. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  95. package/lib/molecule/draggable-list/index.d.ts +1 -0
  96. package/lib/molecule/setup-section/index.d.ts +1 -0
  97. package/lib/molecule/setup-section/index.d.ts.map +1 -1
  98. package/lib/molecule/setup-sections/index.d.ts +1 -0
  99. package/lib/organism/brand-learning-priorities/index.d.ts +1 -0
  100. package/lib/organism/content-skill-modal/index.d.ts +2 -0
  101. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  102. package/lib/organism/content-skill-modal/types.d.ts +2 -0
  103. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  104. package/lib/organism/list-items/index.d.ts +2 -0
  105. package/lib/organism/mooc-header/index.d.ts +1 -0
  106. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  107. package/lib/organism/mooc-header/index.js +52 -54
  108. package/lib/organism/mooc-header/index.js.map +1 -1
  109. package/lib/organism/mooc-header/style.css +118 -110
  110. package/lib/organism/user-preferences/index.d.ts +1 -0
  111. package/lib/template/app-player/loading/index.d.ts +3 -0
  112. package/lib/template/app-player/player/index.d.ts +6 -0
  113. package/lib/template/app-player/player/slides/index.d.ts +3 -0
  114. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  115. package/lib/template/app-player/popin-correction/index.d.ts +3 -0
  116. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  117. package/lib/template/app-player/popin-end/index.d.ts +3 -0
  118. package/lib/template/app-review/index.d.ts +3 -0
  119. package/lib/template/app-review/index.d.ts.map +1 -1
  120. package/lib/template/app-review/player/prop-types.d.ts +3 -0
  121. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  122. package/lib/template/app-review/prop-types.d.ts +3 -0
  123. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  124. package/lib/template/back-office/brand-update/index.d.ts +8 -0
  125. package/lib/template/common/dashboard/index.d.ts +6 -0
  126. package/lib/template/common/search-page/index.d.ts +3 -0
  127. package/lib/template/external-course/index.d.ts +3 -0
  128. package/lib/variables/colors.css +8 -6
  129. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/button-menu-action/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAElF,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW9B,CAAC;AACF,eAAe,yBAAyB,CAAC;AAEzC,oBAAY,qBAAqB,GAAG;IAClC,MAAM,EAAE,e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,4BAA4B,GAAG;IAAC,KAAK,EAAE,qBAAqB,CAAA;CAAC,CAAC"}
@@ -14,7 +14,8 @@ const ButtonMenuActionPropTypes = {
14
14
  customStyle: _propTypes.default.objectOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number, _propTypes.default.object]))
15
15
  }),
16
16
  type: _propTypes.default.oneOf(['button', 'link']),
17
- primaryColor: _propTypes.default.string
17
+ primaryColor: _propTypes.default.string,
18
+ closeOnClick: _propTypes.default.bool
18
19
  };
19
20
  var _default = exports.default = ButtonMenuActionPropTypes;
20
21
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_types","_types2","e","__esModule","default","ButtonMenuActionPropTypes","button","PropTypes","shape","ButtonLinkPropTypes","isRequired","menu","ButtonMenuPropTypes","menuWrapper","ariaLabel","string","customStyle","objectOf","oneOfType","number","object","type","oneOf","primaryColor","_default","exports"],"sources":["../../../src/molecule/button-menu-action/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ButtonLinkPropTypes, {ButtonLinkProps} from '../../atom/button-link/types';\nimport ButtonMenuPropTypes, {ButtonMenuProps} from '../../atom/button-menu/types';\n\nconst ButtonMenuActionPropTypes = {\n button: PropTypes.shape(ButtonLinkPropTypes).isRequired,\n menu: PropTypes.shape(ButtonMenuPropTypes).isRequired,\n menuWrapper: PropTypes.shape({\n ariaLabel: PropTypes.string,\n customStyle: PropTypes.objectOf(\n PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object])\n )\n }),\n type: PropTypes.oneOf(['button', 'link']),\n primaryColor: PropTypes.string\n};\nexport default ButtonMenuActionPropTypes;\n\nexport type ButtonMenuActionProps = {\n button: ButtonLinkProps;\n menu: ButtonMenuProps;\n type?: 'button' | 'link';\n menuWrapper?: {\n ariaLabel?: string;\n customStyle?: Record<string, unknown>;\n };\n containerCustom?: Record<string, unknown>;\n primaryColor?: string;\n};\n\nexport type ButtonMenuActionPropsFixture = {props: ButtonMenuActionProps};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAkF,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElF,MAAMG,yBAAyB,GAAG;EAChCC,MAAM,EAAEC,kBAAS,CAACC,KAAK,CAACC,cAAmB,CAAC,CAACC,UAAU;EACvDC,IAAI,EAAEJ,kBAAS,CAACC,KAAK,CAACI,eAAmB,CAAC,CAACF,UAAU;EACrDG,WAAW,EAAEN,kBAAS,CAACC,KAAK,CAAC;IAC3BM,SAAS,EAAEP,kBAAS,CAACQ,MAAM;IAC3BC,WAAW,EAAET,kBAAS,CAACU,QAAQ,CAC7BV,kBAAS,CAACW,SAAS,CAAC,CAACX,kBAAS,CAACQ,MAAM,EAAER,kBAAS,CAACY,MAAM,EAAEZ,kBAAS,CAACa,MAAM,CAAC,CAC5E;EACF,CAAC,CAAC;EACFC,IAAI,EAAEd,kBAAS,CAACe,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;EACzCC,YAAY,EAAEhB,kBAAS,CAACQ;AAC1B,CAAC;AAAC,IAAAS,QAAA,GAAAC,OAAA,CAAArB,OAAA,GACaC,yBAAyB","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_types","_types2","e","__esModule","default","ButtonMenuActionPropTypes","button","PropTypes","shape","ButtonLinkPropTypes","isRequired","menu","ButtonMenuPropTypes","menuWrapper","ariaLabel","string","customStyle","objectOf","oneOfType","number","object","type","oneOf","primaryColor","closeOnClick","bool","_default","exports"],"sources":["../../../src/molecule/button-menu-action/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ButtonLinkPropTypes, {ButtonLinkProps} from '../../atom/button-link/types';\nimport ButtonMenuPropTypes, {ButtonMenuProps} from '../../atom/button-menu/types';\n\nconst ButtonMenuActionPropTypes = {\n button: PropTypes.shape(ButtonLinkPropTypes).isRequired,\n menu: PropTypes.shape(ButtonMenuPropTypes).isRequired,\n menuWrapper: PropTypes.shape({\n ariaLabel: PropTypes.string,\n customStyle: PropTypes.objectOf(\n PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object])\n )\n }),\n type: PropTypes.oneOf(['button', 'link']),\n primaryColor: PropTypes.string,\n closeOnClick: PropTypes.bool\n};\nexport default ButtonMenuActionPropTypes;\n\nexport type ButtonMenuActionProps = {\n button: ButtonLinkProps;\n menu: ButtonMenuProps;\n type?: 'button' | 'link';\n menuWrapper?: {\n ariaLabel?: string;\n customStyle?: Record<string, unknown>;\n };\n containerCustom?: Record<string, unknown>;\n primaryColor?: string;\n closeOnClick?: boolean;\n};\n\nexport type ButtonMenuActionPropsFixture = {props: ButtonMenuActionProps};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAkF,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElF,MAAMG,yBAAyB,GAAG;EAChCC,MAAM,EAAEC,kBAAS,CAACC,KAAK,CAACC,cAAmB,CAAC,CAACC,UAAU;EACvDC,IAAI,EAAEJ,kBAAS,CAACC,KAAK,CAACI,eAAmB,CAAC,CAACF,UAAU;EACrDG,WAAW,EAAEN,kBAAS,CAACC,KAAK,CAAC;IAC3BM,SAAS,EAAEP,kBAAS,CAACQ,MAAM;IAC3BC,WAAW,EAAET,kBAAS,CAACU,QAAQ,CAC7BV,kBAAS,CAACW,SAAS,CAAC,CAACX,kBAAS,CAACQ,MAAM,EAAER,kBAAS,CAACY,MAAM,EAAEZ,kBAAS,CAACa,MAAM,CAAC,CAC5E;EACF,CAAC,CAAC;EACFC,IAAI,EAAEd,kBAAS,CAACe,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;EACzCC,YAAY,EAAEhB,kBAAS,CAACQ,MAAM;EAC9BS,YAAY,EAAEjB,kBAAS,CAACkB;AAC1B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAvB,OAAA,GACaC,yBAAyB","ignoreList":[]}
@@ -149,6 +149,7 @@ declare const propTypes: {
149
149
  details: PropTypes.Requireable<string>;
150
150
  'data-name': PropTypes.Requireable<string>;
151
151
  requiredSelection: PropTypes.Requireable<boolean>;
152
+ icon: PropTypes.Requireable<string>;
152
153
  }> | null | undefined)[]>;
153
154
  items: PropTypes.Requireable<PropTypes.InferProps<{
154
155
  type: PropTypes.Requireable<string>;
@@ -423,6 +424,7 @@ declare const propTypes: {
423
424
  }>>;
424
425
  type: PropTypes.Requireable<string>;
425
426
  primaryColor: PropTypes.Requireable<string>;
427
+ closeOnClick: PropTypes.Requireable<boolean>;
426
428
  }> | null | undefined>>;
427
429
  }>>;
428
430
  }> | PropTypes.InferProps<{
@@ -760,6 +762,7 @@ declare const propTypes: {
760
762
  }>>;
761
763
  type: PropTypes.Requireable<string>;
762
764
  primaryColor: PropTypes.Requireable<string>;
765
+ closeOnClick: PropTypes.Requireable<boolean>;
763
766
  }>>;
764
767
  }> | null | undefined>>;
765
768
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SA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AE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IAC1D,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;QACzB,IAAI,EACA,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,GAChD,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -26,6 +26,7 @@ declare namespace DraggableList {
26
26
  details: PropTypes.Requireable<string>;
27
27
  'data-name': PropTypes.Requireable<string>;
28
28
  requiredSelection: PropTypes.Requireable<boolean>;
29
+ icon: PropTypes.Requireable<string>;
29
30
  }>>;
30
31
  contentTypes: PropTypes.Requireable<PropTypes.InferProps<{
31
32
  modified: PropTypes.Requireable<boolean>;
@@ -45,6 +45,7 @@ declare namespace SetupSection {
45
45
  details: PropTypes.Requireable<string>;
46
46
  'data-name': PropTypes.Requireable<string>;
47
47
  requiredSelection: PropTypes.Requireable<boolean>;
48
+ icon: PropTypes.Requireable<string>;
48
49
  }>>;
49
50
  import contentTypes = contentTypes;
50
51
  export { contentTypes };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/setup-section/index.js"],"names":[],"mappings":";AA0CA,qEAeC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhDD,mFAqBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/setup-section/index.js"],"names":[],"mappings":";AA0CA,qEAeC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhDD,mFAqBC"}
@@ -26,6 +26,7 @@ declare namespace SetupSections {
26
26
  details: PropTypes.Requireable<string>;
27
27
  'data-name': PropTypes.Requireable<string>;
28
28
  requiredSelection: PropTypes.Requireable<boolean>;
29
+ icon: PropTypes.Requireable<string>;
29
30
  }>>;
30
31
  contentTypes: PropTypes.Requireable<PropTypes.InferProps<{
31
32
  modified: PropTypes.Requireable<boolean>;
@@ -26,6 +26,7 @@ declare namespace BrandLearningPriorities {
26
26
  details: PropTypes.Requireable<string>;
27
27
  'data-name': PropTypes.Requireable<string>;
28
28
  requiredSelection: PropTypes.Requireable<boolean>;
29
+ icon: PropTypes.Requireable<string>;
29
30
  }>>;
30
31
  contentTypes: PropTypes.Requireable<PropTypes.InferProps<{
31
32
  modified: PropTypes.Requireable<boolean>;
@@ -271,6 +271,7 @@ declare const ContentSkillModal: {
271
271
  }>>;
272
272
  type: import("prop-types").Requireable<string>;
273
273
  primaryColor: import("prop-types").Requireable<string>;
274
+ closeOnClick: import("prop-types").Requireable<boolean>;
274
275
  }> | null | undefined>>;
275
276
  }>>;
276
277
  }> | import("prop-types").InferProps<{
@@ -608,6 +609,7 @@ declare const ContentSkillModal: {
608
609
  }>>;
609
610
  type: import("prop-types").Requireable<string>;
610
611
  primaryColor: import("prop-types").Requireable<string>;
612
+ closeOnClick: import("prop-types").Requireable<boolean>;
611
613
  }>>;
612
614
  }>>>;
613
615
  filters: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
@@ -268,6 +268,7 @@ declare const ContentSkillModalPropTypes: {
268
268
  }>>;
269
269
  type: PropTypes.Requireable<string>;
270
270
  primaryColor: PropTypes.Requireable<string>;
271
+ closeOnClick: PropTypes.Requireable<boolean>;
271
272
  }> | null | undefined>>;
272
273
  }>>;
273
274
  }> | PropTypes.InferProps<{
@@ -605,6 +606,7 @@ declare const ContentSkillModalPropTypes: {
605
606
  }>>;
606
607
  type: PropTypes.Requireable<string>;
607
608
  primaryColor: PropTypes.Requireable<string>;
609
+ closeOnClick: PropTypes.Requireable<boolean>;
608
610
  }>>;
609
611
  }>>>;
610
612
  filters: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAStD,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACpD,OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
@@ -277,6 +277,7 @@ declare namespace ListItems {
277
277
  }>>;
278
278
  type: PropTypes.Requireable<string>;
279
279
  primaryColor: PropTypes.Requireable<string>;
280
+ closeOnClick: PropTypes.Requireable<boolean>;
280
281
  }> | null | undefined>>;
281
282
  }>>;
282
283
  }> | PropTypes.InferProps<{
@@ -614,6 +615,7 @@ declare namespace ListItems {
614
615
  }>>;
615
616
  type: PropTypes.Requireable<string>;
616
617
  primaryColor: PropTypes.Requireable<string>;
618
+ closeOnClick: PropTypes.Requireable<boolean>;
617
619
  }>>;
618
620
  };
619
621
  }
@@ -99,6 +99,7 @@ declare class MoocHeader extends React.Component<any, any, any> {
99
99
  type: PropTypes.Requireable<string>;
100
100
  color: PropTypes.Requireable<string>;
101
101
  'aria-label': PropTypes.Requireable<string>;
102
+ icon: PropTypes.Requireable<string>;
102
103
  options: PropTypes.Requireable<PropTypes.InferProps<{
103
104
  href: PropTypes.Requireable<string>;
104
105
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAwBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+FE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAuBC;IArBC;;;;;MAKC;IAgDH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAKC;IAED,0BAKC;IAED,sBAIC;IAED,qBAIC;IAED,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IA7GD,2EASC;IAGC,kBAAsB;IAmGxB,0DASE;IAEF,6BAwdC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAuBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgGE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAuBC;IArBC;;;;;MAKC;IAgDH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAKC;IAED,0BAKC;IAED,sBAIC;IAED,qBAIC;IAED,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IA7GD,2EASC;IAGC,kBAAsB;IAmGxB,0DASE;IAEF,6BAgeC;CACF"}
@@ -12,7 +12,7 @@ var _novaIcons = require("@coorpacademy/nova-icons");
12
12
  var _reactFontawesome = require("@fortawesome/react-fontawesome");
13
13
  var _provider = _interopRequireDefault(require("../../atom/provider"));
14
14
  var _cta = _interopRequireDefault(require("../../atom/cta"));
15
- var _select = _interopRequireDefault(require("../../atom/select"));
15
+ var _inputSelect = _interopRequireDefault(require("../../atom/input-select"));
16
16
  var _picture = _interopRequireDefault(require("../../atom/picture"));
17
17
  var _inputSwitch = _interopRequireDefault(require("../../atom/input-switch"));
18
18
  var _link = _interopRequireDefault(require("../../atom/link"));
@@ -224,7 +224,6 @@ class MoocHeader extends _react.default.Component {
224
224
  const moreAriaLabel = translate('More');
225
225
  const primaryColor = (0, _get2.default)('common.primary', skin);
226
226
  const mediumColor = (0, _get2.default)('common.medium', skin);
227
- const darkColor = (0, _get2.default)('common.dark', skin);
228
227
  if (items) {
229
228
  const displayedPages = items.displayed.map((item, index) => {
230
229
  const activeColor = item.selected ? {
@@ -313,6 +312,7 @@ class MoocHeader extends _react.default.Component {
313
312
  containerCustom: {
314
313
  alignItems: 'flex-start'
315
314
  },
315
+ closeOnClick: true,
316
316
  menuWrapper: {
317
317
  customStyle: {
318
318
  top: '30px'
@@ -403,18 +403,7 @@ class MoocHeader extends _react.default.Component {
403
403
  className: _style.default.label
404
404
  }, user.stats.badge.label))), /*#__PURE__*/_react.default.createElement("div", {
405
405
  className: _style.default.avatarWrapper
406
- }, notificationPageView, /*#__PURE__*/_react.default.createElement("div", {
407
- className: _style.default.avatar,
408
- "data-name": "user-avatar"
409
- }, /*#__PURE__*/_react.default.createElement(_link.default, {
410
- href: user.href,
411
- className: _style.default.userLink,
412
- onClick: this.handleLinkClick,
413
- "aria-label": user['picture-aria-label']
414
- }, /*#__PURE__*/_react.default.createElement(_picture.default, {
415
- src: user.picture,
416
- alt: user.profileAvatarAlt
417
- })))));
406
+ }, notificationPageView));
418
407
  }
419
408
  if (settings) {
420
409
  const settingsElements = settings.map((setting, index) => {
@@ -424,66 +413,70 @@ class MoocHeader extends _react.default.Component {
424
413
  type,
425
414
  title,
426
415
  name: settingName = index,
427
- color,
428
- hoverColor,
429
- 'aria-label': ariaLabel
416
+ 'aria-label': ariaLabel,
417
+ icon,
418
+ disabled = false
430
419
  } = setting;
431
420
  switch (type) {
432
421
  case 'link':
422
+ case 'danger-link':
433
423
  {
424
+ const iconView = icon ? /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
425
+ icon: icon,
426
+ className: _style.default.linkIcon
427
+ }) : null;
434
428
  settingView = /*#__PURE__*/_react.default.createElement("div", {
435
429
  "data-name": `setting-${settingName}`,
436
- className: _style.default.setting,
430
+ className: (0, _classnames.default)(_style.default.setting, disabled && _style.default.disabled),
437
431
  key: settingName
438
432
  }, /*#__PURE__*/_react.default.createElement(_link.default, {
439
- className: _style.default.link,
433
+ className: _style.default.settingLink,
440
434
  href: options.href,
441
- hoverColor: hoverColor,
442
435
  onClick: this.handleLinkClick,
443
436
  target: options.target || null,
444
- "aria-label": ariaLabel || title,
445
- style: {
446
- color
447
- }
448
- }, title));
437
+ "aria-label": ariaLabel || title
438
+ }, iconView, title));
449
439
  break;
450
440
  }
451
441
  case 'select':
452
442
  {
453
- const selectProps = {};
454
- selectProps.options = options.values;
455
- selectProps.title = '';
456
- selectProps.theme = 'header';
457
- selectProps.onChange = options.onChange;
458
- selectProps.className = _style.default.languageSelect;
443
+ const selectProps = {
444
+ options: options.values.map(opt => ({
445
+ value: opt.value,
446
+ label: opt.name
447
+ })),
448
+ value: options.values.find(opt => opt.selected)?.value,
449
+ onChange: options.onChange,
450
+ placeholder: title,
451
+ 'aria-label': ariaLabel || title
452
+ };
459
453
  settingView = /*#__PURE__*/_react.default.createElement("div", {
460
454
  "data-name": `setting-${settingName}`,
461
455
  className: (0, _classnames.default)(_style.default.setting, _style.default.selectBoxes),
462
456
  key: settingName
463
- }, /*#__PURE__*/_react.default.createElement("span", {
464
- className: _style.default.label
465
- }, title), /*#__PURE__*/_react.default.createElement(_select.default, _extends({}, selectProps, {
466
- "aria-label": ariaLabel || title
467
- })));
457
+ }, /*#__PURE__*/_react.default.createElement(_inputSelect.default, selectProps));
468
458
  break;
469
459
  }
470
460
  case 'switch':
471
461
  {
472
- const switchProps = {};
473
- switchProps.value = options.value;
474
- switchProps.id = `input-switch-${index}`;
475
- switchProps.onChange = options.onChange;
462
+ const switchProps = {
463
+ value: options.value,
464
+ id: `input-switch-${index}`,
465
+ onChange: options.onChange,
466
+ titlePosition: 'left',
467
+ theme: 'newMooc',
468
+ type: 'switch',
469
+ title,
470
+ icon
471
+ };
476
472
  settingView = /*#__PURE__*/_react.default.createElement("div", {
477
473
  "data-name": `setting-${settingName}`,
478
- className: _style.default.setting,
474
+ className: (0, _classnames.default)(_style.default.setting, disabled && _style.default.disabled),
479
475
  key: settingName,
480
476
  "aria-label": ariaLabel || title
481
477
  }, /*#__PURE__*/_react.default.createElement(_inputSwitch.default, _extends({}, switchProps, {
482
478
  "aria-labelledby": `title-id-${settingName}`
483
- })), /*#__PURE__*/_react.default.createElement("span", {
484
- id: `title-id-${settingName}`,
485
- className: _style.default.label
486
- }, title));
479
+ })));
487
480
  break;
488
481
  }
489
482
  }
@@ -492,16 +485,20 @@ class MoocHeader extends _react.default.Component {
492
485
  settingsView = /*#__PURE__*/_react.default.createElement("div", {
493
486
  className: _style.default.settings,
494
487
  ref: this.setMenuSettings
495
- }, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyCog, {
496
- "data-name": "settings-toggle",
497
- style: {
498
- color: darkColor
499
- },
500
- className: _style.default.settingsToggle,
488
+ }, /*#__PURE__*/_react.default.createElement("div", {
489
+ className: (0, _classnames.default)(_style.default.userAvatarWrapper, isSettingsOpen && _style.default.userAvatarOpen)
490
+ }, /*#__PURE__*/_react.default.createElement(_link.default, {
491
+ className: (0, _classnames.default)(_style.default.userLinkAvatar),
501
492
  onClick: this.handleSettingsToggle,
502
493
  "aria-expanded": isSettingsOpen,
503
- "aria-label": settingsAriaLabel
504
- }), /*#__PURE__*/_react.default.createElement("div", {
494
+ "aria-label": settingsAriaLabel,
495
+ "aria-haspopup": "true",
496
+ role: "button"
497
+ }, /*#__PURE__*/_react.default.createElement(_picture.default, {
498
+ className: _style.default.avatar,
499
+ src: user && user.picture,
500
+ alt: user && user.profileAvatarAlt
501
+ }))), /*#__PURE__*/_react.default.createElement("div", {
505
502
  className: isSettingsOpen ? _style.default.settingsWrapper : _style.default.settingsWrapperHidden
506
503
  }, /*#__PURE__*/_react.default.createElement("div", {
507
504
  "data-name": "settings",
@@ -671,9 +668,10 @@ MoocHeader.propTypes = process.env.NODE_ENV !== "production" ? {
671
668
  settings: _propTypes.default.arrayOf(_propTypes.default.shape({
672
669
  title: _propTypes.default.string,
673
670
  name: _propTypes.default.string,
674
- type: _propTypes.default.oneOf(['select', 'switch', 'link']),
671
+ type: _propTypes.default.oneOf(['select', 'switch', 'link', 'danger-link']),
675
672
  color: _propTypes.default.string,
676
673
  'aria-label': _propTypes.default.string,
674
+ icon: _propTypes.default.string,
677
675
  options: _propTypes.default.shape({
678
676
  href: _propTypes.default.string,
679
677
  onChange: _propTypes.default.func,