@coorpacademy/components 11.14.13 → 11.14.15-alpha.25

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 (93) hide show
  1. package/es/atom/cta/index.d.ts +36 -60
  2. package/es/atom/cta/index.d.ts.map +1 -1
  3. package/es/atom/cta/index.js +55 -94
  4. package/es/atom/cta/index.js.map +1 -1
  5. package/es/atom/cta/prop-types.d.ts +40 -0
  6. package/es/atom/cta/prop-types.d.ts.map +1 -0
  7. package/es/atom/cta/prop-types.js +22 -0
  8. package/es/atom/cta/prop-types.js.map +1 -0
  9. package/es/atom/link/index.d.ts +1 -0
  10. package/es/atom/link/index.d.ts.map +1 -1
  11. package/es/atom/link/index.js +17 -11
  12. package/es/atom/link/index.js.map +1 -1
  13. package/es/atom/slide/index.d.ts +2 -0
  14. package/es/globals.d.js.map +1 -1
  15. package/es/molecule/course-section/style.css +4 -6
  16. package/es/molecule/draggable/style.css +9 -5
  17. package/es/molecule/draggable-list/index.d.ts +50 -2
  18. package/es/molecule/draggable-list/index.d.ts.map +1 -1
  19. package/es/molecule/draggable-list/index.js +7 -4
  20. package/es/molecule/draggable-list/index.js.map +1 -1
  21. package/es/molecule/news/index.d.ts +2 -0
  22. package/es/organism/list-item/index.d.ts +1 -0
  23. package/es/organism/list-item/index.d.ts.map +1 -1
  24. package/es/organism/list-item/index.js +4 -3
  25. package/es/organism/list-item/index.js.map +1 -1
  26. package/es/organism/list-item/style.css +6 -4
  27. package/es/organism/list-items/index.d.ts +4 -0
  28. package/es/organism/list-items/index.d.ts.map +1 -1
  29. package/es/organism/list-items/index.js +17 -4
  30. package/es/organism/list-items/index.js.map +1 -1
  31. package/es/organism/mooc/image-slider/index.d.ts +2 -0
  32. package/es/organism/mooc-header/index.d.ts +2 -0
  33. package/es/organism/mooc-header/index.d.ts.map +1 -1
  34. package/es/organism/sidebar/index.d.ts +2 -0
  35. package/es/organism/sidebar/index.d.ts.map +1 -1
  36. package/es/template/app-player/player/index.d.ts +2 -0
  37. package/es/template/app-player/player/slides/index.d.ts +2 -0
  38. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  39. package/es/template/app-player/popin-correction/index.d.ts +2 -0
  40. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  41. package/es/template/app-player/popin-end/index.d.ts +1 -0
  42. package/es/template/app-player/popin-end/summary.d.ts +1 -0
  43. package/es/template/app-player/popin-header/index.d.ts +1 -0
  44. package/es/template/app-player/popin-header/index.d.ts.map +1 -1
  45. package/es/template/back-office/brand-update/index.d.ts +4 -0
  46. package/es/template/teams-dashboard/index.d.ts +2 -0
  47. package/lib/atom/cta/index.d.ts +36 -60
  48. package/lib/atom/cta/index.d.ts.map +1 -1
  49. package/lib/atom/cta/index.js +61 -95
  50. package/lib/atom/cta/index.js.map +1 -1
  51. package/lib/atom/cta/prop-types.d.ts +40 -0
  52. package/lib/atom/cta/prop-types.d.ts.map +1 -0
  53. package/lib/atom/cta/prop-types.js +32 -0
  54. package/lib/atom/cta/prop-types.js.map +1 -0
  55. package/lib/atom/link/index.d.ts +1 -0
  56. package/lib/atom/link/index.d.ts.map +1 -1
  57. package/lib/atom/link/index.js +17 -11
  58. package/lib/atom/link/index.js.map +1 -1
  59. package/lib/atom/slide/index.d.ts +2 -0
  60. package/lib/globals.d.js.map +1 -1
  61. package/lib/molecule/course-section/style.css +4 -6
  62. package/lib/molecule/draggable/style.css +9 -5
  63. package/lib/molecule/draggable-list/index.d.ts +50 -2
  64. package/lib/molecule/draggable-list/index.d.ts.map +1 -1
  65. package/lib/molecule/draggable-list/index.js +8 -4
  66. package/lib/molecule/draggable-list/index.js.map +1 -1
  67. package/lib/molecule/news/index.d.ts +2 -0
  68. package/lib/organism/list-item/index.d.ts +1 -0
  69. package/lib/organism/list-item/index.d.ts.map +1 -1
  70. package/lib/organism/list-item/index.js +4 -3
  71. package/lib/organism/list-item/index.js.map +1 -1
  72. package/lib/organism/list-item/style.css +6 -4
  73. package/lib/organism/list-items/index.d.ts +4 -0
  74. package/lib/organism/list-items/index.d.ts.map +1 -1
  75. package/lib/organism/list-items/index.js +19 -4
  76. package/lib/organism/list-items/index.js.map +1 -1
  77. package/lib/organism/mooc/image-slider/index.d.ts +2 -0
  78. package/lib/organism/mooc-header/index.d.ts +2 -0
  79. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  80. package/lib/organism/sidebar/index.d.ts +2 -0
  81. package/lib/organism/sidebar/index.d.ts.map +1 -1
  82. package/lib/template/app-player/player/index.d.ts +2 -0
  83. package/lib/template/app-player/player/slides/index.d.ts +2 -0
  84. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  85. package/lib/template/app-player/popin-correction/index.d.ts +2 -0
  86. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  87. package/lib/template/app-player/popin-end/index.d.ts +1 -0
  88. package/lib/template/app-player/popin-end/summary.d.ts +1 -0
  89. package/lib/template/app-player/popin-header/index.d.ts +1 -0
  90. package/lib/template/app-player/popin-header/index.d.ts.map +1 -1
  91. package/lib/template/back-office/brand-update/index.d.ts +4 -0
  92. package/lib/template/teams-dashboard/index.d.ts +2 -0
  93. package/package.json +2 -2
@@ -13,15 +13,18 @@
13
13
  background: transparent;
