@coorpacademy/components 11.12.1 → 11.12.3-alpha.9

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 (156) hide show
  1. package/es/atom/drag-and-drop/index.d.ts +2 -0
  2. package/es/atom/drag-and-drop/index.d.ts.map +1 -1
  3. package/es/atom/drag-and-drop/index.js +26 -2
  4. package/es/atom/drag-and-drop/index.js.map +1 -1
  5. package/es/atom/drag-and-drop/style.css +21 -5
  6. package/es/atom/image-upload/index.d.ts +5 -1
  7. package/es/atom/image-upload/index.d.ts.map +1 -1
  8. package/es/atom/image-upload/index.js +8 -10
  9. package/es/atom/image-upload/index.js.map +1 -1
  10. package/es/atom/video-upload/index.d.ts +2 -0
  11. package/es/molecule/brand-form-group/index.d.ts +4 -0
  12. package/es/molecule/card/favorite.d.ts +14 -9
  13. package/es/molecule/card/favorite.d.ts.map +1 -1
  14. package/es/molecule/card/favorite.js +51 -65
  15. package/es/molecule/card/favorite.js.map +1 -1
  16. package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
  17. package/es/molecule/drag-and-drop-wrapper/style.css +1 -1
  18. package/es/molecule/expandable-item/index.d.ts +26 -0
  19. package/es/molecule/expandable-item/index.d.ts.map +1 -0
  20. package/es/molecule/expandable-item/index.js +51 -0
  21. package/es/molecule/expandable-item/index.js.map +1 -0
  22. package/es/molecule/expandable-item/style.css +129 -0
  23. package/es/molecule/expandable-list/index.d.ts +16 -0
  24. package/es/molecule/expandable-list/index.d.ts.map +1 -0
  25. package/es/molecule/expandable-list/index.js +34 -0
  26. package/es/molecule/expandable-list/index.js.map +1 -0
  27. package/es/molecule/expandable-list/style.css +25 -0
  28. package/es/molecule/hero/index.d.ts +2 -0
  29. package/es/molecule/hero/index.d.ts.map +1 -1
  30. package/es/molecule/hero/index.js +14 -4
  31. package/es/molecule/hero/index.js.map +1 -1
  32. package/es/molecule/hero/style.css +42 -0
  33. package/es/molecule/menu-links/index.d.ts +18 -0
  34. package/es/molecule/menu-links/index.d.ts.map +1 -0
  35. package/es/molecule/menu-links/index.js +43 -0
  36. package/es/molecule/menu-links/index.js.map +1 -0
  37. package/es/molecule/menu-links/style.css +87 -0
  38. package/es/molecule/privacy-policy-contact/index.d.ts +18 -0
  39. package/es/molecule/privacy-policy-contact/index.d.ts.map +1 -0
  40. package/es/molecule/privacy-policy-contact/index.js +31 -0
  41. package/es/molecule/privacy-policy-contact/index.js.map +1 -0
  42. package/es/molecule/privacy-policy-contact/style.css +37 -0
  43. package/es/molecule/privacy-policy-download/index.d.ts +30 -0
  44. package/es/molecule/privacy-policy-download/index.d.ts.map +1 -0
  45. package/es/molecule/privacy-policy-download/index.js +30 -0
  46. package/es/molecule/privacy-policy-download/index.js.map +1 -0
  47. package/es/molecule/privacy-policy-download/style.css +42 -0
  48. package/es/molecule/setup-slide/index.d.ts +2 -0
  49. package/es/molecule/setup-slider/index.d.ts +2 -0
  50. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  51. package/es/organism/brand-form/index.d.ts +4 -0
  52. package/es/organism/list-item/index.d.ts +1 -0
  53. package/es/organism/list-item/index.d.ts.map +1 -1
  54. package/es/organism/list-item/index.js +5 -3
  55. package/es/organism/list-item/index.js.map +1 -1
  56. package/es/organism/list-items/index.d.ts +4 -1
  57. package/es/organism/list-items/index.d.ts.map +1 -1
  58. package/es/organism/list-items/index.js +6 -3
  59. package/es/organism/list-items/index.js.map +1 -1
  60. package/es/organism/rewards-form/index.d.ts +2 -0
  61. package/es/organism/wizard-contents/index.d.ts +6 -0
  62. package/es/template/back-office/brand-update/index.d.ts +12 -0
  63. package/es/template/back-office/brand-update/index.js +2 -1
  64. package/es/template/back-office/brand-update/index.js.map +1 -1
  65. package/es/template/cockpit/jw-uploader/index.d.ts +2 -0
  66. package/es/template/common/privacy-policy-page/index.d.ts +59 -0
  67. package/es/template/common/privacy-policy-page/index.d.ts.map +1 -0
  68. package/es/template/common/privacy-policy-page/index.js +47 -0
  69. package/es/template/common/privacy-policy-page/index.js.map +1 -0
  70. package/es/template/common/privacy-policy-page/style.css +78 -0
  71. package/es/util/button-icons.d.ts +1 -0
  72. package/es/util/button-icons.d.ts.map +1 -1
  73. package/es/util/button-icons.js +3 -2
  74. package/es/util/button-icons.js.map +1 -1
  75. package/es/util/proptypes.d.ts.map +1 -1
  76. package/es/util/proptypes.js +2 -2
  77. package/es/util/proptypes.js.map +1 -1
  78. package/lib/atom/drag-and-drop/index.d.ts +2 -0
  79. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  80. package/lib/atom/drag-and-drop/index.js +26 -2
  81. package/lib/atom/drag-and-drop/index.js.map +1 -1
  82. package/lib/atom/drag-and-drop/style.css +21 -5
  83. package/lib/atom/image-upload/index.d.ts +5 -1
  84. package/lib/atom/image-upload/index.d.ts.map +1 -1
  85. package/lib/atom/image-upload/index.js +8 -11
  86. package/lib/atom/image-upload/index.js.map +1 -1
  87. package/lib/atom/video-upload/index.d.ts +2 -0
  88. package/lib/molecule/brand-form-group/index.d.ts +4 -0
  89. package/lib/molecule/card/favorite.d.ts +14 -9
  90. package/lib/molecule/card/favorite.d.ts.map +1 -1
  91. package/lib/molecule/card/favorite.js +55 -65
  92. package/lib/molecule/card/favorite.js.map +1 -1
  93. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
  94. package/lib/molecule/drag-and-drop-wrapper/style.css +1 -1
  95. package/lib/molecule/expandable-item/index.d.ts +26 -0
  96. package/lib/molecule/expandable-item/index.d.ts.map +1 -0
  97. package/lib/molecule/expandable-item/index.js +66 -0
  98. package/lib/molecule/expandable-item/index.js.map +1 -0
  99. package/lib/molecule/expandable-item/style.css +129 -0
  100. package/lib/molecule/expandable-list/index.d.ts +16 -0
  101. package/lib/molecule/expandable-list/index.d.ts.map +1 -0
  102. package/lib/molecule/expandable-list/index.js +48 -0
  103. package/lib/molecule/expandable-list/index.js.map +1 -0
  104. package/lib/molecule/expandable-list/style.css +25 -0
  105. package/lib/molecule/hero/index.d.ts +2 -0
  106. package/lib/molecule/hero/index.d.ts.map +1 -1
  107. package/lib/molecule/hero/index.js +14 -4
  108. package/lib/molecule/hero/index.js.map +1 -1
  109. package/lib/molecule/hero/style.css +42 -0
  110. package/lib/molecule/menu-links/index.d.ts +18 -0
  111. package/lib/molecule/menu-links/index.d.ts.map +1 -0
  112. package/lib/molecule/menu-links/index.js +54 -0
  113. package/lib/molecule/menu-links/index.js.map +1 -0
  114. package/lib/molecule/menu-links/style.css +87 -0
  115. package/lib/molecule/privacy-policy-contact/index.d.ts +18 -0
  116. package/lib/molecule/privacy-policy-contact/index.d.ts.map +1 -0
  117. package/lib/molecule/privacy-policy-contact/index.js +44 -0
  118. package/lib/molecule/privacy-policy-contact/index.js.map +1 -0
  119. package/lib/molecule/privacy-policy-contact/style.css +37 -0
  120. package/lib/molecule/privacy-policy-download/index.d.ts +30 -0
  121. package/lib/molecule/privacy-policy-download/index.d.ts.map +1 -0
  122. package/lib/molecule/privacy-policy-download/index.js +41 -0
  123. package/lib/molecule/privacy-policy-download/index.js.map +1 -0
  124. package/lib/molecule/privacy-policy-download/style.css +42 -0
  125. package/lib/molecule/setup-slide/index.d.ts +2 -0
  126. package/lib/molecule/setup-slider/index.d.ts +2 -0
  127. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  128. package/lib/organism/brand-form/index.d.ts +4 -0
  129. package/lib/organism/list-item/index.d.ts +1 -0
  130. package/lib/organism/list-item/index.d.ts.map +1 -1
  131. package/lib/organism/list-item/index.js +5 -3
  132. package/lib/organism/list-item/index.js.map +1 -1
  133. package/lib/organism/list-items/index.d.ts +4 -1
  134. package/lib/organism/list-items/index.d.ts.map +1 -1
  135. package/lib/organism/list-items/index.js +6 -3
  136. package/lib/organism/list-items/index.js.map +1 -1
  137. package/lib/organism/rewards-form/index.d.ts +2 -0
  138. package/lib/organism/wizard-contents/index.d.ts +6 -0
  139. package/lib/template/back-office/brand-update/index.d.ts +12 -0
  140. package/lib/template/back-office/brand-update/index.js +2 -1
  141. package/lib/template/back-office/brand-update/index.js.map +1 -1
  142. package/lib/template/cockpit/jw-uploader/index.d.ts +2 -0
  143. package/lib/template/common/privacy-policy-page/index.d.ts +59 -0
  144. package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -0
  145. package/lib/template/common/privacy-policy-page/index.js +61 -0
  146. package/lib/template/common/privacy-policy-page/index.js.map +1 -0
  147. package/lib/template/common/privacy-policy-page/style.css +78 -0
  148. package/lib/util/button-icons.d.ts +1 -0
  149. package/lib/util/button-icons.d.ts.map +1 -1
  150. package/lib/util/button-icons.js +2 -1
  151. package/lib/util/button-icons.js.map +1 -1
  152. package/lib/util/proptypes.d.ts.map +1 -1
  153. package/lib/util/proptypes.js +2 -2
  154. package/lib/util/proptypes.js.map +1 -1
  155. package/package.json +2 -2
  156. package/locales/.mtslconfig.json +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ListItem","props","isPublished","bulletPointMenuButton","buttonLink","tags","title","order","ariaLabel","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 {bulletPointMenuButton, buttonLink, tags, title, order, 'aria-label': ariaLabel} = props;\n\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 ? (\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};\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;IAACC,qBAAD;IAAwBC,UAAxB;IAAoCC,IAApC;IAA0CC,KAA1C;IAAiDC,KAAjD;IAAwD,cAAcC;EAAtE,IAAmFP,KAAzF;;EAEA,MAAMQ,QAAQ,GAAG,cAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,GAAD,EAAMC,KAAN,KAAgB;IACzDX,WAAW,GAAGU,GAAG,CAACE,IAAJ,KAAa,WAA3B;IACA,oBACE;MAAK,GAAG,EAAED,KAAV;MAAiB,SAAS,EAAEE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1BR,IAAI,EAAEO,kBAAA,CAAUG,MADU;IAE1BI,KAAK,EAAEP,kBAAA,CAAUG,MAFS;IAG1BhB,SAAS,EAAEa,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;EAyBnBzB,IAAI,EAAEgB,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+BnB5B,KAAK,EAAEe,kBAAA,CAAUG,MAAV,CAAiBW,UA/BL;EAgCnB5B,KAAK,EAAEc,kBAAA,CAAUe,MAhCE;EAiCnB,cAAcf,kBAAA,CAAUG;AAjCL,CAArB;eAoCexB,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","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,IAH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, items, "aria-label": ariaLabel }: {
2
+ declare function ListItems({ title, buttonLink, items, "aria-label": ariaLabel, contentType }: {
3
3
  title: any;
4
4
  buttonLink: any;
5
5
  items: any;
6
6
  "aria-label": any;
7
+ contentType: any;
7
8
  }): JSX.Element;
8
9
  declare namespace ListItems {
9
10
  const propTypes: {
@@ -58,8 +59,10 @@ declare namespace ListItems {
58
59
  title: PropTypes.Validator<string>;
59
60
  order: PropTypes.Requireable<number>;
60
61
  'aria-label': PropTypes.Requireable<string>;
62
+ contentType: PropTypes.Requireable<string>;
61
63
  }> | null | undefined)[]>;
62
64
  title: PropTypes.Requireable<string>;
65
+ contentType: PropTypes.Requireable<string>;
63
66
  };
64
67
  }
