@coorpacademy/components 11.36.4-alpha.15 → 11.36.4-alpha.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 (128) hide show
  1. package/es/atom/input-switch/index.d.ts +0 -1
  2. package/es/atom/input-switch/index.d.ts.map +1 -1
  3. package/es/atom/input-switch/index.js +5 -18
  4. package/es/atom/input-switch/index.js.map +1 -1
  5. package/es/atom/input-switch/style.css +0 -75
  6. package/es/atom/link/index.d.ts.map +1 -1
  7. package/es/atom/link/index.js +0 -3
  8. package/es/atom/link/index.js.map +1 -1
  9. package/es/molecule/cm-popin/types.d.ts +0 -1
  10. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  11. package/es/molecule/draggable-list/index.d.ts +0 -1
  12. package/es/molecule/setup-section/index.d.ts +0 -1
  13. package/es/molecule/setup-section/index.d.ts.map +1 -1
  14. package/es/molecule/setup-sections/index.d.ts +0 -1
  15. package/es/organism/brand-learning-priorities/index.d.ts +0 -1
  16. package/es/organism/header-with-actions/index.d.ts +15 -70
  17. package/es/organism/header-with-actions/index.d.ts.map +1 -1
  18. package/es/organism/header-with-actions/index.js +80 -3
  19. package/es/organism/header-with-actions/index.js.map +1 -1
  20. package/es/organism/header-with-actions/types.d.ts +36 -76
  21. package/es/organism/header-with-actions/types.d.ts.map +1 -1
  22. package/es/organism/header-with-actions/types.js +23 -10
  23. package/es/organism/header-with-actions/types.js.map +1 -1
  24. package/es/organism/mooc-header/index.d.ts +0 -1
  25. package/es/organism/mooc-header/index.d.ts.map +1 -1
  26. package/es/organism/mooc-header/index.js +55 -52
  27. package/es/organism/mooc-header/index.js.map +1 -1
  28. package/es/organism/mooc-header/style.css +110 -127
  29. package/es/organism/user-preferences/index.d.ts +0 -1
  30. package/es/template/app-player/loading/index.d.ts +0 -1
  31. package/es/template/app-player/player/index.d.ts +0 -2
  32. package/es/template/app-player/player/slides/index.d.ts +0 -1
  33. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  34. package/es/template/app-player/popin-correction/index.d.ts +0 -1
  35. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  36. package/es/template/app-player/popin-end/index.d.ts +0 -1
  37. package/es/template/app-review/index.d.ts +0 -1
  38. package/es/template/app-review/index.d.ts.map +1 -1
  39. package/es/template/app-review/player/prop-types.d.ts +0 -1
  40. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  41. package/es/template/app-review/prop-types.d.ts +0 -1
  42. package/es/template/app-review/prop-types.d.ts.map +1 -1
  43. package/es/template/back-office/brand-update/index.d.ts +15 -72
  44. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  45. package/es/template/back-office/brand-update/index.js +4 -2
  46. package/es/template/back-office/brand-update/index.js.map +1 -1
  47. package/es/template/back-office/brand-update/style.css +4 -1
  48. package/es/template/back-office/brand-update/utils.d.ts +38 -10
  49. package/es/template/back-office/brand-update/utils.js +19 -0
  50. package/es/template/back-office/brand-update/utils.js.map +1 -1
  51. package/es/template/common/dashboard/index.d.ts +0 -2
  52. package/es/template/common/search-page/index.d.ts +0 -1
  53. package/es/template/external-course/index.d.ts +0 -1
  54. package/es/variables/colors.css +6 -8
  55. package/lib/atom/input-switch/index.d.ts +0 -1
  56. package/lib/atom/input-switch/index.d.ts.map +1 -1
  57. package/lib/atom/input-switch/index.js +5 -18
  58. package/lib/atom/input-switch/index.js.map +1 -1
  59. package/lib/atom/input-switch/style.css +0 -75
  60. package/lib/atom/link/index.d.ts.map +1 -1
  61. package/lib/atom/link/index.js +0 -3
  62. package/lib/atom/link/index.js.map +1 -1
  63. package/lib/molecule/cm-popin/types.d.ts +0 -1
  64. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  65. package/lib/molecule/draggable-list/index.d.ts +0 -1
  66. package/lib/molecule/setup-section/index.d.ts +0 -1
  67. package/lib/molecule/setup-section/index.d.ts.map +1 -1
  68. package/lib/molecule/setup-sections/index.d.ts +0 -1
  69. package/lib/organism/brand-learning-priorities/index.d.ts +0 -1
  70. package/lib/organism/header-with-actions/index.d.ts +15 -70
  71. package/lib/organism/header-with-actions/index.d.ts.map +1 -1
  72. package/lib/organism/header-with-actions/index.js +80 -3
  73. package/lib/organism/header-with-actions/index.js.map +1 -1
  74. package/lib/organism/header-with-actions/types.d.ts +36 -76
  75. package/lib/organism/header-with-actions/types.d.ts.map +1 -1
  76. package/lib/organism/header-with-actions/types.js +23 -10
  77. package/lib/organism/header-with-actions/types.js.map +1 -1
  78. package/lib/organism/mooc-header/index.d.ts +0 -1
  79. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  80. package/lib/organism/mooc-header/index.js +54 -51
  81. package/lib/organism/mooc-header/index.js.map +1 -1
  82. package/lib/organism/mooc-header/style.css +110 -127
  83. package/lib/organism/user-preferences/index.d.ts +0 -1
  84. package/lib/template/app-player/loading/index.d.ts +0 -1
  85. package/lib/template/app-player/player/index.d.ts +0 -2
  86. package/lib/template/app-player/player/slides/index.d.ts +0 -1
  87. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  88. package/lib/template/app-player/popin-correction/index.d.ts +0 -1
  89. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  90. package/lib/template/app-player/popin-end/index.d.ts +0 -1
  91. package/lib/template/app-review/index.d.ts +0 -1
  92. package/lib/template/app-review/index.d.ts.map +1 -1
  93. package/lib/template/app-review/player/prop-types.d.ts +0 -1
  94. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  95. package/lib/template/app-review/prop-types.d.ts +0 -1
  96. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  97. package/lib/template/back-office/brand-update/index.d.ts +15 -72
  98. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  99. package/lib/template/back-office/brand-update/index.js +4 -2
  100. package/lib/template/back-office/brand-update/index.js.map +1 -1
  101. package/lib/template/back-office/brand-update/style.css +4 -1
  102. package/lib/template/back-office/brand-update/utils.d.ts +38 -10
  103. package/lib/template/back-office/brand-update/utils.js +19 -0
  104. package/lib/template/back-office/brand-update/utils.js.map +1 -1
  105. package/lib/template/common/dashboard/index.d.ts +0 -2
  106. package/lib/template/common/search-page/index.d.ts +0 -1
  107. package/lib/template/external-course/index.d.ts +0 -1
  108. package/lib/variables/colors.css +6 -8
  109. package/locales/.mtslconfig.json +1 -0
  110. package/package.json +2 -2
  111. package/es/atom/input-select/index.d.ts +0 -5
  112. package/es/atom/input-select/index.d.ts.map +0 -1
  113. package/es/atom/input-select/index.js +0 -98
  114. package/es/atom/input-select/index.js.map +0 -1
  115. package/es/atom/input-select/style.css +0 -169
  116. package/es/atom/input-select/types.d.ts +0 -31
  117. package/es/atom/input-select/types.d.ts.map +0 -1
  118. package/es/atom/input-select/types.js +0 -17
  119. package/es/atom/input-select/types.js.map +0 -1
  120. package/lib/atom/input-select/index.d.ts +0 -5
  121. package/lib/atom/input-select/index.d.ts.map +0 -1
  122. package/lib/atom/input-select/index.js +0 -105
  123. package/lib/atom/input-select/index.js.map +0 -1
  124. package/lib/atom/input-select/style.css +0 -169
  125. package/lib/atom/input-select/types.d.ts +0 -31
  126. package/lib/atom/input-select/types.d.ts.map +0 -1
  127. package/lib/atom/input-select/types.js +0 -22
  128. package/lib/atom/input-select/types.js.map +0 -1