14
14
  margin: 8px 0;
15
15
  border-radius: 7px;
16
- transform:translate(0,0);
16
+ transform: translate(0, 0);
17
17
  z-index: 0;
18
18
  }
19
- .draggable:hover{
19
+
20
+ .draggable:hover {
20
21
  background: rgba(0, 0, 0, 0.3);
21
22
  }
22
- .draggable:active{
23
+
24
+ .draggable:active {
23
25
  background: transparent;
24
26
  }
27
+
25
28
  .draggable:before {
26
29
  content: '.';
27
30
  position: absolute;
@@ -32,9 +35,10 @@
32
35
  font-size: 25px;
33
36
  color: medium;
34
37
  pointer-events: none;
35
- text-shadow: 0 0 medium, 0 5px medium, 0 10px medium, 0 15px medium,
36
- 5px 0 medium , 5px 5px medium, 5px 10px medium, 5px 15px medium;
38
+ text-shadow: 0 0 medium, 0 5px medium, 0 10px medium, 0 15px medium,
39
+ 5px 0 medium, 5px 5px medium, 5px 10px medium, 5px 15px medium;
37
40
  }
41
+
38
42
  .dragging {
39
43
  background: rgba(0, 0, 0, 0.1);
40
44
  }
@@ -6,7 +6,7 @@ declare function DraggableList({ items, onDrop, itemType }: {
6
6
  }): JSX.Element;
7
7
  declare namespace DraggableList {
8
8
  namespace propTypes {
9
- const items: PropTypes.Requireable<(PropTypes.InferProps<{
9
+ const items: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
10
10
  title: PropTypes.Validator<string>;
11
11
  onUp: PropTypes.Requireable<(...args: any[]) => any>;
12
12
  onDown: PropTypes.Requireable<(...args: any[]) => any>;
@@ -43,7 +43,55 @@ declare namespace DraggableList {
43
43
  }> | null | undefined)[]>;
44
44
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
45
45
  }>>;
46
- }> | null | undefined)[]>;
46
+ }> | PropTypes.InferProps<{
47
+ 'aria-label': PropTypes.Requireable<PropTypes.InferProps<{
48
+ title: PropTypes.Requireable<string>;
49
+ author: PropTypes.Requireable<string>;
50
+ modules: PropTypes.Requireable<string>;
51
+ position: PropTypes.Requireable<string>;
52
+ }>>;
53
+ image: PropTypes.Requireable<string>;
54
+ badgeList: PropTypes.Requireable<(PropTypes.InferProps<{
55
+ category: PropTypes.Requireable<string>;
56
+ label: PropTypes.Requireable<string>;
57
+ }> | null | undefined)[]>;
58
+ title: PropTypes.Requireable<string>;
59
+ author: PropTypes.Requireable<string>;
60
+ position: PropTypes.Requireable<number>;
61
+ id: PropTypes.Requireable<string>;
62
+ }> | PropTypes.InferProps<{
63
+ bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
64
+ buttonAriaLabel: PropTypes.Requireable<string>;
65
+ menuAriaLabel: PropTypes.Requireable<string>;
66
+ buttons: PropTypes.Requireable<(PropTypes.InferProps<{
67
+ 'data-name': PropTypes.Requireable<string>;
68
+ label: PropTypes.Requireable<string>;
69
+ type: PropTypes.Requireable<string>;
70
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
71
+ }> | null | undefined)[]>;
72
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
73
+ }>>;
74
+ buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
75
+ type: PropTypes.Requireable<string>;
76
+ label: PropTypes.Requireable<string>;
77
+ ariaLabel: PropTypes.Requireable<string>;
78
+ dataName: PropTypes.Requireable<string>;
79
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
80
+ position: PropTypes.Requireable<string>;
81
+ type: PropTypes.Requireable<string>;
82
+ }>>;
83
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
84
+ }>>;
85
+ tags: PropTypes.Requireable<(PropTypes.InferProps<{
86
+ label: PropTypes.Requireable<string>;
87
+ type: PropTypes.Requireable<string>;
88
+ }> | null | undefined)[]>;
89
+ title: PropTypes.Validator<string>;
90
+ order: PropTypes.Requireable<number>;
91
+ 'aria-label': PropTypes.Requireable<string>;
92
+ contentType: PropTypes.Requireable<string>;
93
+ id: PropTypes.Requireable<string>;
94
+ }> | null | undefined> | null | undefined)[]>;
47
95
  const onDrop: PropTypes.Requireable<(...args: any[]) => any>;
48
96
  const itemType: PropTypes.Requireable<string>;
49
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/draggable-list/index.js"],"names":[],"mappings":";AAQA;;;;gBAmDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/draggable-list/index.js"],"names":[],"mappings":";AAaA;;;;gBAmDC"}
@@ -13,6 +13,8 @@ var _setupSection = _interopRequireDefault(require("../setup-section"));
13
13
 
14
14
  var _courseSection = _interopRequireDefault(require("../course-section"));
15
15
 
16
+ var _listItem = _interopRequireDefault(require("../../organism/list-item"));
17
+
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -23,7 +25,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
23
25
 
24
26
  const ITEMS = {
25
27
  'setup-section': _setupSection.default,
26
- 'course-section': _courseSection.default
28
+ 'course-section': _courseSection.default,
29
+ 'list-item': _listItem.default
27
30
  };
28
31
 