65
68
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAOA;;;;;gBAsBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAOA;;;;;;gBAsBC"}
@@ -23,14 +23,16 @@ const ListItems = ({
23
23
  title,
24
24
  buttonLink,
25
25
  items,
26
- 'aria-label': ariaLabel
26
+ 'aria-label': ariaLabel,
27
+ contentType
27
28
  }) => {
28
29
  const itemsView = items.map((item, index) => /*#__PURE__*/_react.default.createElement("li", {
29
30
  key: item.id,
30
31
  className: _style.default.item,
31
32
  "data-name": `content-${index}`
32
33
  }, /*#__PURE__*/_react.default.createElement(_listItem.default, _extends({}, item, {
33
- order: index
34
+ order: index,
35
+ contentType: contentType
34
36
  }))));
35
37
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
36
38
  className: _style.default.header
@@ -53,7 +55,8 @@ ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
53
55
  'aria-label': _propTypes.default.string,
54
56
  buttonLink: _propTypes.default.shape(_buttonLink.default.propTypes),
55
57
  items: _propTypes.default.arrayOf(_propTypes.default.shape(_listItem.default.propTypes)),
56
- title: _propTypes.default.string
58
+ title: _propTypes.default.string,
59
+ contentType: _propTypes.default.string
57
60
  } : {};