@@ -17,7 +17,6 @@ declare namespace InputSwitch {
17
17
  details: PropTypes.Requireable<string>;
18
18
  'data-name': PropTypes.Requireable<string>;
19
19
  requiredSelection: PropTypes.Requireable<boolean>;
20
- icon: PropTypes.Requireable<string>;
21
20
  };
22
21
  }
23
22
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-switch/index.js"],"names":[],"mappings":";AAOA,sDA8FC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-switch/index.js"],"names":[],"mappings":";AAMA,sDAsFC"}
@@ -3,7 +3,6 @@ import _noop from "lodash/fp/noop";
3
3
  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); }
4
4
  import React, { useMemo } from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
7
6
  import getClassState from '../../util/get-class-state';
8
7
  import style from './style.css';
9
8
  const InputSwitch = props => {
@@ -22,21 +21,15 @@ const InputSwitch = props => {
22
21
  requiredSelection = false,
23
22
  'data-name': dataName,
24
23
  'aria-labelledby': ariaLabelledBy,
25
- 'aria-label': ariaLabel,
26
- icon
24
+ 'aria-label': ariaLabel
27
25
  } = props;
28
26
  const idSwitch = id || _uniqueId('input-switch-');
29
27
  const isDisabled = disabled ? 'disabled' : '';
30
28
  const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);
31
- const titleView = title ? /*#__PURE__*/React.createElement("div", {
32
- className: icon ? style.titleContainer : null
33
- }, icon ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
34
- icon: icon,
35
- className: style.icon
36
- }) : null, /*#__PURE__*/React.createElement("span", {
29
+ const titleView = title ? /*#__PURE__*/React.createElement("span", {
37
30
  id: `title-view-${dataName}`,
38
31
  className: style.title
39
- }, title)) : null;
32
+ }, `${title} `, ' ') : null;
40
33
  const descriptionView = description ? /*#__PURE__*/React.createElement("div", {
41
34
  className: style.description
42
35
  }, description) : null;
@@ -47,11 +40,6 @@ const InputSwitch = props => {
47
40
  defaultClass: style.coorpmanager,
48
41
  modifiedClass: style.coorpmanagerModified
49
42
  };
50
- case 'newMooc':
51
- return {
52
- defaultClass: style.newMooc,
53
- modifiedClass: style.newMoocModified
54
- };
55
43
  case 'mooc':