29
32
  const DraggableList = ({
@@ -49,7 +52,7 @@ const DraggableList = ({
49
52
  setDragFrom(null);
50
53
  }, [onDrop, setDragTo, setDragFrom, dragFrom]);
51
54
  const Item = ITEMS[itemType];
52
- const itemsView = items.map(item => /*#__PURE__*/_react.default.createElement(_draggable.default, {
55
+ const itemsView = items.map((item, index) => /*#__PURE__*/_react.default.createElement(_draggable.default, {
53
56
  key: item.id,
54
57
  id: item.id,
55
58
  dragging: dragTo === item.id,
@@ -58,13 +61,14 @@ const DraggableList = ({
58
61
  onDragLeave: dragLeaveHandler,
59
62
  onDrop: dropHandler
60
63
  }, /*#__PURE__*/_react.default.createElement(Item, _extends({}, item, {
61
- key: item.id
64
+ key: item.id,
65
+ order: index
62
66
  }))));
63
67
  return /*#__PURE__*/_react.default.createElement("div", null, itemsView);
64
68
  };
65
69
 
66
70
  DraggableList.propTypes = process.env.NODE_ENV !== "production" ? {
67
- items: _propTypes.default.arrayOf(_propTypes.default.shape(_setupSection.default.propTypes)),
71
+ items: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_setupSection.default.propTypes), _propTypes.default.shape(_courseSection.default.propTypes), _propTypes.default.shape(_listItem.default.propTypes)])),
68
72
  onDrop: _propTypes.default.func,
69
73
  itemType: _propTypes.default.string
70
74
  } : {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ITEMS","SetupSection","CourseSection","DraggableList","items","onDrop","itemType","dragTo","setDragTo","useState","dragFrom","setDragFrom","dragStartHandler","useCallback","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","propTypes","PropTypes","arrayOf","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\n\nconst ITEMS = {'setup-section': SetupSection, 'course-section': CourseSection};\n\nconst DraggableList = ({items, onDrop, itemType}) => {\n const [dragTo, setDragTo] = useState(null);\n const [dragFrom, setDragFrom] = useState(null);\n\n const dragStartHandler = useCallback(\n id => {\n setDragFrom(id);\n },\n [setDragFrom]\n );\n\n const dragOverHandler = useCallback(\n id => {\n if (dragTo === id) return;\n setDragTo(id);\n },\n [dragTo, setDragTo]\n );\n\n const dragLeaveHandler = useCallback(\n id => {\n setDragTo(null);\n },\n [setDragTo]\n );\n\n const dropHandler = useCallback(\n id => {\n if (onDrop && dragFrom) onDrop(dragFrom, id);\n\n setDragTo(null);\n setDragFrom(null);\n },\n [onDrop, setDragTo, setDragFrom, dragFrom]\n );\n\n const Item = ITEMS[itemType];\n const itemsView = items.map(item => (\n <Draggable\n key={item.id}\n id={item.id}\n dragging={dragTo === item.id}\n onDragStart={dragStartHandler}\n onDragOver={dragOverHandler}\n onDragLeave={dragLeaveHandler}\n onDrop={dropHandler}\n >\n <Item {...item} key={item.id} />\n </Draggable>\n ));\n return <div>{itemsView}</div>;\n};\n\nDraggableList.propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(SetupSection.propTypes)),\n onDrop: PropTypes.func,\n itemType: PropTypes.string\n};\n\nexport default DraggableList;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EAAC,iBAAiBC,qBAAlB;EAAgC,kBAAkBC;AAAlD,CAAd;;AAEA,MAAMC,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,MAAR;EAAgBC;AAA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WAAW,EAAEC,gBANf;IAOE,MAAM,EAAEC;EAPV,gBASE,6BAAC,IAAD,eAAUI,IAAV;IAAgB,GAAG,EAAEA,IAAI,CAACP;EAA1B,GATF,CADgB,CAAlB;EAaA,oBAAO,0CAAMK,SAAN,CAAP;AACD,CAnDD;;AAqDAhB,aAAa,CAACmB,SAAd,2CAA0B;EACxBlB,KAAK,EAAEmB,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBxB,qBAAA,CAAaqB,SAA7B,CAAlB,CADiB;EAExBjB,MAAM,EAAEkB,kBAAA,CAAUG,IAFM;EAGxBpB,QAAQ,EAAEiB,kBAAA,CAAUI;AAHI,CAA1B;eAMexB,a"}
1
+ {"version":3,"file":"index.js","names":["ITEMS","SetupSection","CourseSection","ListItem","DraggableList","items","onDrop","itemType","dragTo","setDragTo","useState","dragFrom","setDragFrom","dragStartHandler","useCallback","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","index","propTypes","PropTypes","arrayOf","oneOfType","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\nimport ListItem from '../../organism/list-item';\n\nconst ITEMS = {\n 'setup-section': SetupSection,\n 'course-section': CourseSection,\n 'list-item': ListItem\n};\n\nconst DraggableList = ({items, onDrop, itemType}) => {\n const [dragTo, setDragTo] = useState(null);\n const [dragFrom, setDragFrom] = useState(null);\n\n const dragStartHandler = useCallback(\n id => {\n setDragFrom(id);\n },\n [setDragFrom]\n );\n\n const dragOverHandler = useCallback(\n id => {\n if (dragTo === id) return;\n setDragTo(id);\n },\n [dragTo, setDragTo]\n );\n\n const dragLeaveHandler = useCallback(\n id => {\n setDragTo(null);\n },\n [setDragTo]\n );\n\n const dropHandler = useCallback(\n id => {\n if (onDrop && dragFrom) onDrop(dragFrom, id);\n\n setDragTo(null);\n setDragFrom(null);\n },\n [onDrop, setDragTo, setDragFrom, dragFrom]\n );\n\n const Item = ITEMS[itemType];\n const itemsView = items.map((item, index) => (\n <Draggable\n key={item.id}\n id={item.id}\n dragging={dragTo === item.id}\n onDragStart={dragStartHandler}\n onDragOver={dragOverHandler}\n onDragLeave={dragLeaveHandler}\n onDrop={dropHandler}\n >\n <Item {...item} key={item.id} order={index} />\n </Draggable>\n ));\n return <div>{itemsView}</div>;\n};\n\nDraggableList.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(SetupSection.propTypes),\n PropTypes.shape(CourseSection.propTypes),\n PropTypes.shape(ListItem.propTypes)\n ])\n ),\n onDrop: PropTypes.func,\n itemType: PropTypes.string\n};\n\nexport default DraggableList;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZ,iBAAiBC,qBADL;EAEZ,kBAAkBC,sBAFN;EAGZ,aAAaC;AAHD,CAAd;;AAMA,MAAMC,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,MAAR;EAAgBC;AAAhB,CAAD,KAA+B;EACnD,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsB,IAAAC,eAAA,EAAS,IAAT,CAA5B;EACA,MAAM,CAACC,QAAD,EAAWC,WAAX,IAA0B,IAAAF,eAAA,EAAS,IAAT,CAAhC;EAEA,MAAMG,gBAAgB,GAAG,IAAAC,kBAAA,EACvBC,EAAE,IAAI;IACJH,WAAW,CAACG,EAAD,CAAX;EACD,CAHsB,EAIvB,CAACH,WAAD,CAJuB,CAAzB;EAOA,MAAMI,eAAe,GAAG,IAAAF,kBAAA,EACtBC,EAAE,IAAI;IACJ,IAAIP,MAAM,KAAKO,EAAf,EAAmB;IACnBN,SAAS,CAACM,EAAD,CAAT;EACD,CAJqB,EAKtB,CAACP,MAAD,EAASC,SAAT,CALsB,CAAxB;EAQA,MAAMQ,gBA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,iBAAA,CAASqB,SAAzB,CAHkB,CAApB,CADK,CADiB;EAQxBlB,MAAM,EAAEmB,kBAAA,CAAUI,IARM;EASxBtB,QAAQ,EAAEkB,kBAAA,CAAUK;AATI,CAA1B;eAYe1B,a"}
@@ -8,6 +8,7 @@ declare namespace News {
8
8
  const description: PropTypes.Requireable<string>;
9
9
  const authorLogo: PropTypes.Requireable<string>;
10
10
  const cta: PropTypes.Requireable<PropTypes.InferProps<{
11
+ 'aria-label': PropTypes.Requireable<string>;
11
12
  submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
12
13
  href: PropTypes.Requireable<string>;
13
14
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -22,6 +23,7 @@ declare namespace News {
22
23
  rectangular: PropTypes.Requireable<boolean>;
23
24
  fullWidth: PropTypes.Requireable<boolean>;
24
25
  certificationButton: PropTypes.Requireable<boolean>;
26
+ useButtonTag: PropTypes.Requireable<boolean>;
25
27
  }>>;
26
28
  }
27
29
  }
@@ -32,6 +32,7 @@ declare namespace ListItem {
32
32
  order: PropTypes.Requireable<number>;
33
33
  'aria-label': PropTypes.Requireable<string>;
34
34
  contentType: PropTypes.Requireable<string>;
35
+ id: PropTypes.Requireable<string>;
35
36
  };
36
37
  }
37
38
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAQA,mDA4CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAQA,mDA8CC"}
@@ -45,10 +45,10 @@ const ListItem = props => {
45
45
  className: _style.default.wrapper
46
46
  }, isPublished && contentType === 'certification' ? /*#__PURE__*/_react.default.createElement("div", {
47
47
  className: _style.default.orderWrapper
48
- }, /*#__PURE__*/_react.default.createElement("div", {
48
+ }, order !== null && order !== undefined ? /*#__PURE__*/_react.default.createElement("div", {
49
49
  className: _style.default.order,
50
50
  "aria-label": ariaLabel
51
- }, order + 1), /*#__PURE__*/_react.default.createElement("div", {
51
+ }, order + 1) : null, /*#__PURE__*/_react.default.createElement("div", {
52
52
  className: _style.default.title,
53
53
  title: title
54
54
  }, title)) : /*#__PURE__*/_react.default.createElement("div", {
@@ -91,7 +91,8 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
91
91
  title: _propTypes.default.string.isRequired,
92
92
  order: _propTypes.default.number,
93
93
  'aria-label': _propTypes.default.string,
94
- contentType: _propTypes.default.string
94
+ contentType: _propTypes.default.string,
95
+ id: _propTypes.default.string
95
96
  } : {};
96
97
  var _default = ListItem;
97
98
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ListItem","props","isPublished","bulletPointMenuButton","buttonLink","tags","title","order","ariaLabel","contentType","tagsView","convert","cap","tag","index","type","style","wrapper","orderWrapper","settings","edit","propTypes","PropTypes","shape","buttonAriaLabel","string","menuAriaLabel","buttons","arrayOf","label","onClick","func","dataName","icon","position","oneOf","isRequired","number"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport style from './style.css';\n\nconst ListItem = props => {\n let isPublished = false;\n const {\n bulletPointMenuButton,\n buttonLink,\n tags,\n title,\n order,\n 'aria-label': ariaLabel,\n contentType\n } = props;\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'published';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n return (\n <div className={style.wrapper}>\n {isPublished && contentType === 'certification' ? (\n <div className={style.orderWrapper}>\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n <div className={style.title} title={title}>\n {title}\n </div>\n </div>\n ) : (\n <div className={style.title} title={title}>\n {title}\n </div>\n )}\n <div className={style.settings}>\n {tagsView}\n <div className={style.edit}>\n <ButtonLink {...buttonLink} />\n </div>\n <BulletPointMenuButton {...bulletPointMenuButton} />\n </div>\n </div>\n );\n};\n\nListItem.propTypes = {\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['published', 'draft', 'archived', 'revised', 'default'])\n })\n ),\n title: PropTypes.string.isRequired,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,QAAQ,GAAGC,KAAK,IAAI;EACxB,IAAIC,WAAW,GAAG,KAAlB;EACA,MAAM;IACJC,qBADI;IAEJC,UAFI;IAGJC,IAHI;IAIJC,KAJI;IAKJC,KALI;IAMJ,cAAcC,SANV;IAOJC;EAPI,IAQFR,KARJ;;EASA,MAAMS,QAAQ,GAAG,cAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,GAAD,EAAMC,KAAN,KAAgB;IACzDZ,WAAW,GAAGW,GAAG,CAACE,IAAJ,KAAa,WAA3B;IACA,oBACE;MAAK,GAAG,EAAED,KAAV;MAAiB,SAAS,EAAEE,cAAA,CAAMH;IAAlC,gBACE,6BAAC,YAAD,EAASA,GAAT,CADF,CADF;EAKD,CA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BI,KAAK,EAAEP,kBAAA,CAAUG,MAFS;IAG1BjB,SAAS,EAAEc,kBAAA,CAAUG,MAHK;IAI1BO,QAAQ,EAAEV,kBAAA,CAAUG,MAJM;IAK1BQ,IAAI,EAAEX,kBAAA,CAAUC,KAAV,CAAgB;MACpBW,QAAQ,EAAEZ,kBAAA,CAAUG,MADA;MAEpBV,IAAI,EAAEO,kBAAA,CAAUG;IAFI,CAAhB,CALoB;IAS1BK,OAAO,EAAER,kBAAA,CAAUS;EATO,CAAhB,CAdO;EAyBnB1B,IAAI,EAAEiB,kBAAA,CAAUM,OAAV,CACJN,kBAAA,CAAUC,KAAV,CAAgB;IACdM,KAAK,EAAEP,kBAAA,CAAUG,MADH;IAEdV,IAAI,EAAEO,kBAAA,CAAUa,KAAV,CAAgB,CAAC,WAAD,EAAc,OAAd,EAAuB,UAAvB,EAAmC,SAAnC,EAA8C,SAA9C,CAAhB;EAFQ,CAAhB,CADI,CAzBa;EA+BnB7B,KAAK,EAAEgB,kBAAA,CAAUG,MAAV,CAAiBW,UA/BL;EAgCnB7B,KAAK,EAAEe,kBAAA,CAAUe,MAhCE;EAiCnB,cAAcf,kBAAA,CAAUG,MAjCL;EAkCnBhB,WAAW,EAAEa,kBAAA,CAAUG;AAlCJ,CAArB;eAqCezB,Q"}
1
+ {"version":3,"file":"index.js","names":["ListItem","props","isPublished","bulletPointMenuButton","buttonLink","tags","title","order","ariaLabel","contentType","tagsView","convert","cap","tag","index","type","style","wrapper","orderWrapper","undefined","settings","edit","propTypes","PropTypes","shape","buttonAriaLabel","string","menuAriaLabel","buttons","arrayOf","label","onClick","func","dataName","icon","position","oneOf","isRequired","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport style from './style.css';\n\nconst ListItem = props => {\n let isPublished = false;\n const {\n bulletPointMenuButton,\n buttonLink,\n tags,\n title,\n order,\n 'aria-label': ariaLabel,\n contentType\n } = props;\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'published';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n return (\n <div className={style.wrapper}>\n {isPublished && contentType === 'certification' ? (\n <div className={style.orderWrapper}>\n {order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null}\n <div className={style.title} title={title}>\n {title}\n </div>\n </div>\n ) : (\n <div className={style.title} title={title}>\n {title}\n </div>\n )}\n <div className={style.settings}>\n {tagsView}\n <div className={style.edit}>\n <ButtonLink {...buttonLink} />\n </div>\n <BulletPointMenuButton {...bulletPointMenuButton} />\n </div>\n </div>\n );\n};\n\nListItem.propTypes = {\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['published', 'draft', 'archived', 'revised', 'default'])\n })\n ),\n title: PropTypes.string.isRequired,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,QAAQ,GAAGC,KAAK,IAAI;EACxB,IAAIC,WAAW,GAA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;EAkCnBjB,WAAW,EAAEc,kBAAA,CAAUG,MAlCJ;EAmCnBa,EAAE,EAAEhB,kBAAA,CAAUG;AAnCK,CAArB;eAsCe1B,Q"}
@@ -33,17 +33,17 @@
33
33
  text-align: left;
34
34
  text-overflow: ellipsis;
35
35
  white-space: nowrap;
36
-
36
+
37
37
  }
38
38
 
39
39
  .settings {
40
40
  align-items: center;
41
41
  display: flex;
42
- height: 100%;
42
+ height: 100%;
43
43
  }
44
44
 
45
45
  .tag {
46
- margin: 0 16px 0 0;
46
+ margin: 0 16px 0 0;
47
47
  text-overflow: ellipsis;
48
48
  white-space: nowrap;
49
49
  }
@@ -64,8 +64,10 @@
64
64
  color: cm_grey_400;
65
65
  margin: 0 16px 0 0;
66
66
  }
67
+
67
68
  .orderWrapper {
68
69
  align-items: center;
69
70
  display: flex;
70
71
  width: 100%;
71
- }
72
+ margin-left: 24px;
73
+ }
@@ -78,6 +78,7 @@ declare namespace ListItems {
78
78
  order: PropTypes.Requireable<number>;
79
79
  'aria-label': PropTypes.Requireable<string>;
80
80
  contentType: PropTypes.Requireable<string>;
81
+ id: PropTypes.Requireable<string>;
81
82
  }> | null | undefined)[]>;