58
61
  var _default = ListItems;
59
62
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ListItems","title","buttonLink","items","ariaLabel","itemsView","map","item","index","id","style","header","buttonCreate","list","propTypes","PropTypes","string","shape","ButtonLink","arrayOf","ListItem"],"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 style from './style.css';\n\nconst ListItems = ({title, buttonLink, items, 'aria-label': ariaLabel}) => {\n const itemsView = items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={index} />\n </li>\n ));\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.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n <ul className={style.list} aria-label={ariaLabel} data-name={'content-list'}>\n {itemsView}\n </ul>\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC,KAAD;EAAQC,UAAR;EAAoBC,KAApB;EAA2B,cAAcC;AAAzC,CAAD,KAAyD;EACzE,MAAMC,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;EAA3B,GADF,CADgB,CAAlB;EAMA,oBACE,uDACE;IAAK,SAAS,EAAEE,cAAA,CAAMC;EAAtB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAMT;EAAtB,gBACE,6BAAC,cAAD;IAAO,KAAK,EAAEA,KAAd;IAAqB,IAAI,EAAE,YAA3B;IAAyC,aAAW;EAApD,EADF,CADF,eAIE;IAAK,SAAS,EAAES,cAAA,CAAME;EAAtB,gBACE,6BAAC,mBAAD,EAAgBV,UAAhB,CADF,CAJF,CADF,eASE;IAAI,SAAS,EAAEQ,cAAA,CAAMG,IAArB;IAA2B,cAAYT,SAAvC;IAAkD,aAAW;EAA7D,GACGC,SADH,CATF,CADF;AAeD,CAtBD;;AAwBAL,SAAS,CAACc,SAAV,2CAAsB;EACpB,cAAcC,kBAAA,CAAUC,MADJ;EAEpBd,UAAU,EAAEa,kBAAA,CAAUE,KAAV,CAAgBC,mBAAA,CAAWJ,SAA3B,CAFQ;EAGpBX,KAAK,EAAEY,kBAAA,CAAUI,OAAV,CAAkBJ,kBAAA,CAAUE,KAAV,CAAgBG,iBAAA,CAASN,SAAzB,CAAlB,CAHa;EAIpBb,KAAK,EAAEc,kBAAA,CAAUC;AAJG,CAAtB;eAOehB,S"}
1
+ {"version":3,"file":"index.js","names":["ListItems","title","buttonLink","items","ariaLabel","contentType","itemsView","map","item","index","id","style","header","buttonCreate","list","propTypes","PropTypes","string","shape","ButtonLink","arrayOf","ListItem"],"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 style from './style.css';\n\nconst ListItems = ({title, buttonLink, items, 'aria-label': ariaLabel, contentType}) => {\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={contentType} />\n </li>\n ));\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.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n <ul className={style.list} aria-label={ariaLabel} data-name={'content-list'}>\n {itemsView}\n </ul>\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n title: PropTypes.string,\n contentType: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC,KAAD;EAAQC,UAAR;EAAoBC,KAApB;EAA2B,cAAcC,SAAzC;EAAoDC;AAApD,CAAD,KAAsE;EACtF,MAAMC,SAAS,GAAGH,KAAK,CAACI,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;EAMA,oBACE,uDACE;IAAK,SAAS,EAAEM,cAAA,CAAMC;EAAtB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAMV;EAAtB,gBACE,6BAAC,cAAD;IAAO,KAAK,EAAEA,KAAd;IAAqB,IAAI,EAAE,YAA3B;IAAyC,aAAW;EAApD,EADF,CADF,eAIE;IAAK,SAAS,EAAEU,cAAA,CAAME;EAAtB,gBACE,6BAAC,mBAAD,EAAgBX,UAAhB,CADF,CAJF,CADF,eASE;IAAI,SAAS,EAAES,cAAA,CAAMG,IAArB;IAA2B,cAAYV,SAAvC;IAAkD,aAAW;EAA7D,GACGE,SADH,CATF,CADF;AAeD,CAtBD;;AAwBAN,SAAS,CAACe,SAAV,2CAAsB;EACpB,cAAcC,kBAAA,CAAUC,MADJ;EAEpBf,UAAU,EAAEc,kBAAA,CAAUE,KAAV,CAAgBC,mBAAA,CAAWJ,SAA3B,CAFQ;EAGpBZ,KAAK,EAAEa,kBAAA,CAAUI,OAAV,CAAkBJ,kBAAA,CAAUE,KAAV,CAAgBG,iBAAA,CAASN,SAAzB,CAAlB,CAHa;EAIpBd,KAAK,EAAEe,kBAAA,CAAUC,MAJG;EAKpBZ,WAAW,EAAEW,kBAAA,CAAUC;AALH,CAAtB;eAQejB,S"}
@@ -68,6 +68,8 @@ declare namespace RewardsForm {
68
68
  modified: PropTypes.Requireable<boolean>;
69
69
  disabled: PropTypes.Requireable<boolean>;
70
70
  children: PropTypes.Requireable<(...args: any[]) => any>;
71
+ pdfButtonLabel: PropTypes.Requireable<string>;
72
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
71
73
  }> | null | undefined)[]>;
72
74
  'data-name': PropTypes.Requireable<string>;
73
75
  }> | null | undefined>>;
@@ -195,6 +195,8 @@ declare namespace WizardContents {
195
195
  modified: PropTypes.Requireable<boolean>;
196
196
  disabled: PropTypes.Requireable<boolean>;
197
197
  children: PropTypes.Requireable<(...args: any[]) => any>;
198
+ pdfButtonLabel: PropTypes.Requireable<string>;
199
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
198
200
  }> | PropTypes.InferProps<{
199
201
  type: PropTypes.Requireable<string>;
200
202
  tabProps: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -313,6 +315,8 @@ declare namespace WizardContents {
313
315
  modified: PropTypes.Requireable<boolean>;
314
316
  disabled: PropTypes.Requireable<boolean>;
315
317
  children: PropTypes.Requireable<(...args: any[]) => any>;
318
+ pdfButtonLabel: PropTypes.Requireable<string>;
319
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
316
320
  }> | PropTypes.InferProps<{
317
321
  type: PropTypes.Requireable<string>;
318
322
  title: PropTypes.Validator<string>;
@@ -703,6 +707,8 @@ declare namespace WizardContents {
703
707
  modified: PropTypes.Requireable<boolean>;
704
708
  disabled: PropTypes.Requireable<boolean>;
705
709
  children: PropTypes.Requireable<(...args: any[]) => any>;
710
+ pdfButtonLabel: PropTypes.Requireable<string>;
711
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
706
712
  }> | null | undefined)[]>;
707
713
  'data-name': PropTypes.Requireable<string>;
708
714
  }> | null | undefined>>;