56
44
  return {
57
45
  defaultClass: style.partielUncheck,
@@ -115,11 +103,10 @@ InputSwitch.propTypes = process.env.NODE_ENV !== "production" ? {
115
103
  'aria-label': PropTypes.string,
116
104
  modified: PropTypes.bool,
117
105
  titlePosition: PropTypes.oneOf(['right', 'left']),
118
- theme: PropTypes.oneOf(['default', 'coorpmanager', 'mooc', 'newMooc']),
106
+ theme: PropTypes.oneOf(['default', 'coorpmanager', 'mooc']),
119
107
  details: PropTypes.string,
120
108
  'data-name': PropTypes.string,
121
- requiredSelection: PropTypes.bool,
122
- icon: PropTypes.string
109
+ requiredSelection: PropTypes.bool
123
110
  } : {};
124
111
  export default InputSwitch;
125
112
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useMemo","PropTypes","FontAwesomeIcon","getClassState","style","InputSwitch","props","title","name","id","value","disabled","onChange","_noop","description","modified","theme","titlePosition","details","requiredSelection","dataName","ariaLabelledBy","ariaLabel","icon","idSwitch","_uniqueId","isDisabled","handleChange","e","target","checked","titleView","createElement","className","titleContainer","descriptionView","getClass","defaultClass","coorpmanager","modifiedClass","coorpmanagerModified","newMooc","newMoocModified","partielUncheck","defaultStyle","btnSwitchContainer","_extends","type","checkbox","htmlFor","tabIndex","alignedTextContainer","detailsTxt","propTypes","process","env","NODE_ENV","string","bool","func","oneOf"],"sources":["../../../src/atom/input-switch/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst InputSwitch = props => {\n const {\n title,\n name,\n id,\n value,\n disabled,\n onChange = noop,\n description,\n modified = false,\n theme = 'default',\n titlePosition = 'left',\n details = '',\n requiredSelection = false,\n 'data-name': dataName,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-label': ariaLabel,\n icon\n } = props;\n\n const idSwitch = id || uniqueId('input-switch-');\n const isDisabled = disabled ? 'disabled' : '';\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n const titleView = title ? (\n <div className={icon ? style.titleContainer : null}>\n {icon ? <FontAwesomeIcon icon={icon} className={style.icon} /> : null}\n <span id={`title-view-${dataName}`} className={style.title}>\n {title}\n </span>\n </div>\n ) : null;\n\n const descriptionView = description ? (\n <div className={style.description}>{description}</div>\n ) : null;\n\n const getClass = () => {\n switch (theme) {\n case 'coorpmanager':\n return {\n defaultClass: style.coorpmanager,\n modifiedClass: style.coorpmanagerModified\n };\n case 'newMooc':\n return {\n defaultClass: style.newMooc,\n modifiedClass: style.newMoocModified\n };\n case 'mooc':\n return {\n defaultClass: style.partielUncheck,\n modifiedClass: style.coorpmanagerModified\n };\n default:\n return {defaultClass: style.defaultStyle, modifiedClass: style.modified};\n }\n };\n const {defaultClass, modifiedClass} = getClass();\n const className = getClassState(defaultClass, modifiedClass, null, modified);\n\n return (\n <div className={className} data-name={`switch-input-${theme}${dataName}`}>\n {titlePosition === 'left' ? titleView : null}\n <div className={requiredSelection ? style.requiredSelection : null}>\n <div className={style.btnSwitchContainer}>\n <input\n {...(ariaLabelledBy ? {'aria-labelledby': ariaLabelledBy} : {})}\n {...(title ? {'aria-labelledby': `title-view-${dataName}`} : {})}\n {...(ariaLabel && !ariaLabelledBy && !title ? {'aria-label': ariaLabel} : {})}\n type=\"checkbox\"\n id={idSwitch}\n name={name}\n onChange={handleChange}\n checked={value}\n disabled={isDisabled}\n className={style.checkbox}\n aria-labelledby={ariaLabelledBy}\n />\n <label\n htmlFor={idSwitch}\n data-name=\"input-switch-label\"\n tabIndex={0}\n aria-label={ariaLabel}\n title={ariaLabel}\n />\n </div>\n </div>\n <div className={!details ? style.alignedTextContainer : null}>\n {titlePosition === 'right' ? titleView : null}\n {details ? <div className={style.detailsTxt}>{details}</div> : null}\n </div>\n {descriptionView}\n </div>\n );\n};\n\nInputSwitch.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n id: PropTypes.string,\n value: PropTypes.bool,\n disabled: PropTypes.bool,\n onChange: PropTypes.func,\n description: PropTypes.string,\n 'aria-labelledby': PropTypes.string,\n 'aria-label': PropTypes.string,\n modified: PropTypes.bool,\n titlePosition: PropTypes.oneOf(['right', 'left']),\n theme: PropTypes.oneOf(['default', 'coorpmanager', 'mooc', 'newMooc']),\n details: PropTypes.string,\n 'data-name': PropTypes.string,\n requiredSelection: PropTypes.bool,\n icon: PropTypes.string\n};\nexport default InputSwitch;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,OAAOC,SAAS,MAAM,YAAY;AAElC,SAAQC,eAAe,QAAO,gCAAgC;AAC9D,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IACJC,KAAK;IACLC,IAAI;IACJC,EAAE;IACFC,KAAK;IACLC,QAAQ;IACRC,QAAQ,GAAAC,KAAO;IACfC,WAAW;IACXC,QAAQ,GAAG,KAAK;IAChBC,KAAK,GAAG,SAAS;IACjBC,aAAa,GAAG,MAAM;IACtBC,OAAO,GAAG,EAAE;IACZC,iBAAiB,GAAG,KAAK;IACzB,WAAW,EAAEC,QAAQ;IACrB,iBAAiB,EAAEC,cAAc;IACjC,YAAY,EAAEC,SAAS;IACvBC;EACF,CAAC,GAAGjB,KAAK;EAET,MAAMkB,QAAQ,GAAGf,EAAE,IAAIgB,SAAA,CAAS,eAAe,CAAC;EAChD,MAAMC,UAAU,GAAGf,QAAQ,GAAG,UAAU,GAAG,EAAE;EAC7C,MAAMgB,YAAY,GAAG3B,OAAO,CAAC,MAAM4B,CAAC,IAAIhB,QAAQ,CAACgB,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC,EAAE,CAAClB,QAAQ,CAAC,CAAC;EAC/E,MAAMmB,SAAS,GAAGxB,KAAK,gBACrBR,KAAA,CAAAiC,aAAA;IAAKC,SAAS,EAAEV,IAAI,GAAGnB,KAAK,CAAC8B,cAAc,GAAG;EAAK,GAChDX,IAAI,gBAAGxB,KAAA,CAAAiC,aAAA,CAAC9B,eAAe;IAACqB,IAAI,EAAEA,IAAK;IAACU,SAA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AK,EAAEN,SAAS,CAACwD,MAAM;EACvBjD,IAAI,EAAEP,SAAS,CAACwD,MAAM;EACtBhD,EAAE,EAAER,SAAS,CAACwD,MAAM;EACpB/C,KAAK,EAAET,SAAS,CAACyD,IAAI;EACrB/C,QAAQ,EAAEV,SAAS,CAACyD,IAAI;EACxB9C,QAAQ,EAAEX,SAAS,CAAC0D,IAAI;EACxB7C,WAAW,EAAEb,SAAS,CAACwD,MAAM;EAC7B,iBAAiB,EAAExD,SAAS,CAACwD,MAAM;EACnC,YAAY,EAAExD,SAAS,CAACwD,MAAM;EAC9B1C,QAAQ,EAAEd,SAAS,CAACyD,IAAI;EACxBzC,aAAa,EAAEhB,SAAS,CAAC2D,KAAK,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;EACjD5C,KAAK,EAAEf,SAAS,CAAC2D,KAAK,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;EACtE1C,OAAO,EAAEjB,SAAS,CAACwD,MAAM;EACzB,WAAW,EAAExD,SAAS,CAACwD,MAAM;EAC7BtC,iBAAiB,EAAElB,SAAS,CAACyD,IAAI;EACjCnC,IAAI,EAAEtB,SAAS,CAACwD;AAClB,CAAC;AACD,eAAepD,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","useMemo","PropTypes","getClassState","style","InputSwitch","props","title","name","id","value","disabled","onChange","_noop","description","modified","theme","titlePosition","details","requiredSelection","dataName","ariaLabelledBy","ariaLabel","idSwitch","_uniqueId","isDisabled","handleChange","e","target","checked","titleView","createElement","className","descriptionView","getClass","defaultClass","coorpmanager","modifiedClass","coorpmanagerModified","partielUncheck","defaultStyle","btnSwitchContainer","_extends","type","checkbox","htmlFor","tabIndex","alignedTextContainer","detailsTxt","propTypes","process","env","NODE_ENV","string","bool","func","oneOf"],"sources":["../../../src/atom/input-switch/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst InputSwitch = props => {\n const {\n title,\n name,\n id,\n value,\n disabled,\n onChange = noop,\n description,\n modified = false,\n theme = 'default',\n titlePosition = 'left',\n details = '',\n requiredSelection = false,\n 'data-name': dataName,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-label': ariaLabel\n } = props;\n\n const idSwitch = id || uniqueId('input-switch-');\n const isDisabled = disabled ? 'disabled' : '';\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n const titleView = title ? (\n <span id={`title-view-${dataName}`} className={style.title}>\n {`${title} `}{' '}\n </span>\n ) : null;\n\n const descriptionView = description ? (\n <div className={style.description}>{description}</div>\n ) : null;\n\n const getClass = () => {\n switch (theme) {\n case 'coorpmanager':\n return {\n defaultClass: style.coorpmanager,\n modifiedClass: style.coorpmanagerModified\n };\n case 'mooc':\n return {\n defaultClass: style.partielUncheck,\n modifiedClass: style.coorpmanagerModified\n };\n default:\n return {defaultClass: style.defaultStyle, modifiedClass: style.modified};\n }\n };\n const {defaultClass, modifiedClass} = getClass();\n const className = getClassState(defaultClass, modifiedClass, null, modified);\n\n return (\n <div className={className} data-name={`switch-input-${theme}${dataName}`}>\n {titlePosition === 'left' ? titleView : null}\n <div className={requiredSelection ? style.requiredSelection : null}>\n <div className={style.btnSwitchContainer}>\n <input\n {...(ariaLabelledBy ? {'aria-labelledby': ariaLabelledBy} : {})}\n {...(title ? {'aria-labelledby': `title-view-${dataName}`} : {})}\n {...(ariaLabel && !ariaLabelledBy && !title ? {'aria-label': ariaLabel} : {})}\n type=\"checkbox\"\n id={idSwitch}\n name={name}\n onChange={handleChange}\n checked={value}\n disabled={isDisabled}\n className={style.checkbox}\n aria-labelledby={ariaLabelledBy}\n />\n <label\n htmlFor={idSwitch}\n data-name=\"input-switch-label\"\n tabIndex={0}\n aria-label={ariaLabel}\n title={ariaLabel}\n />\n </div>\n </div>\n <div className={!details ? style.alignedTextContainer : null}>\n {titlePosition === 'right' ? titleView : null}\n {details ? <div className={style.detailsTxt}>{details}</div> : null}\n </div>\n {descriptionView}\n </div>\n );\n};\n\nInputSwitch.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n id: PropTypes.string,\n value: PropTypes.bool,\n disabled: PropTypes.bool,\n onChange: PropTypes.func,\n description: PropTypes.string,\n 'aria-labelledby': PropTypes.string,\n 'aria-label': PropTypes.string,\n modified: PropTypes.bool,\n titlePosition: PropTypes.oneOf(['right', 'left']),\n theme: PropTypes.oneOf(['default', 'coorpmanager', 'mooc']),\n details: PropTypes.string,\n 'data-name': PropTypes.string,\n requiredSelection: PropTypes.bool\n};\nexport default InputSwitch;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IACJC,KAAK;IACLC,IAAI;IACJC,EAAE;IACFC,KAAK;IACLC,QAAQ;IACRC,QAAQ,GAAAC,KAAO;IACfC,WAAW;IACXC,QAAQ,GAAG,KAAK;IAChBC,KAAK,GAAG,SAAS;IACjBC,aAAa,GAAG,MAAM;IACtBC,OAAO,GAAG,EAAE;IACZC,iBAAiB,GAAG,KAAK;IACzB,WAAW,EAAEC,QAAQ;IACrB,iBAAiB,EAAEC,cAAc;IACjC,YAAY,EAAEC;EAChB,CAAC,GAAGhB,KAAK;EAET,MAAMiB,QAAQ,GAAGd,EAAE,IAAIe,SAAA,CAAS,eAAe,CAAC;EAChD,MAAMC,UAAU,GAAGd,QAAQ,GAAG,UAAU,GAAG,EAAE;EAC7C,MAAMe,YAAY,GAAGzB,OAAO,CAAC,MAAM0B,CAAC,IAAIf,QAAQ,CAACe,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC,EAAE,CAACjB,QAAQ,CAAC,CAA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B3C,KAAK,EAAER,SAAS,CAACoD,IAAI;EACrB3C,QAAQ,EAAET,SAAS,CAACoD,IAAI;EACxB1C,QAAQ,EAAEV,SAAS,CAACqD,IAAI;EACxBzC,WAAW,EAAEZ,SAAS,CAACmD,MAAM;EAC7B,iBAAiB,EAAEnD,SAAS,CAACmD,MAAM;EACnC,YAAY,EAAEnD,SAAS,CAACmD,MAAM;EAC9BtC,QAAQ,EAAEb,SAAS,CAACoD,IAAI;EACxBrC,aAAa,EAAEf,SAAS,CAACsD,KAAK,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;EACjDxC,KAAK,EAAEd,SAAS,CAACsD,KAAK,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;EAC3DtC,OAAO,EAAEhB,SAAS,CAACmD,MAAM;EACzB,WAAW,EAAEnD,SAAS,CAACmD,MAAM;EAC7BlC,iBAAiB,EAAEjB,SAAS,CAACoD;AAC/B,CAAC;AACD,eAAejD,WAAW","ignoreList":[]}
@@ -1,6 +1,4 @@
1
1
  @value colors: "../../variables/colors.css";
2
- @value breakpoints: "../../variables/breakpoints.css";
3
- @value tablet from breakpoints;
4
2
  @value orange from colors;
5
3
  @value medium from colors;
6
4
  @value white from colors;
@@ -11,7 +9,6 @@
11
9
  @value black from colors;
12
10
  @value cm_primary_blue from colors;
13
11
  @value light_blue from colors;
14
- @value cm_grey_700 from colors;
15
12
 
16
13
  .defaultStyle {
17
14
  display: flex;
@@ -211,75 +208,3 @@
211
208
  border-color: cm_primary_blue;
212
209
  opacity: 0.4;
213
210
  }
214
-
215
- .newMooc {
216
- composes: defaultStyle;
217
- width: 100%;
218
- }
219
-
220
- .newMoocModified {
221
- composes: modified;
222
- }
223
-
224
- .newMooc label, .newMoocModified label {
225
- height: 24px;
226
- border: solid 2px cm_grey_200;
227
- margin-right: 16px;
228
- background: cm_grey_200;
229
- }
230
-
231
- .newMooc label::after, .newMoocModified label::after {
232
- top: 1px;
233
- width: 22px;
234
- height: 22px;
235
- }
236
-
237
- .newMooc span, .newMoocModified span {
238
- font-family: Gilroy;
239
- font-weight: bold;
240
- color: black;
241
- font-size: 14px;
242
- font-weight: 600;
243
- line-height: 20px;
244
- color: cm_grey_700;
245
- }
246
-
247
- .newMooc .checkbox:checked ~ label {
248
- background: cm_primary_blue;
249
- border-color: cm_primary_blue;
250
- }
251
-
252
- .newMooc .checkbox:disabled ~ label {
253
- border-color: cm_grey_200;
254
- pointer-events: none;
255
- background: cm_grey_200;
256
- opacity: 0.4;
257
- }
258
-
259
- .newMooc .checkbox:disabled ~ label::after {
260
- background: white;
261
- }
262
-
263
- .titleContainer {
264
- display: flex;
265
- align-items: center;
266
- align-content: flex-start;
267
- justify-content: center;
268
- gap: 8px;
269
- flex: 1;
270
- }
271
-
272
- .titleContainer .title {
273
- width: 100%;
274
- }
275
-
276
- .icon {
277
- width: 14px;
278
- height: 14px;
279
- }
280
-
281
- @media tablet {
282
- .icon {
283
- display: none;
284
- }
285
- }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/link/index.js"],"names":[],"mappings":";AAMA,mEA2EC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/link/index.js"],"names":[],"mappings":";AAMA,mEAwEC"}
@@ -25,7 +25,6 @@ const Link = (props, legacyContext) => {
25
25
  onMouseLeave = _noop,
26
26
  download,
27
27
  disabled,
28
- className,
29
28
  ...restProps
30
29
  } = props;
31
30
  const navigate = useMemo(() => pushToHistory(legacyContext)({
@@ -60,7 +59,6 @@ const Link = (props, legacyContext) => {
60
59
  type: "button",
61
60
  onClick: disabled ? _noop : handleOnClick,
62
61
  style: style,
63
- className: className,
64
62
  onMouseEnter: handleMouseEnter,
65
63
  onMouseLeave: handleMouseLeave
66
64
  }), children) : /*#__PURE__*/React.createElement("a", _extends({}, restProps, {
@@ -68,7 +66,6 @@ const Link = (props, legacyContext) => {
68
66
  href: disabled || !href ? undefined : createHref(href),
69
67
  onClick: disabled ? _noop : handleOnClick,
70
68
  style: style,
71
- className: className,
72
69
  onMouseEnter: handleMouseEnter,
73
70
  onMouseLeave: handleMouseLeave
74
71
  }), children);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useCallback","useMemo","useState","PropTypes","Provider","pushToHistory","Link","props","legacyContext","hovered","setHovered","history","createHref","_identity","hoverColor","hoverBackgroundColor","dataName","useButtonTag","href","onClick","_noop","style","customStyle","children","onMouseEnter","onMouseLeave","download","disabled","className","restProps","navigate","handleMouseEnter","handleMouseLeave","handleOnClick","e","backgroundColor","undefined","color","pointerEvents","createElement","_extends","type","propTypes","process","env","NODE_ENV","node","string","title","target","oneOf","bool","func","shape","contextTypes","skin","childContextTypes"],"sources":["../../../src/atom/link/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, noop} from 'lodash/fp';\nimport Provider from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nconst Link = (props, legacyContext) => {\n const [hovered, setHovered] = useState(false);\n const {history: {createHref = identity} = {}} = legacyContext;\n\n const {\n hoverColor,\n hoverBackgroundColor,\n 'data-name': dataName = 'link',\n useButtonTag = false,\n href,\n onClick = noop,\n style: customStyle,\n children,\n onMouseEnter = noop,\n onMouseLeave = noop,\n download,\n disabled,\n className,\n ...restProps\n } = props;\n\n const navigate = useMemo(() => pushToHistory(legacyContext)({href}), [href, legacyContext]);\n\n const handleMouseEnter = useCallback(() => {\n setHovered(true);\n onMouseEnter();\n }, [onMouseEnter]);\n\n const handleMouseLeave = useCallback(() => {\n setHovered(false);\n onMouseLeave();\n }, [onMouseLeave]);\n\n const handleOnClick = useCallback(\n e => {\n onClick(e);\n if (!download) navigate(e);\n },\n [download, navigate, onClick]\n );\n\n const style = {\n ...customStyle,\n ...(hovered && hoverBackgroundColor ? {backgroundColor: hoverBackgroundColor} : undefined),\n ...(hovered && hoverColor ? {color: hoverColor} : undefined),\n ...(href || onClick ? null : {pointerEvents: 'none'})\n };\n\n return useButtonTag ? (\n <button\n {...restProps}\n data-name={dataName}\n type=\"button\"\n onClick={disabled ? noop : handleOnClick}\n style={style}\n className={className}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {children}\n </button>\n ) : (\n <a\n {...restProps}\n data-name={dataName}\n href={disabled || !href ? undefined : createHref(href)}\n onClick={disabled ? noop : handleOnClick}\n style={style}\n className={className}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {children}\n </a>\n );\n};\n\nLink.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n href: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n title: PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n hoverColor: PropTypes.string,\n hoverBackgroundColor: PropTypes.string,\n download: PropTypes.bool,\n onClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n useButtonTag: PropTypes.bool,\n style: PropTypes.shape({}),\n disabled: PropTypes.bool\n};\n\nLink.contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n};\n\nexport default Link;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAO,OAAO;AAC3D,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,aAAa,MAAM,uBAAuB;AAEjD,MAAMC,IAAI,GAAGA,CAACC,KAAK,EAAEC,aAAa,KAAK;EACrC,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGR,QAAQ,CAAC,KAAK,CAAC;EAC7C,MAAM;IAACS,OAAO,EAAE;MAACC,UAAU,GAAAC;IAAW,CAAC,GAAG,CAAC;EAAC,CAAC,GAAGL,aAAa;EAE7D,MAAM;IACJM,UAAU;IACVC,oBAAoB;IACpB,WAAW,E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B,SAAS,CAACgD,IAAI;EACxBhC,OAAO,EAAEhB,SAAS,CAACiD,IAAI;EACvB5B,YAAY,EAAErB,SAAS,CAACiD,IAAI;EAC5B3B,YAAY,EAAEtB,SAAS,CAACiD,IAAI;EAC5BnC,YAAY,EAAEd,SAAS,CAACgD,IAAI;EAC5B9B,KAAK,EAAElB,SAAS,CAACkD,KAAK,CAAC,CAAC,CAAC,CAAC;EAC1B1B,QAAQ,EAAExB,SAAS,CAACgD;AACtB,CAAC;AAED7C,IAAI,CAACgD,YAAY,GAAG;EAClBC,IAAI,EAAEnD,QAAQ,CAACoD,iBAAiB,CAACD,IAAI;EACrC5C,OAAO,EAAEP,QAAQ,CAACoD,iBAAiB,CAAC7C;AACtC,CAAC;AAED,eAAeL,IAAI","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","useCallback","useMemo","useState","PropTypes","Provider","pushToHistory","Link","props","legacyContext","hovered","setHovered","history","createHref","_identity","hoverColor","hoverBackgroundColor","dataName","useButtonTag","href","onClick","_noop","style","customStyle","children","onMouseEnter","onMouseLeave","download","disabled","restProps","navigate","handleMouseEnter","handleMouseLeave","handleOnClick","e","backgroundColor","undefined","color","pointerEvents","createElement","_extends","type","propTypes","process","env","NODE_ENV","node","className","string","title","target","oneOf","bool","func","shape","contextTypes","skin","childContextTypes"],"sources":["../../../src/atom/link/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, noop} from 'lodash/fp';\nimport Provider from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nconst Link = (props, legacyContext) => {\n const [hovered, setHovered] = useState(false);\n const {history: {createHref = identity} = {}} = legacyContext;\n\n const {\n hoverColor,\n hoverBackgroundColor,\n 'data-name': dataName = 'link',\n useButtonTag = false,\n href,\n onClick = noop,\n style: customStyle,\n children,\n onMouseEnter = noop,\n onMouseLeave = noop,\n download,\n disabled,\n ...restProps\n } = props;\n\n const navigate = useMemo(() => pushToHistory(legacyContext)({href}), [href, legacyContext]);\n\n const handleMouseEnter = useCallback(() => {\n setHovered(true);\n onMouseEnter();\n }, [onMouseEnter]);\n\n const handleMouseLeave = useCallback(() => {\n setHovered(false);\n onMouseLeave();\n }, [onMouseLeave]);\n\n const handleOnClick = useCallback(\n e => {\n onClick(e);\n if (!download) navigate(e);\n },\n [download, navigate, onClick]\n );\n\n const style = {\n ...customStyle,\n ...(hovered && hoverBackgroundColor ? {backgroundColor: hoverBackgroundColor} : undefined),\n ...(hovered && hoverColor ? {color: hoverColor} : undefined),\n ...(href || onClick ? null : {pointerEvents: 'none'})\n };\n\n return useButtonTag ? (\n <button\n {...restProps}\n data-name={dataName}\n type=\"button\"\n onClick={disabled ? noop : handleOnClick}\n style={style}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {children}\n </button>\n ) : (\n <a\n {...restProps}\n data-name={dataName}\n href={disabled || !href ? undefined : createHref(href)}\n onClick={disabled ? noop : handleOnClick}\n style={style}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {children}\n </a>\n );\n};\n\nLink.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n href: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n title: PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n hoverColor: PropTypes.string,\n hoverBackgroundColor: PropTypes.string,\n download: PropTypes.bool,\n onClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n useButtonTag: PropTypes.bool,\n style: PropTypes.shape({}),\n disabled: PropTypes.bool\n};\n\nLink.contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n};\n\nexport default Link;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAO,OAAO;AAC3D,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,QAAQ,M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AC9BC,KAAK,EAAE7C,SAAS,CAAC4C,MAAM;EACvBE,MAAM,EAAE9C,SAAS,CAAC+C,KAAK,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;EAC/DpC,UAAU,EAAEX,SAAS,CAAC4C,MAAM;EAC5BhC,oBAAoB,EAAEZ,SAAS,CAAC4C,MAAM;EACtCrB,QAAQ,EAAEvB,SAAS,CAACgD,IAAI;EACxBhC,OAAO,EAAEhB,SAAS,CAACiD,IAAI;EACvB5B,YAAY,EAAErB,SAAS,CAACiD,IAAI;EAC5B3B,YAAY,EAAEtB,SAAS,CAACiD,IAAI;EAC5BnC,YAAY,EAAEd,SAAS,CAACgD,IAAI;EAC5B9B,KAAK,EAAElB,SAAS,CAACkD,KAAK,CAAC,CAAC,CAAC,CAAC;EAC1B1B,QAAQ,EAAExB,SAAS,CAACgD;AACtB,CAAC;AAED7C,IAAI,CAACgD,YAAY,GAAG;EAClBC,IAAI,EAAEnD,QAAQ,CAACoD,iBAAiB,CAACD,IAAI;EACrC5C,OAAO,EAAEP,QAAQ,CAACoD,iBAAiB,CAAC7C;AACtC,CAAC;AAED,eAAeL,IAAI","ignoreList":[]}
@@ -149,7 +149,6 @@ 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>;
153
152
  }> | null | undefined)[]>;
154
153
  items: PropTypes.Requireable<PropTypes.InferProps<{
155
154
  type: PropTypes.Requireable<string>;
@@ -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,2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e,GAAG;IAC5B,YAAY,CAAC,EAAE,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,7 +26,6 @@ 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>;
30
29
  }>>;
31
30
  contentTypes: PropTypes.Requireable<PropTypes.InferProps<{
32
31
  modified: PropTypes.Requireable<boolean>;
@@ -45,7 +45,6 @@ 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>;
49
48
  }>>;
50
49
  import contentTypes = contentTypes;
51
50
  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,7 +26,6 @@ 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>;
30
29
  }>>;
31
30
  contentTypes: PropTypes.Requireable<PropTypes.InferProps<{
32
31
  modified: PropTypes.Requireable<boolean>;
@@ -26,7 +26,6 @@ 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>;
30
29
  }>>;
31
30
  contentTypes: PropTypes.Requireable<PropTypes.InferProps<{
32
31
  modified: PropTypes.Requireable<boolean>;
@@ -4,10 +4,7 @@ declare const HeaderWithActions: {
4
4
  (props: HeaderWithActionsProps): JSX.Element;
5
5
  propTypes: {
6
6
  closeButton: import("prop-types").Requireable<import("prop-types").InferProps<{
7
- size: import("prop-types").Validator<string>;
8
- icon: import("prop-types").Validator<string>;
9
- 'data-name': import("prop-types").Validator<string>;
10
- 'aria-label': import("prop-types").Validator<string>;
7
+ 'aria-label': import("prop-types").Requireable<string>;
11
8
  onClick: import("prop-types").Validator<(...args: any[]) => any>;
12
9
  }>>;
13
10
  title: import("prop-types").Validator<string>;
@@ -20,77 +17,25 @@ declare const HeaderWithActions: {
20
17
  display: import("prop-types").Validator<boolean>;
21
18
  label: import("prop-types").Requireable<string>;
22
19
  }>>>;
23
- bulletPointMenuButton: import("prop-types").Requireable<import("prop-types").InferProps<{
24
- 'data-name': import("prop-types").Requireable<string>;
20
+ actionButtons: import("prop-types").Validator<(import("prop-types").InferProps<{
21
+ type: import("prop-types").Requireable<string>;
22
+ label: import("prop-types").Validator<string>;
23
+ onClick: import("prop-types").Validator<(...args: any[]) => any>;
25
24
  disabled: import("prop-types").Requireable<boolean>;
26
- buttonAriaLabel: import("prop-types").Requireable<string>;
27
- menuAriaLabel: import("prop-types").Requireable<string>;
25
+ iconName: import("prop-types").Requireable<string>;
26
+ iconColor: import("prop-types").Requireable<string>;
27
+ }> | null | undefined)[]>;
28
+ bulletPointMenuButtonPropTypes: import("prop-types").Requireable<import("prop-types").InferProps<{
28
29
  buttons: import("prop-types").Validator<(import("prop-types").InferProps<{
29
- 'data-name': import("prop-types").Requireable<string>;
30
- disabled: import("prop-types").Requireable<boolean>;
30
+ dataName: import("prop-types").Requireable<string>;
31
31
  label: import("prop-types").Validator<string>;
32
- onClick: import("prop-types").Requireable<(...args: any[]) => any>;
33
- type: import("prop-types").Requireable<string>;
34
- buttonLinkType: import("prop-types").Requireable<string>;
35
- icon: import("prop-types").Requireable<import("prop-types").InferProps<{
36
- theme: import("prop-types").Requireable<string>;
37
- position: import("prop-types").Requireable<string>;
38
- type: import("prop-types").Requireable<string>;
39
- faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
40
- name: import("prop-types").Validator<string>;
41
- color: import("prop-types").Requireable<string>;
42
- backgroundColor: import("prop-types").Requireable<string>;
43
- size: import("prop-types").Requireable<number>;
44
- customStyle: import("prop-types").Requireable<{
45
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
46
- }>;
47
- }>>;
48
- }>>;
49
- customStyle: import("prop-types").Requireable<{
50
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
51
- }>;
32
+ iconName: import("prop-types").Validator<string>;
33
+ iconColor: import("prop-types").Validator<string>;
34
+ onClick: import("prop-types").Validator<(...args: any[]) => any>;
52
35
  }> | null | undefined)[]>;
53
- onClick: import("prop-types").Requireable<(...args: any[]) => any>;
54
- menuButtonClassName: import("prop-types").Requireable<string>;
55
- isBulkMenu: import("prop-types").Requireable<boolean>;
36
+ onClick: import("prop-types").Validator<(...args: any[]) => any>;
37
+ buttonAriaLabel: import("prop-types").Requireable<string>;
56
38
  }>>;
57
- actionButtons: import("prop-types").Validator<(import("prop-types").InferProps<{
58
- type: import("prop-types").Requireable<string>;
59
- usage: import("prop-types").Requireable<string>;
60
- label: import("prop-types").Requireable<string>;
61
- content: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
62
- 'aria-label': import("prop-types").Requireable<string>;
63
- tooltipText: import("prop-types").Requireable<string>;
64
- tooltipPlacement: import("prop-types").Requireable<string>;
65
- 'data-name': import("prop-types").Requireable<string>;
66
- 'data-testid': import("prop-types").Requireable<string>;
67
- icon: import("prop-types").Requireable<import("prop-types").InferProps<{
68
- position: import("prop-types").Requireable<string>;
69
- type: import("prop-types").Requireable<string>;
70
- faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
71
- name: import("prop-types").Validator<string>;
72
- color: import("prop-types").Requireable<string>;
73
- backgroundColor: import("prop-types").Requireable<string>;
74
- size: import("prop-types").Requireable<number>;
75
- customStyle: import("prop-types").Requireable<{
76
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
77
- }>;
78
- }>>;
79
- }>>;
80
- onClick: import("prop-types").Requireable<(...args: any[]) => any>;
81
- link: import("prop-types").Requireable<import("prop-types").InferProps<{
82
- href: import("prop-types").Requireable<string>;
83
- download: import("prop-types").Requireable<boolean>;
84
- target: import("prop-types").Requireable<string>;
85
- }>>;
86
- hoverBackgroundColor: import("prop-types").Requireable<string>;
87
- hoverColor: import("prop-types").Requireable<string>;
88
- disabled: import("prop-types").Requireable<boolean>;
89
- className: import("prop-types").Requireable<string>;
90
- customStyle: import("prop-types").Requireable<{
91
- [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
92
- }>;
93
- }> | null | undefined)[]>;
94
39
  };
95
40
  };
96
41
  export default HeaderWithActions;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAO3E,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAOA,OAAmC,EACjC,sBAAsB,EAGvB,MAAM,SAAS,CAAC;AAyEjB,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
@@ -13,6 +13,80 @@ const getDataName = suffix => `header-with-actions-${suffix}`;
13
13
  const uncappedMap = map.convert({
14
14
  cap: false
15
15
  });
16
+ const buildCloseButton = ({
17
+ onClick,
18
+ ariaLabel
19
+ }) => {
20
+ return {
21
+ size: 'default',
22
+ icon: 'close',
23
+ 'data-name': 'close-button',
24
+ 'aria-label': ariaLabel,
25
+ onClick
26
+ };
27
+ };
28
+ const buildButtonMenu = ({
29
+ dataName,
30
+ label,
31
+ iconName,
32
+ iconColor,
33
+ onClick
34
+ }) => {
35
+ return {
36
+ 'data-name': dataName,
37
+ label,
38
+ buttonLinkType: 'tertiary',
39
+ icon: {
40
+ position: 'left',
41
+ faIcon: {
42
+ name: iconName,
43
+ color: iconColor,
44
+ size: 14,
45
+ customStyle: {
46
+ padding: 0
47
+ }
48
+ }
49
+ },
50
+ onClick,
51
+ type: iconName === 'trash' ? 'dangerousLeft' : 'defaultLeft'
52
+ };
53
+ };
54
+ const buildActionButton = ({
55
+ type,
56
+ label,
57
+ onClick,
58
+ disabled,
59
+ iconName,
60
+ iconColor
61
+ }) => {
62
+ const base = {
63
+ type,
64
+ label,
65
+ onClick,
66
+ disabled,
67
+ customStyle: {
68
+ fontWeight: '600',
69
+ borderRadius: '12px'
70
+ }
71
+ };
72
+ if (iconName && iconColor) {
73
+ return {
74
+ ...base,
75
+ icon: {
76
+ position: 'left',
77
+ faIcon: {
78
+ name: iconName,
79
+ color: iconColor,
80
+ size: 14,
81
+ customStyle: {
82
+ padding: 0
83
+ }
84
+ }
85
+ }
86
+ };
87
+ }
88
+ return base;
89
+ };
16
90
  const HeaderWithActions = props => {
17
91
  const {
18
92
  closeButton,
@@ -28,7 +102,10 @@ const HeaderWithActions = props => {
28
102
  }, /*#__PURE__*/React.createElement("div", {
29
103
  className: style.titleAndButtonWrapper,
30
104
  "data-name": getDataName('title-and-button-wrapper')
31
- }, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({}, closeButton, {
105
+ }, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({}, buildCloseButton({
106
+ onClick: closeButton.onClick,
107
+ ariaLabel: closeButton['aria-label']
108
+ }), {
32
109
  className: style.button
33
110
  })), /*#__PURE__*/React.createElement("div", {
34
111
  className: style.titleWrapper
@@ -44,9 +121,9 @@ const HeaderWithActions = props => {
44
121
  className: style.buttonsWrapper,
45
122
  "data-name": getDataName('buttons-wrapper')
46
123
  }, bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? /*#__PURE__*/React.createElement(BulletPointMenuButton, _extends({}, bulletPointMenuButton, {
47
- buttonAriaLabel: "More actions"
124
+ buttons: uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)
48
125
  })) : null, uncappedMap((action, key) => {
49
- return /*#__PURE__*/React.createElement(ButtonLink, _extends({}, action, {
126
+ return /*#__PURE__*/React.createElement(ButtonLink, _extends({}, buildActionButton(action), {
50
127
  key: key
51
128
  }));
52
129
  }, actionButtons)));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","createElement","className","headerWrapper","titleAndButtonWrapper","_extends","button","titleWrapper","statusWrapper","display","label","buttonsWrapper","buttons","buttonAriaLabel","action","key","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport headerWithActionsPropTypes, {HeaderWithActionsProps} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n// @ts-expect-error (need to get the index)\nconst uncappedMap = map.convert({cap: false});\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\n\n return (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={style.titleAndButtonWrapper}\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon {...closeButton} className={style.button} />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n <h3 className={style.title} aria-label={title} data-name={getDataName('title')}>\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} buttonAriaLabel=\"More actions\" />\n ) : null}\n {uncappedMap((action: ButtonLinkProps, key: string) => {\n return <ButtonLink {...action} key={key} />;\n }, actionButtons)}\n </div>\n </div>\n );\n};\n\nHeaderWithActions.propTypes = headerWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,cAAc,MAAM,6BAA6B;AACxD,OAAOC,GAAG,MAAM,gBAAgB;AAEhC,OAAOC,qBAAqB,MAAM,yCAAyC;AAC3E,OAAOC,0BAA0B,MAAgC,SAAS;AAC1E,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAIC,MAAc,IAAK,uBAAuBA,MAAM,EAAE;AACvE;AACA,MAAMC,WAAW,GAAGT,GAAG,CAACU,OAAO,CAAC;EAACC,GAAG,EAAE;AAAK,CAAC,CAAC;AAE7C,MAAMC,iBAAiB,GAAIC,KAA6B,IAAK;EAC3D,MAAM;IAACC,WAAW;IAAEC,KAAK;IAAEC,GAAG;IAAEC,UAAU;IAAEC,qBAAqB;IAAEC;EAAa,CAAC,GAAGN,KAAK;EAEzF,oBACEf,KAAA,CAAAsB,aAAA;IAAKC,SAAS,EAAEf,KAAK,CAACgB,aAAc;IAAC,aAAWf,WAAW,CAAC,SAAS;EAAE,gBACrET,KAAA,CAAAsB,aAAA;IACEC,SAAS,EAAEf,KAAK,CA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iBAAiB,CAACuB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGjC,0BAA0B;AAExD,eAAeO,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","buildCloseButton","onClick","ariaLabel","size","icon","buildButtonMenu","dataName","label","iconName","iconColor","buttonLinkType","position","faIcon","name","color","customStyle","padding","type","buildActionButton","disabled","base","fontWeight","borderRadius","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","createElement","className","headerWrapper","titleAndButtonWrapper","_extends","button","titleWrapper","statusWrapper","display","buttonsWrapper","buttons","action","key","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport headerWithActionsPropTypes, {\n HeaderWithActionsProps,\n ButtonMenuProps,\n ButtonActionProps\n} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n// @ts-expect-error (need to get the index)\nconst uncappedMap = map.convert({cap: false});\n\nconst buildCloseButton = ({onClick, ariaLabel}: {onClick: () => void; ariaLabel: string}) => {\n return {\n size: 'default',\n icon: 'close',\n 'data-name': 'close-button',\n 'aria-label': ariaLabel,\n onClick\n };\n};\n\nconst buildButtonMenu = ({dataName, label, iconName, iconColor, onClick}: ButtonMenuProps) => {\n return {\n 'data-name': dataName,\n label,\n buttonLinkType: 'tertiary',\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n onClick,\n type: iconName === 'trash' ? 'dangerousLeft' : 'defaultLeft'\n };\n};\n\nconst buildActionButton = ({\n type,\n label,\n onClick,\n disabled,\n iconName,\n iconColor\n}: ButtonActionProps) => {\n const base = {\n type,\n label,\n onClick,\n disabled,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px'\n }\n };\n\n if (iconName && iconColor) {\n return {\n ...base,\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14,\n customStyle: {padding: 0}\n }\n }\n };\n }\n\n return base;\n};\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\n\n return (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={style.titleAndButtonWrapper}\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon\n {...buildCloseButton({\n onClick: closeButton.onClick,\n ariaLabel: closeButton['aria-label']\n })}\n className={style.button}\n />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n <h3 className={style.title} aria-label={title} data-name={getDataName('title')}>\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton\n {...bulletPointMenuButton}\n buttons={uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)}\n />\n ) : null}\n {uncappedMap((action: ButtonActionProps, key: string) => {\n return <ButtonLink {...buildActionButton(action)} key={key} />;\n }, actionButtons)}\n </div>\n </div>\n );\n};\n\nHeaderWithActions.propTypes = headerWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,GAA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