@coorpacademy/components 11.12.1 → 11.12.2

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 (86) 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/setup-slide/index.d.ts +2 -0
  19. package/es/molecule/setup-slider/index.d.ts +2 -0
  20. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  21. package/es/organism/brand-form/index.d.ts +4 -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 +5 -3
  25. package/es/organism/list-item/index.js.map +1 -1
  26. package/es/organism/list-items/index.d.ts +4 -1
  27. package/es/organism/list-items/index.d.ts.map +1 -1
  28. package/es/organism/list-items/index.js +6 -3
  29. package/es/organism/list-items/index.js.map +1 -1
  30. package/es/organism/rewards-form/index.d.ts +2 -0
  31. package/es/organism/wizard-contents/index.d.ts +6 -0
  32. package/es/template/back-office/brand-update/index.d.ts +12 -0
  33. package/es/template/back-office/brand-update/index.js +2 -1
  34. package/es/template/back-office/brand-update/index.js.map +1 -1
  35. package/es/template/cockpit/jw-uploader/index.d.ts +2 -0
  36. package/es/util/button-icons.d.ts +1 -0
  37. package/es/util/button-icons.d.ts.map +1 -1
  38. package/es/util/button-icons.js +3 -2
  39. package/es/util/button-icons.js.map +1 -1
  40. package/es/util/proptypes.d.ts.map +1 -1
  41. package/es/util/proptypes.js +2 -2
  42. package/es/util/proptypes.js.map +1 -1
  43. package/lib/atom/drag-and-drop/index.d.ts +2 -0
  44. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  45. package/lib/atom/drag-and-drop/index.js +26 -2
  46. package/lib/atom/drag-and-drop/index.js.map +1 -1
  47. package/lib/atom/drag-and-drop/style.css +21 -5
  48. package/lib/atom/image-upload/index.d.ts +5 -1
  49. package/lib/atom/image-upload/index.d.ts.map +1 -1
  50. package/lib/atom/image-upload/index.js +8 -11
  51. package/lib/atom/image-upload/index.js.map +1 -1
  52. package/lib/atom/video-upload/index.d.ts +2 -0
  53. package/lib/molecule/brand-form-group/index.d.ts +4 -0
  54. package/lib/molecule/card/favorite.d.ts +14 -9
  55. package/lib/molecule/card/favorite.d.ts.map +1 -1
  56. package/lib/molecule/card/favorite.js +55 -65
  57. package/lib/molecule/card/favorite.js.map +1 -1
  58. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
  59. package/lib/molecule/drag-and-drop-wrapper/style.css +1 -1
  60. package/lib/molecule/setup-slide/index.d.ts +2 -0
  61. package/lib/molecule/setup-slider/index.d.ts +2 -0
  62. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  63. package/lib/organism/brand-form/index.d.ts +4 -0
  64. package/lib/organism/list-item/index.d.ts +1 -0
  65. package/lib/organism/list-item/index.d.ts.map +1 -1
  66. package/lib/organism/list-item/index.js +5 -3
  67. package/lib/organism/list-item/index.js.map +1 -1
  68. package/lib/organism/list-items/index.d.ts +4 -1
  69. package/lib/organism/list-items/index.d.ts.map +1 -1
  70. package/lib/organism/list-items/index.js +6 -3
  71. package/lib/organism/list-items/index.js.map +1 -1
  72. package/lib/organism/rewards-form/index.d.ts +2 -0
  73. package/lib/organism/wizard-contents/index.d.ts +6 -0
  74. package/lib/template/back-office/brand-update/index.d.ts +12 -0
  75. package/lib/template/back-office/brand-update/index.js +2 -1
  76. package/lib/template/back-office/brand-update/index.js.map +1 -1
  77. package/lib/template/cockpit/jw-uploader/index.d.ts +2 -0
  78. package/lib/util/button-icons.d.ts +1 -0
  79. package/lib/util/button-icons.d.ts.map +1 -1
  80. package/lib/util/button-icons.js +2 -1
  81. package/lib/util/button-icons.js.map +1 -1
  82. package/lib/util/proptypes.d.ts.map +1 -1
  83. package/lib/util/proptypes.js +2 -2
  84. package/lib/util/proptypes.js.map +1 -1
  85. package/package.json +2 -2
  86. package/locales/.mtslconfig.json +0 -1
@@ -78,12 +78,31 @@
78
78
  background-color: white;
79
79
  }
80
80
 