@@ -280,6 +280,8 @@ declare namespace BrandUpdate {
280
280
  modified: PropTypes.Requireable<boolean>;
281
281
  disabled: PropTypes.Requireable<boolean>;
282
282
  children: PropTypes.Requireable<(...args: any[]) => any>;
283
+ pdfButtonLabel: PropTypes.Requireable<string>;
284
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
283
285
  }> | PropTypes.InferProps<{
284
286
  type: PropTypes.Requireable<string>;
285
287
  tabProps: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -398,6 +400,8 @@ declare namespace BrandUpdate {
398
400
  modified: PropTypes.Requireable<boolean>;
399
401
  disabled: PropTypes.Requireable<boolean>;
400
402
  children: PropTypes.Requireable<(...args: any[]) => any>;
403
+ pdfButtonLabel: PropTypes.Requireable<string>;
404
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
401
405
  }> | PropTypes.InferProps<{
402
406
  type: PropTypes.Requireable<string>;
403
407
  title: PropTypes.Validator<string>;
@@ -934,6 +938,8 @@ declare namespace BrandUpdate {
934
938
  modified: PropTypes.Requireable<boolean>;
935
939
  disabled: PropTypes.Requireable<boolean>;
936
940
  children: PropTypes.Requireable<(...args: any[]) => any>;
941
+ pdfButtonLabel: PropTypes.Requireable<string>;
942
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
937
943
  }> | PropTypes.InferProps<{
938
944
  type: PropTypes.Requireable<string>;
939
945
  tabProps: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -1052,6 +1058,8 @@ declare namespace BrandUpdate {
1052
1058
  modified: PropTypes.Requireable<boolean>;
1053
1059
  disabled: PropTypes.Requireable<boolean>;
1054
1060
  children: PropTypes.Requireable<(...args: any[]) => any>;
1061
+ pdfButtonLabel: PropTypes.Requireable<string>;
1062
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
1055
1063
  }> | PropTypes.InferProps<{
1056
1064
  type: PropTypes.Requireable<string>;
1057
1065
  title: PropTypes.Validator<string>;
@@ -1442,6 +1450,8 @@ declare namespace BrandUpdate {
1442
1450
  modified: PropTypes.Requireable<boolean>;
1443
1451
  disabled: PropTypes.Requireable<boolean>;
1444
1452
  children: PropTypes.Requireable<(...args: any[]) => any>;
1453
+ pdfButtonLabel: PropTypes.Requireable<string>;
1454
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
1445
1455
  }> | null | undefined)[]>;
1446
1456
  'data-name': PropTypes.Requireable<string>;
1447
1457
  }> | null | undefined>>;
@@ -1459,6 +1469,7 @@ declare namespace BrandUpdate {
1459
1469
  }> | PropTypes.InferProps<{
1460
1470
  key: PropTypes.Requireable<string>;
1461
1471
  type: PropTypes.Requireable<string>;
1472
+ contentType: PropTypes.Requireable<string>;
1462
1473
  'aria-label': PropTypes.Requireable<string>;
1463
1474
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
1464
1475
  type: PropTypes.Requireable<string>;
@@ -1510,6 +1521,7 @@ declare namespace BrandUpdate {
1510
1521
  title: PropTypes.Validator<string>;
1511
1522
  order: PropTypes.Requireable<number>;
1512
1523
  'aria-label': PropTypes.Requireable<string>;
1524
+ contentType: PropTypes.Requireable<string>;
1513
1525
  }> | null | undefined)[]>;
1514
1526
  title: PropTypes.Requireable<string>;
1515
1527
  }> | PropTypes.InferProps<{
@@ -304,7 +304,8 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
304
304
  type: _propTypes.default.oneOf(['wizard'])
305
305
  })), _propTypes.default.shape(_extends({}, _listItems.default.propTypes, {
306
306
  key: _propTypes.default.string,
307
- type: _propTypes.default.oneOf(['list-content'])
307
+ type: _propTypes.default.oneOf(['list-content']),
308
+ contentType: _propTypes.default.string
308
309
  })), _propTypes.default.shape(_extends({}, _emptyStateDashboard.default.propTypes, {
309
310
  key: _propTypes.default.string,
310
311
  type: _propTypes.default.oneOf(['empty-state-dashboard'])
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","isEmpty","notificationsList","notification","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","__html","closeButton","buildTabs","selectedTab","pipe","find","e","get","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","EmptyStateDashboard","UploadingFileProgress","func","CmPopin"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport EmptyStateDashboard from '../../../molecule/empty-state-dashboard';\nimport UploadingFileProgress from '../../../molecule/uploading-file-progress';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n return <WizardContents {...content} />;\n case 'empty-state-dashboard':\n return <EmptyStateDashboard {...content} />;\n case 'uploading-file-progress':\n return <UploadingFileProgress {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content'])\n }),\n PropTypes.shape({\n ...EmptyStateDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['empty-state-dashboard'])\n }),\n PropTypes.shape({\n ...UploadingFileProgress.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['uploading-file-progress'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool\n};\n\nexport default BrandUpdate;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGC,cAAA,CAAMC,eAAT,GAA2BD,cAAA,CAAME,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBC,YAAA,CAAIC,OAAJ,CAAY;EAACC,GAAG,EAAE;AAAN,CAAZ,EAA0B,CAACC,MAAD,EAASC,MAAT,kBACxB;EAAK,GAAG,EAAED,MAAM,CAACE;AAAjB,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AzC2B,CAApB,CAhCa;EA+EtBpD,aAAa,EAAE0C,kBAAA,CAAUE,KAAV,CAAgB;IAC7BzC,OAAO,EAAEuC,kBAAA,CAAUK,MADU;IAE7B9C,IAAI,EAAEyC,kBAAA,CAAUO,IAFa;IAG7B/C,OAAO,EAAEwC,kBAAA,CAAUmB;EAHU,CAAhB,CA/EO;EAoFtB/D,KAAK,EAAE4C,kBAAA,CAAUE,KAAV,cAAoBkB,gBAAA,CAAQrB,SAA5B,EApFe;EAqFtBnB,OAAO,EAAEoB,kBAAA,CAAUE,KAAV,cACJS,mBAAA,CAAWZ,SADP;IAEP5D,GAAG,EAAE6D,kBAAA,CAAUK,MAFR;IAGPzE,IAAI,EAAEoE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAHC,GArFa;EA0FtBzE,WAAW,EAAE+D,kBAAA,CAAUmB,IA1FD;EA2FtBpC,gBAAgB,EAAEiB,kBAAA,CAAUO;AA3FN,CAAxB;eA8Fe1B,W"}
1
+ {"version":3,"file":"index.js","names":["getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","isEmpty","notificationsList","notification","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","__html","closeButton","buildTabs","selectedTab","pipe","find","e","get","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","contentType","EmptyStateDashboard","UploadingFileProgress","func","CmPopin"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport EmptyStateDashboard from '../../../molecule/empty-state-dashboard';\nimport UploadingFileProgress from '../../../molecule/uploading-file-progress';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n return <WizardContents {...content} />;\n case 'empty-state-dashboard':\n return <EmptyStateDashboard {...content} />;\n case 'uploading-file-progress':\n return <UploadingFileProgress {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content']),\n contentType: PropTypes.string\n }),\n PropTypes.shape({\n ...EmptyStateDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['empty-state-dashboard'])\n }),\n PropTypes.shape({\n ...UploadingFileProgress.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['uploading-file-progress'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool\n};\n\nexport default BrandUpdate;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA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cAAD,CAAhB,CAHR;IAIEO,WAAW,EAAEjB,kBAAA,CAAUK;EAJzB,GA/B2B,EAqC3BL,kBAAA,CAAUE,KAAV,cACKgB,4BAAA,CAAoBnB,SADzB;IAEE5D,GAAG,EAAE6D,kBAAA,CAAUK,MAFjB;IAGEzE,IAAI,EAAEoE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,uBAAD,CAAhB;EAHR,GArC2B,EA0C3BV,kBAAA,CAAUE,KAAV,cACKiB,8BAAA,CAAsBpB,SAD3B;IAEE5D,GAAG,EAAE6D,kBAAA,CAAUK,MAFjB;IAGEzE,IAAI,EAAEoE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,yBAAD,CAAhB;EAHR,GA1C2B,CAApB,CAhCa;EAgFtBpD,aAAa,EAAE0C,kBAAA,CAAUE,KAAV,CAAgB;IAC7BzC,OAAO,EAAEuC,kBAAA,CAAUK,MADU;IAE7B9C,IAAI,EAAEyC,kBAAA,CAAUO,IAFa;IAG7B/C,OAAO,EAAEwC,kBAAA,CAAUoB;EAHU,CAAhB,CAhFO;EAqFtBhE,KAAK,EAAE4C,kBAAA,CAAUE,KAAV,cAAoBmB,gBAAA,CAAQtB,SAA5B,EArFe;EAsFtBnB,OAAO,EAAEoB,kBAAA,CAAUE,KAAV,cACJS,mBAAA,CAAWZ,SADP;IAEP5D,GAAG,EAAE6D,kBAAA,CAAUK,MAFR;IAGPzE,IAAI,EAAEoE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAHC,GAtFa;EA2FtBzE,WAAW,EAAE+D,kBAAA,CAAUoB,IA3FD;EA4FtBrC,gBAAgB,EAAEiB,kBAAA,CAAUO;AA5FN,CAAxB;eA+Fe1B,W"}
@@ -35,6 +35,8 @@ declare namespace JwVideoUploader {
35
35
  error: PropTypes.Requireable<string>;
36
36
  buttonAriaLabel: PropTypes.Requireable<string>;
37
37
  errorButtonLabel: PropTypes.Requireable<string>;
38
+ pdfButtonLabel: PropTypes.Requireable<string>;
39
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
38
40
  };
39
41
  }
40
42
  import PropTypes from "prop-types";
@@ -0,0 +1,59 @@
1
+ export default PrivacyPolicy;
2
+ declare function PrivacyPolicy({ header, privacyPolicyContact, menuLinks, privacyPolicyDownload, expandableList }: {
3
+ header: any;
4
+ privacyPolicyContact: any;
5
+ menuLinks: any;
6
+ privacyPolicyDownload: any;
7
+ expandableList: any;
8
+ }): JSX.Element;
9
+ declare namespace PrivacyPolicy {
10
+ namespace propTypes {
11
+ const header: {
12
+ image: import("prop-types").Requireable<string>;
13
+ mode: import("prop-types").Requireable<string>;
14
+ description: import("prop-types").Requireable<string>;
15
+ title: import("prop-types").Requireable<string>;
16
+ author: import("prop-types").Requireable<string>;
17
+ progress: import("prop-types").Requireable<number>;
18
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
19
+ submitValue: import("prop-types").Requireable<string>;
20
+ };
21
+ const privacyPolicyContact: {
22
+ title: import("prop-types").Requireable<string>;
23
+ content: import("prop-types").Requireable<string>;
24
+ };
25
+ const menuLinks: {
26
+ title: import("prop-types").Requireable<string>;
27
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
28
+ text: import("prop-types").Requireable<string>;
29
+ isSelected: import("prop-types").Requireable<boolean>;
30
+ onclick: import("prop-types").Requireable<(...args: any[]) => any>;
31
+ isShowMoreItem: import("prop-types").Requireable<boolean>;
32
+ }> | null | undefined)[]>;
33
+ };
34
+ const privacyPolicyDownload: {
35
+ title: import("prop-types").Requireable<string>;
36
+ content: import("prop-types").Requireable<string>;
37
+ downloadButton: import("prop-types").Requireable<import("prop-types").InferProps<{
38
+ color: any;
39
+ submitValue: import("prop-types").Requireable<string>;
40
+ disabled: import("prop-types").Requireable<boolean>;
41
+ isLinkDisabled: import("prop-types").Requireable<boolean>;
42
+ href: import("prop-types").Requireable<string>;
43
+ download: import("prop-types").Requireable<boolean>;
44
+ target: import("prop-types").Requireable<string>;
45
+ type: import("prop-types").Requireable<string>;
46
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
47
+ children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
48
+ className: import("prop-types").Requireable<string>;
49
+ buttonContentClassName: import("prop-types").Requireable<string>;
50
+ style: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
51
+ 'data-name': import("prop-types").Requireable<string>;
52
+ }>>;
53
+ };
54
+ const expandableList: {
55
+ items: import("prop-types").Requireable<any[]>;
56
+ };
57
+ }
58
+ }
59
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.js"],"names":[],"mappings":";AAQA;;;;;;gBA+BC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _react = _interopRequireDefault(require("react"));
7
+
8
+ var _hero = _interopRequireDefault(require("../../../molecule/hero"));
9
+
10
+ var _privacyPolicyContact = _interopRequireDefault(require("../../../molecule/privacy-policy-contact"));
11
+
12
+ var _privacyPolicyDownload = _interopRequireDefault(require("../../../molecule/privacy-policy-download"));
13
+
14
+ var _menuLinks = _interopRequireDefault(require("../../../molecule/menu-links"));
15
+
16
+ var _expandableList = _interopRequireDefault(require("../../../molecule/expandable-list"));
17
+
18
+ var _style = _interopRequireDefault(require("./style.css"));
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
22
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
+
24
+ const PrivacyPolicy = ({
25
+ header,
26
+ privacyPolicyContact,
27
+ menuLinks,
28
+ privacyPolicyDownload,
29
+ expandableList
30
+ }) => {
31
+ return /*#__PURE__*/_react.default.createElement("div", {
32
+ className: _style.default.wrapper
33
+ }, /*#__PURE__*/_react.default.createElement("div", {
34
+ className: _style.default.hero
35
+ }, /*#__PURE__*/_react.default.createElement(_hero.default, _extends({}, header, {
36
+ mode: 'header'
37
+ }))), /*#__PURE__*/_react.default.createElement("div", {
38
+ className: _style.default.container
39
+ }, /*#__PURE__*/_react.default.createElement("div", {
40
+ className: _style.default.menuContainer
41
+ }, /*#__PURE__*/_react.default.createElement(_menuLinks.default, menuLinks), /*#__PURE__*/_react.default.createElement("div", {
42
+ className: _style.default.privacyPolicyDownloadDesktop
43
+ }, /*#__PURE__*/_react.default.createElement(_privacyPolicyDownload.default, privacyPolicyDownload))), /*#__PURE__*/_react.default.createElement("div", {
44
+ className: _style.default.expandableList
45
+ }, /*#__PURE__*/_react.default.createElement(_expandableList.default, expandableList)), /*#__PURE__*/_react.default.createElement("div", {
46
+ className: _style.default.privacyPolicyDownload
47
+ }, /*#__PURE__*/_react.default.createElement(_privacyPolicyDownload.default, privacyPolicyDownload))), /*#__PURE__*/_react.default.createElement("div", {
48
+ className: _style.default.privacyPolicyContact
49
+ }, /*#__PURE__*/_react.default.createElement(_privacyPolicyContact.default, privacyPolicyContact)));
50
+ };
51
+
52
+ PrivacyPolicy.propTypes = process.env.NODE_ENV !== "production" ? {
53
+ header: _hero.default.propTypes,
54
+ privacyPolicyContact: _privacyPolicyContact.default.propTypes,
55
+ menuLinks: _menuLinks.default.propTypes,
56
+ privacyPolicyDownload: _privacyPolicyDownload.default.propTypes,
57
+ expandableList: _expandableList.default.propTypes
58
+ } : {};
59
+ var _default = PrivacyPolicy;
60
+ exports.default = _default;
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["PrivacyPolicy","header","privacyPolicyContact","menuLinks","privacyPolicyDownload","expandableList","styles","wrapper","hero","container","menuContainer","privacyPolicyDownloadDesktop","propTypes","Hero","PrivacyPolicyContact","MenuLinks","PrivacyPolicyDownload","ExpandableList"],"sources":["../../../../src/template/common/privacy-policy-page/index.js"],"sourcesContent":["import React from 'react';\nimport Hero from '../../../molecule/hero';\nimport PrivacyPolicyContact from '../../../molecule/privacy-policy-contact';\nimport PrivacyPolicyDownload from '../../../molecule/privacy-policy-download';\nimport MenuLinks from '../../../molecule/menu-links';\nimport ExpandableList from '../../../molecule/expandable-list';\nimport styles from './style.css';\n\nconst PrivacyPolicy = ({\n header,\n privacyPolicyContact,\n menuLinks,\n privacyPolicyDownload,\n expandableList\n}) => {\n return (\n <div className={styles.wrapper}>\n <div className={styles.hero}>\n <Hero {...header} mode={'header'} />\n </div>\n <div className={styles.container}>\n <div className={styles.menuContainer}>\n <MenuLinks {...menuLinks} />\n <div className={styles.privacyPolicyDownloadDesktop}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.expandableList}>\n <ExpandableList {...expandableList} />\n </div>\n <div className={styles.privacyPolicyDownload}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.privacyPolicyContact}>\n <PrivacyPolicyContact {...privacyPolicyContact} />\n </div>\n </div>\n );\n};\n\nPrivacyPolicy.propTypes = {\n header: Hero.propTypes,\n privacyPolicyContact: PrivacyPolicyContact.propTypes,\n menuLinks: MenuLinks.propTypes,\n privacyPolicyDownload: PrivacyPolicyDownload.propTypes,\n expandableList: ExpandableList.propTypes\n};\n\nexport default PrivacyPolicy;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,aAAa,GAAG,CAAC;EACrBC,MADqB;EAErBC,oBAFqB;EAGrBC,SAHqB;EAIrBC,qBAJqB;EAKrBC;AALqB,CAAD,KAMhB;EACJ,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAOC;EAAvB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAOE;EAAvB,gBACE,6BAAC,aAAD,eAAUP,MAAV;IAAkB,IAAI,EAAE;EAAxB,GADF,CADF,eAIE;IAAK,SAAS,EAAEK,cAAA,CAAOG;EAAvB,gBACE;IAAK,SAAS,EAAEH,cAAA,CAAOI;EAAvB,gBACE,6BAAC,kBAAD,EAAeP,SAAf,CADF,eAEE;IAAK,SAAS,EAAEG,cAAA,CAAOK;EAAvB,gBACE,6BAAC,8BAAD,EAA2BP,qBAA3B,CADF,CAFF,CADF,eAOE;IAAK,SAAS,EAAEE,cAAA,CAAOD;EAAvB,gBACE,6BAAC,uBAAD,EAAoBA,cAApB,CADF,CAPF,eAUE;IAAK,SAAS,EAAEC,cAAA,CAAOF;EAAvB,gBACE,6BAAC,8BAAD,EAA2BA,qBAA3B,CADF,CAVF,CAJF,eAkBE;IAAK,SAAS,EAAEE,cAAA,CAAOJ;EAAvB,gBACE,6BAAC,6BAAD,EAA0BA,oBAA1B,CADF,CAlBF,CADF;AAwBD,CA/BD;;AAiCAF,aAAa,CAACY,SAAd,2CAA0B;EACxBX,MAAM,EAAEY,aAAA,CAAKD,SADW;EAExBV,oBAAoB,EAAEY,6BAAA,CAAqBF,SAFnB;EAGxBT,SAAS,EAAEY,kBAAA,CAAUH,SAHG;EAIxBR,qBAAqB,EAAEY,8BAAA,CAAsBJ,SAJrB;EAKxBP,cAAc,EAAEY,uBAAA,CAAeL;AALP,CAA1B;eAQeZ,a"}
@@ -0,0 +1,78 @@
1
+ @value breakpoints: "../../../variables/breakpoints.css";
2
+ @value mobile from breakpoints;
3
+ @value tablet from breakpoints;
4
+ @value desktop from breakpoints;
5
+ @value colors: "../../../variables/colors.css";
6
+ @value cm_grey_50 from colors;
7
+
8
+ .wrapper {
9
+ background-color: cm_grey_50;
10
+ }
11
+
12
+ .hero {
13
+ height: 350px;
14
+ width: 100%;
15
+ }
16
+
17
+ .container {
18
+ display: flex;
19
+ flex-direction: row;
20
+ margin: 40px 60px 40px 60px;
21
+ }
22
+
23
+ .menuContainer {
24
+ margin-right: 32px;
25
+ width: 526px;
26
+ }
27
+
28
+ .privacyPolicyContact{
29
+ width: 100%;
30
+ height: 86px;
31
+ }
32
+
33
+ .privacyPolicyDownloadDesktop {
34
+ margin-top: 28px;
35
+ display: block;
36
+ }
37
+ .privacyPolicyDownload {
38
+ display: none;
39
+ }
40
+
41
+ .expandableList {
42
+ width: 100%;
43
+ }
44
+ @media tablet {
45
+ .privacyPolicyDownloadDesktop {
46
+ display: none;
47
+ }
48
+ .privacyPolicyDownload {
49
+ display: block;
50
+ }
51
+ .container {
52
+ display: flex;
53
+ flex-direction: column;
54
+ margin: 40px 24px;
55
+ }
56
+ .menuContainer {
57
+ margin: 0px 0px 16px 0px;
58
+ width: 100%;
59
+ }
60
+ }
61
+
62
+ @media mobile {
63
+ .privacyPolicyDownloadDesktop {
64
+ display: none;
65
+ }
66
+ .privacyPolicyDownload {
67
+ display: block;
68
+ }
69
+ .container {
70
+ display: flex;
71
+ flex-direction: column;
72
+ margin: 40px 24px 40px 24px;
73
+ }
74
+ .menuContainer {
75
+ margin: 0px 0px 16px 0px;
76
+ width: 100%;
77
+ }
78
+ }
@@ -16,5 +16,6 @@ export const ICONS: {
16
16
  folders: any;
17
17
  upload: any;
18
18
  down: any;
19
+ pdf: any;
19
20
  };
20
21
  //# sourceMappingURL=button-icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;EAkBE"}
1
+ {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;EAmBE"}
@@ -22,7 +22,8 @@ const ICONS = {
22
22
  see: _novaIcons.NovaCompositionCoorpacademyEye,
23
23
  folders: _novaIcons.NovaSolidFilesFoldersFolders,
24
24
  upload: _novaIcons.NovaSolidFilesBasicFileUpload2,
25
- down: _novaIcons.NovaCompositionNavigationArrowDown
25
+ down: _novaIcons.NovaCompositionNavigationArrowDown,
26
+ pdf: _novaIcons.NovaLineFilesOfficeFileOfficePdf
26
27
  };
27
28
  exports.ICONS = ICONS;
28
29
  //# sourceMappingURL=button-icons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-icons.js","names":["ICONS","add","AddIcon","analytics","AnalyticsIcon","bin","BinIcon","BulletPointIcon","ChevronLeftIcon","ChevronRightIcon","close","CloseIcon","edit","EditIcon","key","KlfIcon","list","ListIcon","logout","LogoutIcon","publish","PublishIcon","save","SaveIcon","see","EyeIcon","folders","FoldersIcon","upload","UploadIcon","down","ArrowDown"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon,\n down: ArrowDown\n};\n"],"mappings":";;;;;AAAA;;AAoBO,MAAMA,KAAK,GAAG;EACnBC,GAAG,EAAEC,uCADc;EAEnBC,SAAS,EAAEC,+CAFQ;EAGnBC,GAAG,EAAEC,qCAHc;EAInB,gBAAgBC,iDAJG;EAKnB,gBAAgBC,6CALG;EAMnB,iBAAiBC,8CANE;EAOnBC,KAAK,EAAEC,+BAPY;EAQnBC,IAAI,EAAEC,6CARa;EASnBC,GAAG,EAAEC,4BATc;EAUnBC,IAAI,EAAEC,6CAVa;EAWnBC,MAAM,EAAEC,gCAXW;EAYnBC,OAAO,EAAEC,6CAZU;EAanBC,IAAI,EAAEC,mCAba;EAcnBC,GAAG,EAAEC,yCAdc;EAenBC,OAAO,EAAEC,uCAfU;EAgBnBC,MAAM,EAAEC,yCAhBW;EAiBnBC,IAAI,EAAEC;AAjBa,CAAd"}
1
+ {"version":3,"file":"button-icons.js","names":["ICONS","add","AddIcon","analytics","AnalyticsIcon","bin","BinIcon","BulletPointIcon","ChevronLeftIcon","ChevronRightIcon","close","CloseIcon","edit","EditIcon","key","KlfIcon","list","ListIcon","logout","LogoutIcon","publish","PublishIcon","save","SaveIcon","see","EyeIcon","folders","FoldersIcon","upload","UploadIcon","down","ArrowDown","pdf","PDF"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaLineFilesOfficeFileOfficePdf as PDF\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon,\n down: ArrowDown,\n pdf: PDF\n};\n"],"mappings":";;;;;AAAA;;AAqBO,MAAMA,KAAK,GAAG;EACnBC,GAAG,EAAEC,uCADc;EAEnBC,SAAS,EAAEC,+CAFQ;EAGnBC,GAAG,EAAEC,qCAHc;EAInB,gBAAgBC,iDAJG;EAKnB,gBAAgBC,6CALG;EAMnB,iBAAiBC,8CANE;EAOnBC,KAAK,EAAEC,+BAPY;EAQnBC,IAAI,EAAEC,6CARa;EASnBC,GAAG,EAAEC,4BATc;EAUnBC,IAAI,EAAEC,6CAVa;EAWnBC,MAAM,EAAEC,gCAXW;EAYnBC,OAAO,EAAEC,6CAZU;EAanBC,IAAI,EAAEC,mCAba;EAcnBC,GAAG,EAAEC,yCAdc;EAenBC,OAAO,EAAEC,uCAfU;EAgBnBC,MAAM,EAAEC,yCAhBW;EAiBnBC,IAAI,EAAEC,6CAjBa;EAkBnBC,GAAG,EAAEC;AAlBc,CAAd"}
@@ -1 +1 @@
1
- {"version":3,"file":"proptypes.d.ts","sourceRoot":"","sources":["../../src/util/proptypes.js"],"names":[],"mappings":"AASA,8BAAsD;AAGtD,+BAAwD;AAExD,qDAA4E;AAErE,+FAKN;AAED,gCAA4C;AAC5C,8BAAwC"}
1
+ {"version":3,"file":"proptypes.d.ts","sourceRoot":"","sources":["../../src/util/proptypes.js"],"names":[],"mappings":"AASA,8BAAsD;AAGtD,+BAAwD;AAExD,qDAA4E;AAErE,+FAMN;AAED,gCAA4C;AAC5C,8BAAwC"}
@@ -27,8 +27,8 @@ const SrcPropType = _propTypes.default.oneOfType([UrlPropType, PathPropType]);
27
27
  exports.SrcPropType = SrcPropType;
28
28
 
29
29
  const ImagePropType = (propValue, key, componentName) => {
30
- if ((0, _includes.default)(propValue[key], ['jpg', 'png', 'svg+xml'])) return;
31
- return new Error(`Invalid prop value: ${propValue[key]}, at component: ${componentName}. Expected a valid image type: jpg, png or svg+xml.`);
30
+ if ((0, _includes.default)(propValue[key], ['image/jpeg', 'image/png', 'image/svg+xml', 'application/pdf'])) return;
31
+ return new Error(`Invalid prop value: ${propValue[key]}, at component: ${componentName}. Expected a valid image type: image/jpeg, image/png, image/svg+xml or application/pdf.`);
32
32
  };
33
33
 
34
34
  exports.ImagePropType = ImagePropType;
@@ -1 +1 @@
1
- {"version":3,"file":"proptypes.js","names":["URL_REGEXP","UrlPropType","stringMatching","PATH_REGEXP","PathPropType","SrcPropType","PropTypes","oneOfType","ImagePropType","propValue","key","componentName","includes","Error","ColorPropType","_ColorPropType","HexPropType","_HexPropType"],"sources":["../../src/util/proptypes.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport includes from 'lodash/fp/includes';\nimport stringMatching from 'extended-proptypes/lib/validators/stringMatching';\n\nimport _ColorPropType from 'extended-proptypes/lib/validators/color';\nimport _HexPropType from 'extended-proptypes/lib/validators/hex';\n\nconst URL_REGEXP =\n /^(http(s)?:\\/\\/.)[-a-zA-Z0-9@:%._\\\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const UrlPropType = stringMatching(URL_REGEXP);\n\nconst PATH_REGEXP = /^\\/([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const PathPropType = stringMatching(PATH_REGEXP);\n\nexport const SrcPropType = PropTypes.oneOfType([UrlPropType, PathPropType]);\n\nexport const ImagePropType = (propValue, key, componentName) => {\n if (includes(propValue[key], ['jpg', 'png', 'svg+xml'])) return;\n return new Error(\n `Invalid prop value: ${propValue[key]}, at component: ${componentName}. Expected a valid image type: jpg, png or svg+xml.`\n );\n};\n\nexport const ColorPropType = _ColorPropType;\nexport const HexPropType = _HexPropType;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,UAAU,GACd,8FADF;AAEO,MAAMC,WAAW,GAAG,IAAAC,uBAAA,EAAeF,UAAf,CAApB;;AAEP,MAAMG,WAAW,GAAG,oCAApB;AACO,MAAMC,YAAY,GAAG,IAAAF,uBAAA,EAAeC,WAAf,CAArB;;;AAEA,MAAME,WAAW,GAAGC,kBAAA,CAAUC,SAAV,CAAoB,CAACN,WAAD,EAAcG,YAAd,CAApB,CAApB;;;;AAEA,MAAMI,aAAa,GAAG,CAACC,SAAD,EAAYC,GAAZ,EAAiBC,aAAjB,KAAmC;EAC9D,IAAI,IAAAC,iBAAA,EAASH,SAAS,CAACC,GAAD,CAAlB,EAAyB,CAAC,KAAD,EAAQ,KAAR,EAAe,SAAf,CAAzB,CAAJ,EAAyD;EACzD,OAAO,IAAIG,KAAJ,CACJ,uBAAsBJ,SAAS,CAACC,GAAD,CAAM,mBAAkBC,aAAc,qDADjE,CAAP;AAGD,CALM;;;AAOA,MAAMG,aAAa,GAAGC,cAAtB;;AACA,MAAMC,WAAW,GAAGC,YAApB"}
1
+ {"version":3,"file":"proptypes.js","names":["URL_REGEXP","UrlPropType","stringMatching","PATH_REGEXP","PathPropType","SrcPropType","PropTypes","oneOfType","ImagePropType","propValue","key","componentName","includes","Error","ColorPropType","_ColorPropType","HexPropType","_HexPropType"],"sources":["../../src/util/proptypes.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport includes from 'lodash/fp/includes';\nimport stringMatching from 'extended-proptypes/lib/validators/stringMatching';\n\nimport _ColorPropType from 'extended-proptypes/lib/validators/color';\nimport _HexPropType from 'extended-proptypes/lib/validators/hex';\n\nconst URL_REGEXP =\n /^(http(s)?:\\/\\/.)[-a-zA-Z0-9@:%._\\\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const UrlPropType = stringMatching(URL_REGEXP);\n\nconst PATH_REGEXP = /^\\/([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const PathPropType = stringMatching(PATH_REGEXP);\n\nexport const SrcPropType = PropTypes.oneOfType([UrlPropType, PathPropType]);\n\nexport const ImagePropType = (propValue, key, componentName) => {\n if (includes(propValue[key], ['image/jpeg', 'image/png', 'image/svg+xml', 'application/pdf']))\n return;\n return new Error(\n `Invalid prop value: ${propValue[key]}, at component: ${componentName}. Expected a valid image type: image/jpeg, image/png, image/svg+xml or application/pdf.`\n );\n};\n\nexport const ColorPropType = _ColorPropType;\nexport const HexPropType = _HexPropType;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,UAAU,GACd,8FADF;AAEO,MAAMC,WAAW,GAAG,IAAAC,uBAAA,EAAeF,UAAf,CAApB;;AAEP,MAAMG,WAAW,GAAG,oCAApB;AACO,MAAMC,YAAY,GAAG,IAAAF,uBAAA,EAAeC,WAAf,CAArB;;;AAEA,MAAME,WAAW,GAAGC,kBAAA,CAAUC,SAAV,CAAoB,CAACN,WAAD,EAAcG,YAAd,CAApB,CAApB;;;;AAEA,MAAMI,aAAa,GAAG,CAACC,SAAD,EAAYC,GAAZ,EAAiBC,aAAjB,KAAmC;EAC9D,IAAI,IAAAC,iBAAA,EAASH,SAAS,CAACC,GAAD,CAAlB,EAAyB,CAAC,YAAD,EAAe,WAAf,EAA4B,eAA5B,EAA6C,iBAA7C,CAAzB,CAAJ,EACE;EACF,OAAO,IAAIG,KAAJ,CACJ,uBAAsBJ,SAAS,CAACC,GAAD,CAAM,mBAAkBC,aAAc,yFADjE,CAAP;AAGD,CANM;;;AAQA,MAAMG,aAAa,GAAGC,cAAtB;;AACA,MAAMC,WAAW,GAAGC,YAApB"}