82
83
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
83
84
  items: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -111,9 +112,12 @@ declare namespace ListItems {
111
112
  order: PropTypes.Requireable<number>;
112
113
  'aria-label': PropTypes.Requireable<string>;
113
114
  contentType: PropTypes.Requireable<string>;
115
+ id: PropTypes.Requireable<string>;
114
116
  }> | null | undefined)[]>;
115
117
  type: PropTypes.Requireable<string>;
116
118
  itemType: PropTypes.Requireable<string>;
119
+ onDrop: PropTypes.Requireable<(...args: any[]) => any>;
120
+ displayAll: PropTypes.Requireable<boolean>;
117
121
  }> | PropTypes.InferProps<{
118
122
  type: PropTypes.Requireable<string>;
119
123
  columns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAoCA;;;;;;gBAwBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAiDA;;;;;;gBAwBC"}
@@ -5,10 +5,14 @@ exports.default = void 0;
5
5
 
6
6
  var _react = _interopRequireDefault(require("react"));
7
7
 
8
+ var _findIndex = _interopRequireDefault(require("lodash/fp/findIndex"));
9
+
8
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
11
 
10
12
  var _listItem = _interopRequireDefault(require("../list-item"));
11
13
 
14
+ var _draggableList = _interopRequireDefault(require("../../molecule/draggable-list"));
15
+
12
16
  var _title = _interopRequireDefault(require("../../atom/title"));
13
17
 
14
18
  var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
@@ -26,14 +30,23 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
26
30
  const buildListItemsView = (content, ariaLabel, selectMultiple) => {
27
31
  const {
28
32
  items,
29
- itemType
33
+ itemType,
34
+ onDrop,
35
+ displayAll
30
36
  } = content;
31
- const itemsView = items.map((item, index) => /*#__PURE__*/_react.default.createElement("li", {
37
+ const itemsView = (0, _findIndex.default)({
38
+ type: 'published'
39
+ }, items[0]?.tags) !== -1 && itemType === 'certification' && !displayAll ? /*#__PURE__*/_react.default.createElement(_draggableList.default, {
40
+ items: items.map(item => _extends({}, item, {
41
+ itemType
42
+ })),
43
+ itemType: "list-item",
44
+ onDrop: onDrop
45
+ }) : items.map((item, index) => /*#__PURE__*/_react.default.createElement("li", {
32
46
  key: item.id,
33
47
  className: _style.default.item,
34
48
  "data-name": `content-${index}`
35
49
  }, /*#__PURE__*/_react.default.createElement(_listItem.default, _extends({}, item, {
36
- order: index,
37
50
  contentType: itemType
38
51
  }))));
39
52
  return /*#__PURE__*/_react.default.createElement("ul", {
@@ -90,7 +103,9 @@ ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
90
103
  content: _propTypes.default.oneOfType([_propTypes.default.shape({
91
104
  items: _propTypes.default.arrayOf(_propTypes.default.shape(_listItem.default.propTypes)),
92
105
  type: _propTypes.default.oneOf(['list']),
93
- itemType: _propTypes.default.string
106
+ itemType: _propTypes.default.string,
107
+ onDrop: _propTypes.default.func,
108
+ displayAll: _propTypes.default.bool
94
109
  }), _propTypes.default.shape(_extends({}, _expandibleActionableTable.default.propTypes, {
95
110
  type: _propTypes.default.oneOf(['expandible-actionable-table'])
96
111
  }))]),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","itemsView","map","item","index","id","style","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","PropTypes","string","shape","ButtonLink","SelectMultiple","arrayOf","ListItem","oneOfType","oneOf","ExpandibleActionableTable"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType} = content;\n const itemsView = items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={index} contentType={itemType} />\n </li>\n ));\n return (\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n );\n};\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CAACC,OAAD,EAAUC,SAAV,EAAqBC,cAArB,KAAwC;EACjE,MAAM;IAACC,KAAD;IAAQC;EAAR,IAAoBJ,OAA1B;EACA,MAAMK,SAAS,GAAGF,KAAK,CAACG,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,kBAC1B;IAAI,GAAG,EAAED,IAAI,CAACE,EAAd;IAAkB,SAAS,EAAEC,cAAA,CAAMH,IAAnC;IAAyC,aAAY,WAAUC,KAAM;EAArE,gBACE,6BAAC,iBAAD,eAAcD,IAAd;IAAoB,KAAK,EAAEC,KAA3B;IAAkC,WAAW,EAAEJ;EAA/C,GADF,CADgB,CAAlB;EAKA,oBACE;IACE,SAAS,EAAE,CAACF,cAAD,GAAkBQ,cAAA,CAAMC,IAAxB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AAA,CAAWJ,SAA3B,CAFQ;EAGpBpB,cAAc,EAAEqB,kBAAA,CAAUE,KAAV,CAAgBE,uBAAA,CAAeL,SAA/B,CAHI;EAIpBnB,KAAK,EAAEoB,kBAAA,CAAUK,OAAV,CAAkBL,kBAAA,CAAUE,KAAV,CAAgBI,iBAAA,CAASP,SAAzB,CAAlB,CAJa;EAKpBtB,OAAO,EAAEuB,kBAAA,CAAUO,SAAV,CAAoB,CAC3BP,kBAAA,CAAUE,KAAV,CAAgB;IACdtB,KAAK,EAAEoB,kBAAA,CAAUK,OAAV,CAAkBL,kBAAA,CAAUE,KAAV,CAAgBI,iBAAA,CAASP,SAAzB,CAAlB,CADO;IAEdR,IAAI,EAAES,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGd3B,QAAQ,EAAEmB,kBAAA,CAAUC;EAHN,CAAhB,CAD2B,EAM3BD,kBAAA,CAAUE,KAAV,cACKO,kCAAA,CAA0BV,SAD/B;IAEER,IAAI,EAAES,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAN2B,CAApB,CALW;EAgBpBf,KAAK,EAAEO,kBAAA,CAAUC;AAhBG,CAAtB;eAmBeT,S"}
1
+ {"version":3,"file":"index.js","names":["buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","displayAll","itemsView","findIndex","type","tags","map","item","index","id","style","list","listWithSelectMultiple","buildContentView","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","PropTypes","string","shape","ButtonLink","SelectMultiple","arrayOf","ListItem","oneOfType","oneOf","func","bool","ExpandibleActionableTable"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport findIndex from 'lodash/fp/findIndex';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, displayAll} = content;\n const itemsView =\n findIndex({type: 'published'}, items[0]?.tags) !== -1 &&\n itemType === 'certification' &&\n !displayAll ? (\n <DraggableList\n items={items.map(item => ({...item, itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} contentType={itemType} />\n </li>\n ))\n );\n return (\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n );\n};\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n displayAll: PropTypes.bool\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CAACC,OAAD,EAAUC,SAAV,EAAqBC,cAArB,KAAwC;EACjE,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC,MAAlB;IAA0BC;EAA1B,IAAwCN,OAA9C;EACA,MAAMO,SAAS,GACb,IAAAC,kBAAA,EAAU;IAACC,IAAI,EAAE;EAAP,CAAV,EAA+BN,KAAK,CAAC,CAAD,CAAL,EAAUO,IAAzC,MAAmD,CAAC,CAApD,IACAN,QAAQ,KAAK,eADb,IAEA,CAACE,UAFD,gBAGE,6BAAC,sBAAD;IACE,KAAK,EAAEH,KAAK,CAACQ,GAAN,CAAUC,IAAI,iBAASA,IAAT;MAAeR;IAAf,EAAd,CADT;IAEE,QAAQ,EAAC,WAFX;IAGE,MAAM,EAAEC;EAHV,EAHF,GASEF,KAAK,CAACQ,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,kBACR;IAAI,GAAG,EAAED,IAAI,CAACE,EAAd;IAAkB,SAAS,EAAEC,cAAA,CAAMH,IAAnC;IAAyC,aAAY,WAAUC,KAAM;EAArE,gBACE,6BAAC,iBAAD,eAAcD,IAAd;IAAoB,WAAW,EAAER;EAAjC,GADF,CADF,CAVJ;EAgBA,oBACE;IACE,SAAS,EAAE,CAACF,cAAD,GAAkBa,cAAA,CAAMC,IAAxB,GAA+BD,cAAA,CAAME,sBADlD;IAEE,cAAYhB,SAFd;IAGE,aAAW;EAHb,GAKGM,SALH,CADF;AASD,CA3BD;;AA4BA,MAAMW,gBAAgB,GAAG,CAAClB,OAAD,EAAUC,SAAV,EAAqBC,cAArB,KAAw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CAAUE,KAAV,CAAgBI,iBAAA,CAASP,SAAzB,CAAlB,CAJa;EAKpB1B,OAAO,EAAE2B,kBAAA,CAAUO,SAAV,CAAoB,CAC3BP,kBAAA,CAAUE,KAAV,CAAgB;IACd1B,KAAK,EAAEwB,kBAAA,CAAUK,OAAV,CAAkBL,kBAAA,CAAUE,KAAV,CAAgBI,iBAAA,CAASP,SAAzB,CAAlB,CADO;IAEdjB,IAAI,EAAEkB,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGd/B,QAAQ,EAAEuB,kBAAA,CAAUC,MAHN;IAIdvB,MAAM,EAAEsB,kBAAA,CAAUS,IAJJ;IAKd9B,UAAU,EAAEqB,kBAAA,CAAUU;EALR,CAAhB,CAD2B,EAQ3BV,kBAAA,CAAUE,KAAV,cACKS,kCAAA,CAA0BZ,SAD/B;IAEEjB,IAAI,EAAEkB,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAR2B,CAApB,CALW;EAkBpBf,KAAK,EAAEO,kBAAA,CAAUC;AAlBG,CAAtB;eAqBeT,S"}
@@ -10,6 +10,7 @@ declare namespace ImageSlider {
10
10
  subtitle: PropTypes.Requireable<string>;
11
11
  light: PropTypes.Requireable<boolean>;
12
12
  cta: PropTypes.Requireable<PropTypes.InferProps<{
13
+ 'aria-label': PropTypes.Requireable<string>;
13
14
  submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
14
15
  href: PropTypes.Requireable<string>;
15
16
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -24,6 +25,7 @@ declare namespace ImageSlider {
24
25
  rectangular: PropTypes.Requireable<boolean>;
25
26
  fullWidth: PropTypes.Requireable<boolean>;
26
27
  certificationButton: PropTypes.Requireable<boolean>;
28
+ useButtonTag: PropTypes.Requireable<boolean>;
27
29
  }>>;
28
30
  alignment: PropTypes.Requireable<string>;
29
31
  }> | null | undefined)[]>;
@@ -42,6 +42,7 @@ declare class MoocHeader extends React.Component<any, any, any> {
42
42
  }> | null | undefined)[]>;
43
43
  }>>;
44
44
  links: PropTypes.Requireable<(PropTypes.InferProps<{
45
+ 'aria-label': PropTypes.Requireable<string>;
45
46
  submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
46
47
  href: PropTypes.Requireable<string>;
47
48
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -56,6 +57,7 @@ declare class MoocHeader extends React.Component<any, any, any> {
56
57
  rectangular: PropTypes.Requireable<boolean>;
57
58
  fullWidth: PropTypes.Requireable<boolean>;
58
59
  certificationButton: PropTypes.Requireable<boolean>;
60
+ useButtonTag: PropTypes.Requireable<boolean>;
59
61
  }> | null | undefined)[]>;
60
62
  user: PropTypes.Requireable<PropTypes.InferProps<{
61
63
  picture: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAyBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6FE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAwBC;IAtBC;;;;;;MAMC;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,6BAIE;IAEF,6BAIE;IAEF,6BAucC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAyBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6FE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAwBC;IAtBC;;;;;;MAMC;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,6BAIE;IAEF,6BAIE;IAEF,6BAucC;CACF"}
@@ -141,6 +141,7 @@ export namespace ButtonItem {
141
141
  const onClick_1: PropTypes.Requireable<(...args: any[]) => any>;
142
142
  export { onClick_1 as onClick };
143
143
  export const cta: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
144
+ 'aria-label': PropTypes.Requireable<string>;
144
145
  submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
145
146
  href: PropTypes.Requireable<string>;
146
147
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -155,6 +156,7 @@ export namespace ButtonItem {
155
156
  rectangular: PropTypes.Requireable<boolean>;
156
157
  fullWidth: PropTypes.Requireable<boolean>;
157
158
  certificationButton: PropTypes.Requireable<boolean>;
159
+ useButtonTag: PropTypes.Requireable<boolean>;
158
160
  }> | null | undefined>>;
159
161
  const uppercase_4: PropTypes.Requireable<boolean>;
160
162
  export { uppercase_4 as uppercase };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/sidebar/index.js"],"names":[],"mappings":"AAeO,uDA0BN;;;;;;;;;;;;;AAaM;;;;;;;gBAON;;;;;;;;;;;;;;;;;;;;;AAiBM;;;;;;;gBAON;;;;;AAIM;;;;;;;;;;;;;gBAwDN;;;;;;;;;;;;;;;;;;;;AAeM;;;;;;gBAyBN;;;;;AAIM;;;;;gBAMN;;;;;;;;;;;;;;AASM;;;;;;;;;;gBA6CN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM;;;;;;;;;gBAuBN;;;;;;;;;;;;;;;;;;;;;;;;AAkED;;8BAaC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/sidebar/index.js"],"names":[],"mappings":"AAeO,uDA0BN;;;;;;;;;;;;;AAaM;;;;;;;gBAON;;;;;;;;;;;;;;;;;;;;;AAiBM;;;;;;;gBAON;;;;;AAIM;;;;;;;;;;;;;gBAwDN;;;;;;;;;;;;;;;;;;;;AAeM;;;;;;gBAyBN;;;;;AAIM;;;;;gBAMN;;;;;;;;;;;;;;AASM;;;;;;;;;;gBA6CN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM;;;;;;;;;gBAuBN;;;;;;;;;;;;;;;;;;;;;;;;AAkED;;8BAaC"}
@@ -4,6 +4,7 @@ declare namespace SlidePlayer {
4
4
  namespace propTypes {
5
5
  const player: PropTypes.Requireable<PropTypes.InferProps<{
6
6
  cta: PropTypes.Requireable<PropTypes.InferProps<{
7
+ 'aria-label': PropTypes.Requireable<string>;
7
8
  submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
8
9
  href: PropTypes.Requireable<string>;
9
10
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -18,6 +19,7 @@ declare namespace SlidePlayer {
18
19
  rectangular: PropTypes.Requireable<boolean>;
19
20
  fullWidth: PropTypes.Requireable<boolean>;
20
21
  certificationButton: PropTypes.Requireable<boolean>;
22
+ useButtonTag: PropTypes.Requireable<boolean>;
21
23
  }>>;
22
24
  step: PropTypes.Requireable<PropTypes.InferProps<{
23
25
  current: PropTypes.Validator<number>;
@@ -128,6 +128,7 @@ declare function ValidateButton({ cta }: {
128
128
  declare namespace ValidateButton {
129
129
  export namespace propTypes_1 {
130
130
  const cta_1: PropTypes.Requireable<PropTypes.InferProps<{
131
+ 'aria-label': PropTypes.Requireable<string>;
131
132
  submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
132
133
  href: PropTypes.Requireable<string>;
133
134
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -142,6 +143,7 @@ declare namespace ValidateButton {
142
143
  rectangular: PropTypes.Requireable<boolean>;
143
144
  fullWidth: PropTypes.Requireable<boolean>;
144
145
  certificationButton: PropTypes.Requireable<boolean>;
146
+ useButtonTag: PropTypes.Requireable<boolean>;
145
147
  }>>;
146
148
  export { cta_1 as cta };
147
149
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AAgZA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1HD;;uBAUC;;;;;;;;;;;;;;;;;;;;;;;AAnOD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;gBAAoF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhHpF,oEAQC;;;;;;;;;AA6MD;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AAgZA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1HD;;uBAUC;;;;;;;;;;;;;;;;;;;;;;;;;AAnOD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;gBAAoF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhHpF,oEAQC;;;;;;;;;AA6MD;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
@@ -36,6 +36,7 @@ declare class PopinCorrection extends React.Component<any, any, any> {
36
36
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
37
37
  onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
38
38
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
39
+ useButtonTag: PropTypes.Requireable<boolean>;
39
40
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
40
41
  }>>;
41
42
  type: PropTypes.Validator<string>;
@@ -83,6 +84,7 @@ declare class PopinCorrection extends React.Component<any, any, any> {
83
84
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
84
85
  onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
85
86
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
87
+ useButtonTag: PropTypes.Requireable<boolean>;
86
88
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
87
89
  }>>;
88
90
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
@@ -36,6 +36,7 @@ declare namespace PopinEnd {
36
36
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
37
37
  onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
38
38
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
39
+ useButtonTag: PropTypes.Requireable<boolean>;
39
40
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
40
41
  }>>;
41
42
  type: PropTypes.Validator<string>;
@@ -42,6 +42,7 @@ declare namespace Summary {
42
42
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
43
43
  onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
44
44
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
45
+ useButtonTag: PropTypes.Requireable<boolean>;
45
46
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
46
47
  }>>;
47
48
  type: PropTypes.Validator<string>;
@@ -72,6 +72,7 @@ declare namespace NextQuestionPart {
72
72
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
73
73
  onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
74
74
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
75
+ useButtonTag: PropTypes.Requireable<boolean>;
75
76
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
76
77
  }>>;
77
78
  export { cta_1 as cta };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-header/index.js"],"names":[],"mappings":";AAyWA,oEAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtID,gFA4DC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5HD,yDAmDC;;;;;;;;;;;;;;;;;;;;;;;;;AApOD;;gBAkBC;;;;;;;;;;;AA8ED;;;;;uBAYC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-header/index.js"],"names":[],"mappings":";AAyWA,oEAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtID,gFA4DC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5HD,yDAmDC;;;;;;;;;;;;;;;;;;;;;;;;;AApOD;;gBAkBC;;;;;;;;;;;AA8ED;;;;;uBAYC"}
@@ -826,6 +826,7 @@ declare namespace BrandUpdate {
826
826
  order: PropTypes.Requireable<number>;
827
827
  'aria-label': PropTypes.Requireable<string>;
828
828
  contentType: PropTypes.Requireable<string>;
829
+ id: PropTypes.Requireable<string>;
829
830
  }> | null | undefined)[]>;
830
831
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
831
832
  items: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -859,9 +860,12 @@ declare namespace BrandUpdate {
859
860
  order: PropTypes.Requireable<number>;
860
861
  'aria-label': PropTypes.Requireable<string>;
861
862
  contentType: PropTypes.Requireable<string>;
863
+ id: PropTypes.Requireable<string>;
862
864
  }> | null | undefined)[]>;
863
865
  type: PropTypes.Requireable<string>;
864
866
  itemType: PropTypes.Requireable<string>;
867
+ onDrop: PropTypes.Requireable<(...args: any[]) => any>;
868
+ displayAll: PropTypes.Requireable<boolean>;
865
869
  }> | PropTypes.InferProps<{
866
870
  type: PropTypes.Requireable<string>;
867
871
  columns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -17,6 +17,7 @@ declare namespace TeamsDashboard {
17
17
  closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
18
18
  }>>;
19
19
  const platformLinks: PropTypes.Requireable<(PropTypes.InferProps<{
20
+ 'aria-label': PropTypes.Requireable<string>;
20
21
  submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
21
22
  href: PropTypes.Requireable<string>;
22
23
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -31,6 +32,7 @@ declare namespace TeamsDashboard {
31
32
  rectangular: PropTypes.Requireable<boolean>;
32
33
  fullWidth: PropTypes.Requireable<boolean>;
33
34
  certificationButton: PropTypes.Requireable<boolean>;
35
+ useButtonTag: PropTypes.Requireable<boolean>;
34
36
  }> | null | undefined)[]>;
35
37
  const sections: PropTypes.Requireable<(PropTypes.InferProps<{
36
38
  contentType: PropTypes.Requireable<string>;