81
- .preview img, video {
81
+ .preview img,
82
+ video {
82
83
  max-width: 100%;
83
84
  max-height: 100%;
84
85
  margin: auto;
85
86
  }
86
87
 
88
+ .previewPdf {
89
+ composes: preview;
90
+ min-height: 150px;
91
+ display: flex;
92
+ flex-direction: column;
93
+ justify-content: space-evenly;
94
+ }
95
+
96
+ .previewLabelPdf {
97
+ text-align: center;
98
+ font-family: "Gilroy";
99
+ color: cm_grey_300;
100
+ padding: 0px 4px;
101
+ overflow: hidden;
102
+ text-overflow: ellipsis;
103
+ max-width: 90%;
104
+ white-space: nowrap;
105
+ }
87
106
  .infosContainer {
88
107
  width: 100%;
89
108
  height: 100%;
@@ -152,7 +171,7 @@
152
171
  align-items: center;
153
172
  justify-content: space-between;
154
173
  margin-top: 16px;
155
- padding: 4px 8px;
174
+ padding: 8px 14px 8px 1px;
156
175
  font-size: 12px;
157
176
  font-weight: 400;
158
177
  position: relative;
@@ -164,9 +183,6 @@
164
183
  text-overflow: ellipsis;
165
184
  white-space: nowrap;
166
185
  flex-wrap: nowrap;
167
- position: absolute;
168
- left: 0;
169
- right: 15px;
170
186
  }
171
187
 
172
188
  .closeIcon {
@@ -1,5 +1,5 @@
1
1
  export default ImageUpload;
2
- declare function ImageUpload({ title, description, previewLabel, previewContent, uploadLabel, loading, modified, disabled, onChange, onReset, name, labelLink, labelButtonLink, hrefLink, imageTypes, error, buttonAriaLabel, errorButtonLabel }: {
2
+ declare function ImageUpload({ title, description, previewLabel, previewContent, uploadLabel, loading, modified, disabled, onChange, onReset, name, labelLink, labelButtonLink, hrefLink, imageTypes, error, buttonAriaLabel, errorButtonLabel, pdfButtonLabel, pdfButtonAriaLabel }: {
3
3
  title: any;
4
4
  description: any;
5
5
  previewLabel: any;
@@ -18,6 +18,8 @@ declare function ImageUpload({ title, description, previewLabel, previewContent,
18
18
  error?: string | undefined;
19
19
  buttonAriaLabel: any;
20
20
  errorButtonLabel: any;
21
+ pdfButtonLabel: any;
22
+ pdfButtonAriaLabel: any;
21
23
  }): JSX.Element;
22
24
  declare namespace ImageUpload {
23
25
  const propTypes: {
@@ -43,6 +45,8 @@ declare namespace ImageUpload {
43
45
  modified: PropTypes.Requireable<boolean>;
44
46
  disabled: PropTypes.Requireable<boolean>;
45
47
  children: PropTypes.Requireable<(...args: any[]) => any>;
48
+ pdfButtonLabel: PropTypes.Requireable<string>;
49
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
46
50
  };
47
51
  }
48
52
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/image-upload/index.js"],"names":[],"mappings":";AAQA;;;;;;;;;;;;;;;;;;;gBAmFC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/image-upload/index.js"],"names":[],"mappings":";AAQA;;;;;;;;;;;;;;;;;;;;;gBAkFC"}
@@ -5,12 +5,6 @@ exports.default = void 0;
5
5
 
6
6
  var _isNil2 = _interopRequireDefault(require("lodash/fp/isNil"));
7
7
 
8
- var _pipe2 = _interopRequireDefault(require("lodash/fp/pipe"));
9
-
10
- var _map2 = _interopRequireDefault(require("lodash/fp/map"));
11
-
12
- var _join2 = _interopRequireDefault(require("lodash/fp/join"));
13
-
14
8
  var _react = _interopRequireWildcard(require("react"));
15
9
 
16
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -43,21 +37,22 @@ const ImageUpload = ({
43
37
  onChange,
44
38
  onReset = null,
45
39
  name,
46
- // See ImagePropType for accepted values
47
40
  labelLink,
48
41
  labelButtonLink,
49
42
  hrefLink,
43
+ // See ImagePropType for accepted values
50
44
  imageTypes = ['*'],
51
45
  error = '',
52
46
  buttonAriaLabel,
53
- errorButtonLabel
47
+ errorButtonLabel,
48
+ pdfButtonLabel,
49
+ pdfButtonAriaLabel
54
50
  }) => {
55
51
  const handleReset = (0, _react.useCallback)(e => {
56
52
  if ((0, _isNil2.default)(onReset)) return;
57
53
  e.preventDefault();
58
54
  return onReset(e);
59
55
  }, [onReset]);
60
- const acceptedImages = (0, _pipe2.default)((0, _map2.default)(t => `image/${t}`), (0, _join2.default)(','))(imageTypes);
61
56
  const linkCustomStyle = {
62
57
  width: '40px',
63
58
  color: 'red'
@@ -74,11 +69,13 @@ const ImageUpload = ({
74
69
  error: error,
75
70
  disabled: disabled,
76
71
  buttonAriaLabel: buttonAriaLabel,
77
- errorButtonLabel: errorButtonLabel
72
+ errorButtonLabel: errorButtonLabel,
73
+ pdfButtonLabel: pdfButtonLabel,
74
+ pdfButtonAriaLabel: pdfButtonAriaLabel
78
75
  }, (onDragStart, onDragStop) => /*#__PURE__*/_react.default.createElement("input", {
79
76
  type: "file",
80
77
  name: name,
81
- accept: acceptedImages,
78
+ accept: imageTypes,
82
79
  disabled: loading || disabled,
83
80
  className: _style.default.input,
84
81
  onChange: onChange,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ImageUpload","title","description","previewLabel","previewContent","uploadLabel","loading","modified","disabled","onChange","onReset","name","labelLink","labelButtonLink","hrefLink","imageTypes","error","buttonAriaLabel","errorButtonLabel","handleReset","useCallback","e","preventDefault","acceptedImages","t","linkCustomStyle","width","color","onDragStart","onDragStop","style","input","templateLink","href","download","propTypes","DragAndDrop","PropTypes","string","func","arrayOf","ImagePropType"],"sources":["../../../src/atom/image-upload/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {join, map, pipe, isNil} from 'lodash/fp';\nimport DragAndDrop from '../drag-and-drop';\nimport {ImagePropType} from '../../util/proptypes';\nimport Link from '../button-link';\nimport style from './style.css';\n\nconst ImageUpload = ({\n title,\n description,\n previewLabel,\n previewContent,\n uploadLabel,\n loading,\n modified,\n disabled = false,\n onChange,\n onReset = null,\n name,\n // See ImagePropType for accepted values\n labelLink,\n labelButtonLink,\n hrefLink,\n imageTypes = ['*'],\n error = '',\n buttonAriaLabel,\n errorButtonLabel\n}) => {\n const handleReset = useCallback(\n e => {\n if (isNil(onReset)) return;\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n const acceptedImages = pipe(\n map(t => `image/${t}`),\n join(',')\n )(imageTypes);\n\n const linkCustomStyle = {\n width: '40px',\n color: 'red'\n };\n\n return (\n <div>\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n previewContent={previewContent}\n uploadLabel={uploadLabel}\n loading={loading}\n modified={modified}\n onReset={handleReset}\n error={error}\n disabled={disabled}\n buttonAriaLabel={buttonAriaLabel}\n errorButtonLabel={errorButtonLabel}\n >\n {(onDragStart, onDragStop) => (\n <input\n type=\"file\"\n name={name}\n accept={acceptedImages}\n disabled={loading || disabled}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n )}\n </DragAndDrop>\n {labelLink && hrefLink ? (\n <div className={style.templateLink}>\n {labelLink}\n <Link\n type=\"text\"\n customStyle={linkCustomStyle}\n link={{href: hrefLink, download: true}}\n label={labelButtonLink}\n />\n </div>\n ) : null}\n </div>\n );\n};\n\nImageUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onReset: PropTypes.func,\n imageTypes: PropTypes.arrayOf(ImagePropType),\n error: PropTypes.string,\n buttonAriaLabel: PropTypes.string,\n errorButtonLabel: PropTypes.string,\n labelLink: PropTypes.string,\n hrefLink: PropTypes.string\n};\n\nexport default ImageUpload;\n"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,WAAW,GAAG,CAAC;EACnBC,KADmB;EAEnBC,WAFmB;EAGnBC,YAHmB;EAInBC,cAJmB;EAKnBC,WALmB;EAMnBC,OANmB;EAOnBC,QAPmB;EAQnBC,QAAQ,GAAG,KARQ;EASnBC,QATmB;EAUnBC,OAAO,GAAG,IAVS;EAWnBC,IAXmB;EAYnB;EACAC,SAbmB;EAcnBC,eAdmB;EAenBC,QAfmB;EAgBnBC,UAAU,GAAG,CAAC,GAAD,CAhBM;EAiBnBC,KAAK,GAAG,EAjBW;EAkBnBC,eAlBmB;EAmBnBC;AAnBmB,CAAD,KAoBd;EACJ,MAAMC,WAAW,GAAG,IAAAC,kBAAA,EAClBC,CAAC,IAAI;IACH,IAAI,qBAAMX,OAAN,CAAJ,EAAoB;IACpBW,CAAC,CAACC,cAAF;IACA,OAAOZ,OAAO,CAACW,CAAD,CAAd;EACD,CALiB,EAMlB,CAACX,OAAD,CANkB,CAApB;EASA,MAAMa,cAAc,GAAG,oBACrB,mBAAIC,CAAC,IAAK,SAAQA,CAAE,EAApB,CADqB,EAErB,oBAAK,GAAL,CAFqB,EAGrBT,UAHqB,CAAvB;EAKA,MAAMU,eAAe,GAAG;IACtBC,KAAK,EAAE,MADe;IAEtBC,KAAK,EAAE;EAFe,CAAxB;EAKA,oBACE,uDACE,6BAAC,oBAAD;IACE,KAAK,EAAE1B,KADT;IAEE,WAAW,EAAEC,WAFf;IAGE,YAAY,EAAEC,YAHhB;IAIE,cAAc,EAAEC,cAJlB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UC,MATvB;EAUExB,QAAQ,EAAEuB,kBAAA,CAAUC;AAVtB;eAaetC,W"}
1
+ {"version":3,"file":"index.js","names":["ImageUpload","title","description","previewLabel","previewContent","uploadLabel","loading","modified","disabled","onChange","onReset","name","labelLink","labelButtonLink","hrefLink","imageTypes","error","buttonAriaLabel","errorButtonLabel","pdfButtonLabel","pdfButtonAriaLabel","handleReset","useCallback","e","preventDefault","linkCustomStyle","width","color","onDragStart","onDragStop","style","input","templateLink","href","download","propTypes","DragAndDrop","PropTypes","string","func","arrayOf","ImagePropType"],"sources":["../../../src/atom/image-upload/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {isNil} from 'lodash/fp';\nimport DragAndDrop from '../drag-and-drop';\nimport {ImagePropType} from '../../util/proptypes';\nimport Link from '../button-link';\nimport style from './style.css';\n\nconst ImageUpload = ({\n title,\n description,\n previewLabel,\n previewContent,\n uploadLabel,\n loading,\n modified,\n disabled = false,\n onChange,\n onReset = null,\n name,\n labelLink,\n labelButtonLink,\n hrefLink,\n // See ImagePropType for accepted values\n imageTypes = ['*'],\n error = '',\n buttonAriaLabel,\n errorButtonLabel,\n pdfButtonLabel,\n pdfButtonAriaLabel\n}) => {\n const handleReset = useCallback(\n e => {\n if (isNil(onReset)) return;\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n const linkCustomStyle = {\n width: '40px',\n color: 'red'\n };\n\n return (\n <div>\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n previewContent={previewContent}\n uploadLabel={uploadLabel}\n loading={loading}\n modified={modified}\n onReset={handleReset}\n error={error}\n disabled={disabled}\n buttonAriaLabel={buttonAriaLabel}\n errorButtonLabel={errorButtonLabel}\n pdfButtonLabel={pdfButtonLabel}\n pdfButtonAriaLabel={pdfButtonAriaLabel}\n >\n {(onDragStart, onDragStop) => (\n <input\n type=\"file\"\n name={name}\n accept={imageTypes}\n disabled={loading || disabled}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n )}\n </DragAndDrop>\n {labelLink && hrefLink ? (\n <div className={style.templateLink}>\n {labelLink}\n <Link\n type=\"text\"\n customStyle={linkCustomStyle}\n link={{href: hrefLink, download: true}}\n label={labelButtonLink}\n />\n </div>\n ) : null}\n </div>\n );\n};\n\nImageUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onReset: PropTypes.func,\n imageTypes: PropTypes.arrayOf(ImagePropType),\n error: PropTypes.string,\n buttonAriaLabel: PropTypes.string,\n errorButtonLabel: PropTypes.string,\n labelLink: PropTypes.string,\n hrefLink: PropTypes.string\n};\n\nexport default ImageUpload;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,WAAW,GAAG,CAAC;EACnBC,KADmB;EAEnBC,WAFmB;EAGnBC,YAHmB;EAInBC,cAJmB;EAKnBC,WALmB;EAMnBC,OANmB;EAOnBC,QAPmB;EAQnBC,QAAQ,GAAG,KARQ;EASnBC,QATmB;EAUnBC,OAAO,GAAG,IAVS;EAWnBC,IAXmB;EAYnBC,SAZmB;EAanBC,eAbmB;EAcnBC,QAdmB;EAenB;EACAC,UAAU,GAAG,CAAC,GAAD,CAhBM;EAiBnBC,KAAK,GAAG,EAjBW;EAkBnBC,eAlBmB;EAmBnBC,gBAnBmB;EAoBnBC,cApBmB;EAqBnBC;AArBmB,CAAD,KAsBd;EACJ,MAAMC,WAAW,GAAG,IAAAC,kBAAA,EAClBC,CAAC,IAAI;IACH,IAAI,qBAAMb,OAAN,CAAJ,EAAoB;IACpBa,CAAC,CAACC,cAAF;IACA,OAAOd,OAAO,CAACa,CAAD,CAAd;EACD,CALiB,EAMlB,CAACb,OAAD,CANkB,CAApB;EASA,MAAMe,eAAe,GAAG;IACtBC,KAAK,EAAE,MADe;IAEtBC,KAAK,EAAE;EAFe,CAAx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AAV,CAAkBC,wBAAlB,CALd;EAMEzB,KAAK,EAAEqB,kBAAA,CAAUC,MANnB;EAOErB,eAAe,EAAEoB,kBAAA,CAAUC,MAP7B;EAQEpB,gBAAgB,EAAEmB,kBAAA,CAAUC,MAR9B;EASE1B,SAAS,EAAEyB,kBAAA,CAAUC,MATvB;EAUExB,QAAQ,EAAEuB,kBAAA,CAAUC;AAVtB;eAaetC,W"}
@@ -31,6 +31,8 @@ declare namespace VideoUpload {
31
31
  error: PropTypes.Requireable<string>;
32
32
  buttonAriaLabel: PropTypes.Requireable<string>;
33
33
  errorButtonLabel: PropTypes.Requireable<string>;
34
+ pdfButtonLabel: PropTypes.Requireable<string>;
35
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
34
36
  };
35
37
  }
36
38
  import PropTypes from "prop-types";
@@ -148,6 +148,8 @@ declare namespace BrandFormGroup {
148
148
  modified: PropTypes.Requireable<boolean>;
149
149
  disabled: PropTypes.Requireable<boolean>;
150
150
  children: PropTypes.Requireable<(...args: any[]) => any>;
151
+ pdfButtonLabel: PropTypes.Requireable<string>;
152
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
151
153
  }> | PropTypes.InferProps<{
152
154
  type: PropTypes.Requireable<string>;
153
155
  tabProps: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -266,6 +268,8 @@ declare namespace BrandFormGroup {
266
268
  modified: PropTypes.Requireable<boolean>;
267
269
  disabled: PropTypes.Requireable<boolean>;
268
270
  children: PropTypes.Requireable<(...args: any[]) => any>;
271
+ pdfButtonLabel: PropTypes.Requireable<string>;
272
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
269
273
  }> | PropTypes.InferProps<{
270
274
  type: PropTypes.Requireable<string>;
271
275
  title: PropTypes.Validator<string>;
@@ -1,6 +1,15 @@
1
1
  export default Favorite;
2
- declare class Favorite extends React.Component<any, any, any> {
3
- static propTypes: {
2
+ declare function Favorite({ favorite, addFavoriteToolTip, removeFavoriteToolTip, className, "aria-label": ariaLabel, onFavoriteClick, disabled }: {
3
+ favorite: any;
4
+ addFavoriteToolTip: any;
5
+ removeFavoriteToolTip: any;
6
+ className: any;
7
+ "aria-label"?: {} | undefined;
8
+ onFavoriteClick?: import("lodash/fp").LodashNoop | undefined;
9
+ disabled: any;
10
+ }, legacyContext: any): JSX.Element;
11
+ declare namespace Favorite {
12
+ const propTypes: {
4
13
  className: PropTypes.Requireable<string>;
5
14
  favorite: PropTypes.Requireable<boolean>;
6
15
  disabled: PropTypes.Requireable<boolean>;
@@ -13,8 +22,8 @@ declare class Favorite extends React.Component<any, any, any> {
13
22
  removeFromFavorite: PropTypes.Requireable<string>;
14
23
  }>>;
15
24
  };
16
- static contextTypes: {
17
- skin: PropTypes.Requireable<PropTypes.InferProps<{
25
+ namespace contextTypes {
26
+ const skin: PropTypes.Requireable<PropTypes.InferProps<{
18
27
  common: PropTypes.Requireable<{
19
28
  [x: string]: any;
20
29
  }>;
@@ -35,11 +44,7 @@ declare class Favorite extends React.Component<any, any, any> {
35
44
  [x: string]: any;
36
45
  }>;
37
46
  }>>;
38
- };
39
- constructor(props: any, context: any);
40
- handleFavoviteClick(e: any): void;
41
- render(): JSX.Element;
47
+ }
42
48
  }
43
- import React from "react";
44
49
  import PropTypes from "prop-types";
45
50
  //# sourceMappingURL=favorite.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"favorite.d.ts","sourceRoot":"","sources":["../../../src/molecule/card/favorite.js"],"names":[],"mappings":";AAWA;IACE;;;;;;;;;;;;MAYE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,sCAGC;IAED,kCAKC;IAED,sBAoDC;CACF"}
1
+ {"version":3,"file":"favorite.d.ts","sourceRoot":"","sources":["../../../src/molecule/card/favorite.js"],"names":[],"mappings":";AAWA;;;;;;;;oCAoEC"}
@@ -9,7 +9,7 @@ var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
9
9
 
10
10
  var _get2 = _interopRequireDefault(require("lodash/fp/get"));
11
11
 
12
- var _react = _interopRequireDefault(require("react"));
12
+ var _react = _interopRequireWildcard(require("react"));
13
13
 
14
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
15
15
 
@@ -17,79 +17,66 @@ var _classnames = _interopRequireDefault(require("classnames"));
17
17
 
18
18
  var _novaIcons = require("@coorpacademy/nova-icons");
19
19
 
20
- var _provider = _interopRequireDefault(require("../../atom/provider"));
20
+ var _provider = _interopRequireWildcard(require("../../atom/provider"));
21
21
 
22
22
  var _favorite = _interopRequireDefault(require("./favorite.css"));
23
23
 
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
+ 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); }
25
+
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
27
 
26
- class Favorite extends _react.default.Component {
27
- constructor(props, context) {
28
- super(props, context);
29
- this.handleFavoviteClick = this.handleFavoviteClick.bind(this);
30
- }
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
29
 
32
- handleFavoviteClick(e) {
33
- const {
34
- disabled,
35
- onFavoriteClick = _noop2.default
36
- } = this.props;
30
+ const Favorite = ({
31
+ favorite,
32
+ addFavoriteToolTip,
33
+ removeFavoriteToolTip,
34
+ className,
35
+ 'aria-label': ariaLabel = {},
36
+ onFavoriteClick = _noop2.default,
37
+ disabled
38
+ }, legacyContext) => {
39
+ const skin = (0, _provider.GetSkinFromContext)(legacyContext);
40
+ const handleFavoriteClick = (0, _react.useCallback)(e => {
37
41
  e.stopPropagation();
38
42
  e.preventDefault();
39
43
  if (!disabled) onFavoriteClick(e);
40
- }
41
-
42
- render() {
43
- const {
44
- skin
45
- } = this.context;
46
- const {
47
- favorite,
48
- addFavoriteToolTip,
49
- removeFavoriteToolTip,
50
- className,
51
- 'aria-label': ariaLabel = {}
52
- } = this.props;
53
- const primaryColor = (0, _get2.default)('common.primary', skin);
54
- const darkColor = (0, _get2.default)('common.dark', skin);
55
- const brandColor = (0, _get2.default)('common.brand', skin);
56
- const toolTipView = !(0, _isEmpty2.default)(removeFavoriteToolTip) && !(0, _isEmpty2.default)(addFavoriteToolTip) ? /*#__PURE__*/_react.default.createElement("div", {
57
- className: _favorite.default.showToolTip
58
- }, /*#__PURE__*/_react.default.createElement("span", null, favorite ? removeFavoriteToolTip : addFavoriteToolTip)) : null;
59
- return /*#__PURE__*/_react.default.createElement("div", {
60
- className: _favorite.default.blocFavorite
61
- }, toolTipView, /*#__PURE__*/_react.default.createElement("div", {
62
- "data-name": "favorite",
63
- "aria-label": ariaLabel.favorite,
64
- className: (0, _classnames.default)(_favorite.default.favorite, className, favorite && _favorite.default.selected),
65
- onClick: this.handleFavoviteClick,
66
- style: {
67
- color: primaryColor
68
- }
69
- }, favorite ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyCheck, {
70
- className: _favorite.default.checkIcon,
71
- style: {
72
- color: brandColor
73
- },
74
- width: 13,
75
- height: 13,
76
- "aria-label": ariaLabel.removeFromFavorite
77
- }) : /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationMore, {
78
- className: _favorite.default.moreIcon,
79
- style: {
80
- color: darkColor
81
- },
82
- width: 13,
83
- height: 13,
84
- "aria-label": ariaLabel.addToFavorite
85
- })));
86
- }
87
-
88
- }
89
-
90
- Favorite.contextTypes = {
91
- skin: _provider.default.childContextTypes.skin
44
+ }, [disabled, onFavoriteClick]);
45
+ const primaryColor = (0, _get2.default)('common.primary', skin);
46
+ const darkColor = (0, _get2.default)('common.dark', skin);
47
+ const brandColor = (0, _get2.default)('common.brand', skin);
48
+ const toolTipView = (0, _react.useMemo)(() => !(0, _isEmpty2.default)(removeFavoriteToolTip) && !(0, _isEmpty2.default)(addFavoriteToolTip) ? /*#__PURE__*/_react.default.createElement("div", {
49
+ className: _favorite.default.showToolTip
50
+ }, /*#__PURE__*/_react.default.createElement("span", null, favorite ? removeFavoriteToolTip : addFavoriteToolTip)) : null, [addFavoriteToolTip, favorite, removeFavoriteToolTip]);
51
+ return /*#__PURE__*/_react.default.createElement("div", {
52
+ className: _favorite.default.blocFavorite
53
+ }, toolTipView, /*#__PURE__*/_react.default.createElement("div", {
54
+ "data-name": "favorite",
55
+ "aria-label": ariaLabel.favorite,
56
+ className: (0, _classnames.default)(_favorite.default.favorite, className, favorite && _favorite.default.selected),
57
+ onClick: handleFavoriteClick,
58
+ style: {
59
+ color: primaryColor
60
+ }
61
+ }, favorite ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyCheck, {
62
+ className: _favorite.default.checkIcon,
63
+ style: {
64
+ color: brandColor
65
+ },
66
+ width: 13,
67
+ height: 13,
68
+ "aria-label": ariaLabel.removeFromFavorite
69
+ }) : /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationMore, {
70
+ className: _favorite.default.moreIcon,
71
+ style: {
72
+ color: darkColor
73
+ },
74
+ width: 13,
75
+ height: 13,
76
+ "aria-label": ariaLabel.addToFavorite
77
+ })));
92
78
  };
79
+
93
80
  Favorite.propTypes = process.env.NODE_ENV !== "production" ? {
94
81
  className: _propTypes.default.string,
95
82
  favorite: _propTypes.default.bool,
@@ -103,6 +90,9 @@ Favorite.propTypes = process.env.NODE_ENV !== "production" ? {
103
90
  removeFromFavorite: _propTypes.default.string
104
91
  })
105
92
  } : {};
93
+ Favorite.contextTypes = {
94
+ skin: _provider.default.childContextTypes.skin
95
+ };
106
96
  var _default = Favorite;
107
97
  exports.default = _default;
108
98
  //# sourceMappingURL=favorite.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"favorite.js","names":["Favorite","React","Component","constructor","props","context","handleFavoviteClick","bind","e","disabled","onFavoriteClick","stopPropagation","preventDefault","render","skin","favorite","addFavoriteToolTip","removeFavoriteToolTip","className","ariaLabel","primaryColor","darkColor","brandColor","toolTipView","style","showToolTip","blocFavorite","classnames","selected","color","checkIcon","removeFromFavorite","moreIcon","addToFavorite","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","func","shape"],"sources":["../../../src/molecule/card/favorite.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, noop} from 'lodash/fp';\nimport {\n NovaCompositionNavigationMore as MoreIcon,\n NovaCompositionCoorpacademyCheck as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport style from './favorite.css';\n\nclass Favorite extends React.Component {\n static propTypes = {\n className: PropTypes.string,\n favorite: PropTypes.bool,\n disabled: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onFavoriteClick: PropTypes.func,\n 'aria-label': PropTypes.shape({\n favorite: PropTypes.string,\n addToFavorite: PropTypes.string,\n removeFromFavorite: PropTypes.string\n })\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n this.handleFavoviteClick = this.handleFavoviteClick.bind(this);\n }\n\n handleFavoviteClick(e) {\n const {disabled, onFavoriteClick = noop} = this.props;\n e.stopPropagation();\n e.preventDefault();\n if (!disabled) onFavoriteClick(e);\n }\n\n render() {\n const {skin} = this.context;\n const {\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n className,\n 'aria-label': ariaLabel = {}\n } = this.props;\n\n const primaryColor = get('common.primary', skin);\n const darkColor = get('common.dark', skin);\n const brandColor = get('common.brand', skin);\n const toolTipView =\n !isEmpty(removeFavoriteToolTip) && !isEmpty(addFavoriteToolTip) ? (\n <div className={style.showToolTip}>\n <span>{favorite ? removeFavoriteToolTip : addFavoriteToolTip}</span>\n </div>\n ) : null;\n\n return (\n <div className={style.blocFavorite}>\n {toolTipView}\n <div\n data-name=\"favorite\"\n aria-label={ariaLabel.favorite}\n className={classnames(style.favorite, className, favorite && style.selected)}\n onClick={this.handleFavoviteClick}\n style={{\n color: primaryColor\n }}\n >\n {favorite ? (\n <CheckIcon\n className={style.checkIcon}\n style={{color: brandColor}}\n width={13}\n height={13}\n aria-label={ariaLabel.removeFromFavorite}\n />\n ) : (\n <MoreIcon\n className={style.moreIcon}\n style={{color: darkColor}}\n width={13}\n height={13}\n aria-label={ariaLabel.addToFavorite}\n />\n )}\n </div>\n </div>\n );\n }\n}\n\nexport default Favorite;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;;;AAEA,MAAMA,QAAN,SAAuBC,cAAA,CAAMC,SAA7B,CAAuC;EAmBrCC,WAAW,CAACC,KAAD,EAAQC,OAAR,EAAiB;IAC1B,MAAMD,KAAN,EAAaC,OAAb;IACA,KAAKC,mBAAL,GAA2B,KAAKA,mBAAL,CAAyBC,IAAzB,CAA8B,IAA9B,CAA3B;EACD;;EAEDD,mBAAmB,CAACE,CAAD,EAAI;IACrB,MAAM;MAACC,QAAD;MAAWC,eAAe;IAA1B,IAAqC,KAAKN,KAAhD;IACAI,CAAC,CAACG,eAAF;IACAH,CAAC,CAACI,cAAF;IACA,IAAI,CAACH,QAAL,EAAeC,eAAe,CAACF,CAAD,CAAf;EAChB;;EAEDK,MAAM,GAAG;I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,EAJV;MAKE,cAAYF,SAAS,CAACc;IALxB,EAlBJ,CAFF,CADF;EAgCD;;AAnFoC;;AAAjCjC,Q,CAeGkC,Y,GAAe;EACpBpB,IAAI,EAAEqB,iBAAA,CAASC,iBAAT,CAA2BtB;AADb,C;AAflBd,Q,CACGqC,S,2CAAY;EACjBnB,SAAS,EAAEoB,kBAAA,CAAUC,MADJ;EAEjBxB,QAAQ,EAAEuB,kBAAA,CAAUE,IAFH;EAGjB/B,QAAQ,EAAE6B,kBAAA,CAAUE,IAHH;EAIjBxB,kBAAkB,EAAEsB,kBAAA,CAAUC,MAJb;EAKjBtB,qBAAqB,EAAEqB,kBAAA,CAAUC,MALhB;EAMjB7B,eAAe,EAAE4B,kBAAA,CAAUG,IANV;EAOjB,cAAcH,kBAAA,CAAUI,KAAV,CAAgB;IAC5B3B,QAAQ,EAAEuB,kBAAA,CAAUC,MADQ;IAE5BN,aAAa,EAAEK,kBAAA,CAAUC,MAFG;IAG5BR,kBAAkB,EAAEO,kBAAA,CAAUC;EAHF,CAAhB;AAPG,C;eAqFNvC,Q"}
1
+ {"version":3,"file":"favorite.js","names":["Favorite","favorite","addFavoriteToolTip","removeFavoriteToolTip","className","ariaLabel","onFavoriteClick","disabled","legacyContext","skin","GetSkinFromContext","handleFavoriteClick","useCallback","e","stopPropagation","preventDefault","primaryColor","darkColor","brandColor","toolTipView","useMemo","style","showToolTip","blocFavorite","classnames","selected","color","checkIcon","removeFromFavorite","moreIcon","addToFavorite","propTypes","PropTypes","string","bool","func","shape","contextTypes","Provider","childContextTypes"],"sources":["../../../src/molecule/card/favorite.js"],"sourcesContent":["import React, {useCallback, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, noop} from 'lodash/fp';\nimport {\n NovaCompositionNavigationMore as MoreIcon,\n NovaCompositionCoorpacademyCheck as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\nimport style from './favorite.css';\n\nconst Favorite = (\n {\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n className,\n 'aria-label': ariaLabel = {},\n onFavoriteClick = noop,\n disabled\n },\n legacyContext\n) => {\n const skin = GetSkinFromContext(legacyContext);\n const handleFavoriteClick = useCallback(\n e => {\n e.stopPropagation();\n e.preventDefault();\n if (!disabled) onFavoriteClick(e);\n },\n [disabled, onFavoriteClick]\n );\n\n const primaryColor = get('common.primary', skin);\n const darkColor = get('common.dark', skin);\n const brandColor = get('common.brand', skin);\n\n const toolTipView = useMemo(\n () =>\n !isEmpty(removeFavoriteToolTip) && !isEmpty(addFavoriteToolTip) ? (\n <div className={style.showToolTip}>\n <span>{favorite ? removeFavoriteToolTip : addFavoriteToolTip}</span>\n </div>\n ) : null,\n [addFavoriteToolTip, favorite, removeFavoriteToolTip]\n );\n\n return (\n <div className={style.blocFavorite}>\n {toolTipView}\n <div\n data-name=\"favorite\"\n aria-label={ariaLabel.favorite}\n className={classnames(style.favorite, className, favorite && style.selected)}\n onClick={handleFavoriteClick}\n style={{\n color: primaryColor\n }}\n >\n {favorite ? (\n <CheckIcon\n className={style.checkIcon}\n style={{color: brandColor}}\n width={13}\n height={13}\n aria-label={ariaLabel.removeFromFavorite}\n />\n ) : (\n <MoreIcon\n className={style.moreIcon}\n style={{color: darkColor}}\n width={13}\n height={13}\n aria-label={ariaLabel.addToFavorite}\n />\n )}\n </div>\n </div>\n );\n};\n\nFavorite.propTypes = {\n className: PropTypes.string,\n favorite: PropTypes.bool,\n disabled: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onFavoriteClick: PropTypes.func,\n 'aria-label': PropTypes.shape({\n favorite: PropTypes.string,\n addToFavorite: PropTypes.string,\n removeFromFavorite: PropTypes.string\n })\n};\n\nFavorite.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default Favorite;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAI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BAJX;IAKE,KAAK,EAAE;MACLe,KAAK,EAAEV;IADF;EALT,GASGf,QAAQ,gBACP,6BAAC,2CAAD;IACE,SAAS,EAAEoB,iBAAA,CAAMM,SADnB;IAEE,KAAK,EAAE;MAACD,KAAK,EAAER;IAAR,CAFT;IAGE,KAAK,EAAE,EAHT;IAIE,MAAM,EAAE,EAJV;IAKE,cAAYb,SAAS,CAACuB;EALxB,EADO,gBASP,6BAAC,wCAAD;IACE,SAAS,EAAEP,iBAAA,CAAMQ,QADnB;IAEE,KAAK,EAAE;MAACH,KAAK,EAAET;IAAR,CAFT;IAGE,KAAK,EAAE,EAHT;IAIE,MAAM,EAAE,EAJV;IAKE,cAAYZ,SAAS,CAACyB;EALxB,EAlBJ,CAFF,CADF;AAgCD,CApED;;AAsEA9B,QAAQ,CAAC+B,SAAT,2CAAqB;EACnB3B,SAAS,EAAE4B,kBAAA,CAAUC,MADF;EAEnBhC,QAAQ,EAAE+B,kBAAA,CAAUE,IAFD;EAGnB3B,QAAQ,EAAEyB,kBAAA,CAAUE,IAHD;EAInBhC,kBAAkB,EAAE8B,kBAAA,CAAUC,MAJX;EAKnB9B,qBAAqB,EAAE6B,kBAAA,CAAUC,MALd;EAMnB3B,eAAe,EAAE0B,kBAAA,CAAUG,IANR;EAOnB,cAAcH,kBAAA,CAAUI,KAAV,CAAgB;IAC5BnC,QAAQ,EAAE+B,kBAAA,CAAUC,MADQ;IAE5BH,aAAa,EAAEE,kBAAA,CAAUC,MAFG;IAG5BL,kBAAkB,EAAEI,kBAAA,CAAUC;EAHF,CAAhB;AAPK,CAArB;AAcAjC,QAAQ,CAACqC,YAAT,GAAwB;EACtB5B,IAAI,EAAE6B,iBAAA,CAASC,iBAAT,CAA2B9B;AADX,CAAxB;eAIeT,Q"}
@@ -25,6 +25,8 @@ declare namespace DragAndDropWrapper {
25
25
  modified: PropTypes.Requireable<boolean>;
26
26
  disabled: PropTypes.Requireable<boolean>;
27
27
  children: PropTypes.Requireable<(...args: any[]) => any>;
28
+ pdfButtonLabel: PropTypes.Requireable<string>;
29
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
28
30
  }> | null | undefined)[]>;
29
31
  'data-name': PropTypes.Requireable<string>;
30
32
  };
@@ -10,5 +10,5 @@
10
10
  .dragAndDrop {
11
11
  margin-right: 16px;
12
12
  width: 202px;
13
- height: 183px;
13
+ min-height: 183px;
14
14
  }
@@ -105,6 +105,8 @@ declare namespace SetupSlide {
105
105
  modified: PropTypes.Requireable<boolean>;
106
106
  disabled: PropTypes.Requireable<boolean>;
107
107
  children: PropTypes.Requireable<(...args: any[]) => any>;
108
+ pdfButtonLabel: PropTypes.Requireable<string>;
109
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
108
110
  }> | PropTypes.InferProps<{
109
111
  type: PropTypes.Requireable<string>;
110
112
  title: PropTypes.Validator<string>;
@@ -118,6 +118,8 @@ declare namespace SetupSlider {
118
118
  modified: PropTypes.Requireable<boolean>;
119
119
  disabled: PropTypes.Requireable<boolean>;
120
120
  children: PropTypes.Requireable<(...args: any[]) => any>;
121
+ pdfButtonLabel: PropTypes.Requireable<string>;
122
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
121
123
  }> | PropTypes.InferProps<{
122
124
  type: PropTypes.Requireable<string>;
123
125
  title: PropTypes.Validator<string>;
@@ -65,6 +65,8 @@ declare namespace TitleAndCheckBoxWrapper {
65
65
  modified: PropTypes.Requireable<boolean>;
66
66
  disabled: PropTypes.Requireable<boolean>;
67
67
  children: PropTypes.Requireable<(...args: any[]) => any>;
68
+ pdfButtonLabel: PropTypes.Requireable<string>;
69
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
68
70
  }> | null | undefined)[]>;
69
71
  'data-name': PropTypes.Requireable<string>;
70
72
  }> | null | undefined>>;
@@ -178,6 +178,8 @@ declare namespace BrandForm {
178
178
  modified: PropTypes.Requireable<boolean>;
179
179
  disabled: PropTypes.Requireable<boolean>;
180
180
  children: PropTypes.Requireable<(...args: any[]) => any>;
181
+ pdfButtonLabel: PropTypes.Requireable<string>;
182
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
181
183
  }> | PropTypes.InferProps<{
182
184
  type: PropTypes.Requireable<string>;
183
185
  tabProps: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -296,6 +298,8 @@ declare namespace BrandForm {
296
298
  modified: PropTypes.Requireable<boolean>;
297
299
  disabled: PropTypes.Requireable<boolean>;
298
300
  children: PropTypes.Requireable<(...args: any[]) => any>;
301
+ pdfButtonLabel: PropTypes.Requireable<string>;
302
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
299
303
  }> | PropTypes.InferProps<{
300
304
  type: PropTypes.Requireable<string>;
301
305
  title: PropTypes.Validator<string>;
@@ -31,6 +31,7 @@ declare namespace ListItem {
31
31
  title: PropTypes.Validator<string>;
32
32
  order: PropTypes.Requireable<number>;
33
33
  'aria-label': PropTypes.Requireable<string>;
34
+ contentType: PropTypes.Requireable<string>;
34
35
  };
35
36
  }
36
37
  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,mDAqCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAQA,mDA4CC"}
@@ -27,7 +27,8 @@ const ListItem = props => {
27
27
  tags,
28
28
  title,
29
29
  order,
30
- 'aria-label': ariaLabel
30
+ 'aria-label': ariaLabel,
31
+ contentType
31
32
  } = props;
32
33
 
33
34
  const tagsView = _map2.default.convert({
@@ -42,7 +43,7 @@ const ListItem = props => {
42
43
 
43
44
  return /*#__PURE__*/_react.default.createElement("div", {
44
45
  className: _style.default.wrapper
45
- }, isPublished ? /*#__PURE__*/_react.default.createElement("div", {
46
+ }, isPublished && contentType === 'certification' ? /*#__PURE__*/_react.default.createElement("div", {
46
47
  className: _style.default.orderWrapper
47
48
  }, /*#__PURE__*/_react.default.createElement("div", {
48
49
  className: _style.default.order,
@@ -89,7 +90,8 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
89
90
  })),
90
91
  title: _propTypes.default.string.isRequired,
91
92
  order: _propTypes.default.number,
92
- 'aria-label': _propTypes.default.string
93
+ 'aria-label': _propTypes.default.string,
94
+ contentType: _propTypes.default.string
93
95
  } : {};
94
96
  var _default = ListItem;
95
97
  exports.default = _default;
@@ -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,cAAA,CAAMH;IAAlC,gBACE,6BAAC,YAAD,EAASA,GAAT,CADF,CADF;EAKD,CAPgB,EAOdP,IAPc,CAAjB;;EAQA,oBACE;IAAK,SAAS,EAAEU,cAAA,CAAMC;EAAtB,GACGd,WAAW,gBACV;IAAK,SAAS,EAAEa,cAAA,CAAME;EAAtB,gBACE;IAAK,SAAS,EAAEF,cAAA,CAAMR,KAAtB;IAA6B,cAAYC;EAAzC,GACG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EO,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,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,KA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nB3B,UAAU,EAAEkB,kBAAA,CAAUC,KAAV,CAAgB;IAC1BR,IAAI,EAAEO,kBAAA,CAAUG,MADU;IAE1BI,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,9 +1,10 @@
1
1
  export default ListItems;
2
- declare function ListItems({ title, buttonLink, 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"}