@coorpacademy/components 11.9.1 → 11.9.2-alpha.12

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 (62) hide show
  1. package/es/atom/drag-and-drop/style.css +14 -9
  2. package/es/atom/image-upload/index.d.ts +6 -1
  3. package/es/atom/image-upload/index.d.ts.map +1 -1
  4. package/es/atom/image-upload/index.js +24 -4
  5. package/es/atom/image-upload/index.js.map +1 -1
  6. package/es/atom/image-upload/style.css +7 -0
  7. package/es/atom/title/index.d.ts +1 -0
  8. package/es/atom/title/index.d.ts.map +1 -1
  9. package/es/atom/title/index.js +14 -5
  10. package/es/atom/title/index.js.map +1 -1
  11. package/es/atom/title/style.css +6 -0
  12. package/es/molecule/brand-form-group/index.d.ts +5 -0
  13. package/es/molecule/brand-form-group/index.d.ts.map +1 -1
  14. package/es/molecule/brand-form-group/index.js +4 -1
  15. package/es/molecule/brand-form-group/index.js.map +1 -1
  16. package/es/molecule/brand-form-group/style.css +9 -10
  17. package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
  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 +3 -0
  21. package/es/organism/brand-form/index.d.ts +5 -0
  22. package/es/organism/rewards-form/index.d.ts +3 -0
  23. package/es/organism/wizard-contents/index.d.ts +10 -2
  24. package/es/organism/wizard-contents/index.d.ts.map +1 -1
  25. package/es/organism/wizard-contents/index.js +9 -4
  26. package/es/organism/wizard-contents/index.js.map +1 -1
  27. package/es/organism/wizard-contents/style.css +36 -4
  28. package/es/template/back-office/brand-update/index.d.ts +15 -2
  29. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  30. package/es/template/back-office/brand-update/index.js.map +1 -1
  31. package/lib/atom/drag-and-drop/style.css +14 -9
  32. package/lib/atom/image-upload/index.d.ts +6 -1
  33. package/lib/atom/image-upload/index.d.ts.map +1 -1
  34. package/lib/atom/image-upload/index.js +25 -4
  35. package/lib/atom/image-upload/index.js.map +1 -1
  36. package/lib/atom/image-upload/style.css +7 -0
  37. package/lib/atom/title/index.d.ts +1 -0
  38. package/lib/atom/title/index.d.ts.map +1 -1
  39. package/lib/atom/title/index.js +14 -5
  40. package/lib/atom/title/index.js.map +1 -1
  41. package/lib/atom/title/style.css +6 -0
  42. package/lib/molecule/brand-form-group/index.d.ts +5 -0
  43. package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
  44. package/lib/molecule/brand-form-group/index.js +4 -1
  45. package/lib/molecule/brand-form-group/index.js.map +1 -1
  46. package/lib/molecule/brand-form-group/style.css +9 -10
  47. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
  48. package/lib/molecule/setup-slide/index.d.ts +2 -0
  49. package/lib/molecule/setup-slider/index.d.ts +2 -0
  50. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +3 -0
  51. package/lib/organism/brand-form/index.d.ts +5 -0
  52. package/lib/organism/rewards-form/index.d.ts +3 -0
  53. package/lib/organism/wizard-contents/index.d.ts +10 -2
  54. package/lib/organism/wizard-contents/index.d.ts.map +1 -1
  55. package/lib/organism/wizard-contents/index.js +9 -4
  56. package/lib/organism/wizard-contents/index.js.map +1 -1
  57. package/lib/organism/wizard-contents/style.css +36 -4
  58. package/lib/template/back-office/brand-update/index.d.ts +15 -2
  59. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  60. package/lib/template/back-office/brand-update/index.js.map +1 -1
  61. package/package.json +2 -2
  62. package/locales/.mtslconfig.json +0 -1
@@ -18,10 +18,10 @@
18
18
 
19
19
  .wrapper {
20
20
  font-family: "Gilroy";
21
- max-height: 350px;
22
- max-width: 460px;
23
21
  height: 100%;
24
22
  width: 100%;
23
+ display: flex;
24
+ flex-direction: column;
25
25
  }
26
26
 
27
27
  .disabled {
@@ -55,6 +55,7 @@
55
55
  width: 100%;
56
56
  height: 80%;
57
57
  border: none;
58
+ display: flex;
58
59
  border-radius: 7px;
59
60
  background: cm_grey_50;
60
61
  }
@@ -96,7 +97,6 @@
96
97
  .inputWrapper {
97
98
  background: cm_grey_50;
98
99
  width: 100%;
99
- height: 80%;
100
100
  box-sizing: border-box;
101
101
  border-radius: 7px;
102
102
  position: relative;
@@ -147,23 +147,26 @@
147
147
  background-color: cm_grey_50;
148
148
  border-radius: 3px;
149
149
  display: flex;
150
+ flex-wrap: nowrap;
151
+ min-width: 0;
150
152
  align-items: center;
151
153
  justify-content: space-between;
152
154
  margin-top: 16px;
153
155
  padding: 4px 8px;
154
156
  font-size: 12px;
155
157
  font-weight: 400;
158
+ position: relative;
156
159
  }
157
160
 
158
161
  .resetSrcLabel {
159
162
  color: cm_grey_700;
160
- display: inline-block;
161
- white-space: nowrap;
162
163
  overflow: hidden;
163
164
  text-overflow: ellipsis;
164
- direction: rtl;
165
- text-align: left;
166
- max-width: 90%;
165
+ white-space: nowrap;
166
+ flex-wrap: nowrap;
167
+ position: absolute;
168
+ left: 0;
169
+ right: 15px;
167
170
  }
168
171
 
169
172
  .closeIcon {
@@ -172,6 +175,8 @@
172
175
  margin-left: 6px;
173
176
  height: 15px;
174
177
  width: 15px;
178
+ position: absolute;
179
+ right: 0;
175
180
  }
176
181
 
177
182
  .dragging {
@@ -244,7 +249,7 @@
244
249
  }
245
250
 
246
251
  .loaderWrapper:hover .loadingCancel {
247
- display: block;
252
+ display: flex;
248
253
  }
249
254
 
250
255
  .loaderWrapper:hover {
@@ -1,5 +1,5 @@
1
1
  export default ImageUpload;
2
- declare function ImageUpload({ title, description, previewLabel, previewContent, uploadLabel, loading, modified, disabled, onChange, onReset, name, 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 }: {
3
3
  title: any;
4
4
  description: any;
5
5
  previewLabel: any;
@@ -11,6 +11,9 @@ declare function ImageUpload({ title, description, previewLabel, previewContent,
11
11
  onChange: any;
12
12
  onReset?: null | undefined;
13
13
  name: any;
14
+ labelLink: any;
15
+ labelButtonLink: any;
16
+ hrefLink: any;
14
17
  imageTypes?: string[] | undefined;
15
18
  error?: string | undefined;
16
19
  buttonAriaLabel: any;
@@ -25,6 +28,8 @@ declare namespace ImageUpload {
25
28
  error: PropTypes.Requireable<string>;
26
29
  buttonAriaLabel: PropTypes.Requireable<string>;
27
30
  errorButtonLabel: PropTypes.Requireable<string>;
31
+ labelLink: PropTypes.Requireable<string>;
32
+ hrefLink: PropTypes.Requireable<string>;
28
33
  title: PropTypes.Requireable<string>;
29
34
  description: PropTypes.Requireable<string>;
30
35
  uploadLabel: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/image-upload/index.js"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;gBAgEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/image-upload/index.js"],"names":[],"mappings":";AAQA;;;;;;;;;;;;;;;;;;;gBAmFC"}
@@ -9,6 +9,7 @@ import React, { useCallback } from 'react';
9
9
  import PropTypes from 'prop-types';
10
10
  import DragAndDrop from '../drag-and-drop';
11
11
  import { ImagePropType } from '../../util/proptypes';
12
+ import Link from '../button-link';
12
13
  import style from './style.css';
13
14
 
14
15
  const ImageUpload = ({
@@ -24,6 +25,9 @@ const ImageUpload = ({
24
25
  onReset = null,
25
26
  name,
26
27
  // See ImagePropType for accepted values
28
+ labelLink,
29
+ labelButtonLink,
30
+ hrefLink,
27
31
  imageTypes = ['*'],
28
32
  error = '',
29
33
  buttonAriaLabel,
@@ -37,7 +41,11 @@ const ImageUpload = ({
37
41
 
38
42
  const acceptedImages = _pipe(_map(t => `image/${t}`), _join(','))(imageTypes);
39
43
 
40
- return /*#__PURE__*/React.createElement(DragAndDrop, {
44
+ const linkCustomStyle = {
45
+ width: '40px',
46
+ color: 'red'
47
+ };
48
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(DragAndDrop, {
41
49
  title: title,
42
50
  description: description,
43
51
  previewLabel: previewLabel,
@@ -50,7 +58,7 @@ const ImageUpload = ({
50
58
  disabled: disabled,
51
59
  buttonAriaLabel: buttonAriaLabel,
52
60
  errorButtonLabel: errorButtonLabel
53
- }, (onDragStart, onDragStop) => /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", {
61
+ }, (onDragStart, onDragStop) => /*#__PURE__*/React.createElement("input", {
54
62
  type: "file",
55
63
  name: name,
56
64
  accept: acceptedImages,
@@ -60,7 +68,17 @@ const ImageUpload = ({
60
68
  onDragEnter: onDragStart,
61
69
  onDrop: onDragStop,
62
70
  onDragLeave: onDragStop
63
- })));
71
+ })), labelLink && hrefLink ? /*#__PURE__*/React.createElement("div", {
72
+ className: style.templateLink
73
+ }, labelLink, /*#__PURE__*/React.createElement(Link, {
74
+ type: "text",
75
+ customStyle: linkCustomStyle,
76
+ link: {
77
+ href: hrefLink,
78
+ download: true
79
+ },
80
+ label: labelButtonLink
81
+ })) : null);
64
82
  };
65
83
 
66
84
  ImageUpload.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, DragAndDrop.propTypes, {
@@ -70,7 +88,9 @@ ImageUpload.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, Dra
70
88
  imageTypes: PropTypes.arrayOf(ImagePropType),
71
89
  error: PropTypes.string,
72
90
  buttonAriaLabel: PropTypes.string,
73
- errorButtonLabel: PropTypes.string
91
+ errorButtonLabel: PropTypes.string,
92
+ labelLink: PropTypes.string,
93
+ hrefLink: PropTypes.string
74
94
  }) : {};
75
95
  export default ImageUpload;
76
96
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useCallback","PropTypes","DragAndDrop","ImagePropType","style","ImageUpload","title","description","previewLabel","previewContent","uploadLabel","loading","modified","disabled","onChange","onReset","name","imageTypes","error","buttonAriaLabel","errorButtonLabel","handleReset","e","preventDefault","acceptedImages","t","onDragStart","onDragStop","input","propTypes","string","func","arrayOf"],"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 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 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 return (\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 <div>\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 </div>\n )}\n </DragAndDrop>\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};\n\nexport default ImageUpload;\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OA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AAEQ,cAHV;IAIE,QAAQ,EAAEb,OAAO,IAAIE,QAJvB;IAKE,SAAS,EAAET,KAAK,CAACwB,KALnB;IAME,QAAQ,EAAEd,QANZ;IAOE,WAAW,EAAEY,WAPf;IAQE,MAAM,EAAEC,UARV;IASE,WAAW,EAAEA;EATf,EADF,CAfJ,CADF;AAgCD,CAhED;;AAkEAtB,WAAW,CAACwB,SAAZ,wDACK3B,WAAW,CAAC2B,SADjB;EAEEb,IAAI,EAAEf,SAAS,CAAC6B,MAFlB;EAGEhB,QAAQ,EAAEb,SAAS,CAAC8B,IAHtB;EAIEhB,OAAO,EAAEd,SAAS,CAAC8B,IAJrB;EAKEd,UAAU,EAAEhB,SAAS,CAAC+B,OAAV,CAAkB7B,aAAlB,CALd;EAMEe,KAAK,EAAEjB,SAAS,CAAC6B,MANnB;EAOEX,eAAe,EAAElB,SAAS,CAAC6B,MAP7B;EAQEV,gBAAgB,EAAEnB,SAAS,CAAC6B;AAR9B;AAWA,eAAezB,WAAf"}
1
+ {"version":3,"file":"index.js","names":["React","useCallback","PropTypes","DragAndDrop","ImagePropType","Link","style","ImageUpload","title","description","previewLabel","previewContent","uploadLabel","loading","modified","disabled","onChange","onReset","name","labelLink","labelButtonLink","hrefLink","imageTypes","error","buttonAriaLabel","errorButtonLabel","handleReset","e","preventDefault","acceptedImages","t","linkCustomStyle","width","color","onDragStart","onDragStop","input","templateLink","href","download","propTypes","string","func","arrayOf"],"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,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,WAAP,MAAwB,kBAAxB;AACA,SAAQC,aAAR,QAA4B,sBAA5B;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,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IE,QAAQ,EAAEhB,OAAO,IAAIE,QAJvB;IAKE,SAAS,EAAET,KAAK,CAAC8B,KALnB;IAME,QAAQ,EAAEpB,QANZ;IAOE,WAAW,EAAEkB,WAPf;IAQE,MAAM,EAAEC,UARV;IASE,WAAW,EAAEA;EATf,EAfJ,CADF,EA6BGhB,SAAS,IAAIE,QAAb,gBACC;IAAK,SAAS,EAAEf,KAAK,CAAC+B;EAAtB,GACGlB,SADH,eAEE,oBAAC,IAAD;IACE,IAAI,EAAC,MADP;IAEE,WAAW,EAAEY,eAFf;IAGE,IAAI,EAAE;MAACO,IAAI,EAAEjB,QAAP;MAAiBkB,QAAQ,EAAE;IAA3B,CAHR;IAIE,KAAK,EAAEnB;EAJT,EAFF,CADD,GAUG,IAvCN,CADF;AA2CD,CAnFD;;AAqFAb,WAAW,CAACiC,SAAZ,wDACKrC,WAAW,CAACqC,SADjB;EAEEtB,IAAI,EAAEhB,SAAS,CAACuC,MAFlB;EAGEzB,QAAQ,EAAEd,SAAS,CAACwC,IAHtB;EAIEzB,OAAO,EAAEf,SAAS,CAACwC,IAJrB;EAKEpB,UAAU,EAAEpB,SAAS,CAACyC,OAAV,CAAkBvC,aAAlB,CALd;EAMEmB,KAAK,EAAErB,SAAS,CAACuC,MANnB;EAOEjB,eAAe,EAAEtB,SAAS,CAACuC,MAP7B;EAQEhB,gBAAgB,EAAEvB,SAAS,CAACuC,MAR9B;EASEtB,SAAS,EAAEjB,SAAS,CAACuC,MATvB;EAUEpB,QAAQ,EAAEnB,SAAS,CAACuC;AAVtB;AAaA,eAAelC,WAAf"}
@@ -10,3 +10,10 @@
10
10
  bottom: 0;
11
11
  right: 0;
12
12
  }
13
+
14
+ .templateLink {
15
+ display: flex;
16
+ flex-direction: row;
17
+ justify-content: center;
18
+ margin-top: 8px;
19
+ }
@@ -6,6 +6,7 @@ declare namespace Title {
6
6
  subtitle: PropTypes.Requireable<string>;
7
7
  type: PropTypes.Requireable<string>;
8
8
  'data-name': PropTypes.Requireable<string>;
9
+ subtitleSize: PropTypes.Requireable<string>;
9
10
  };
10
11
  }
11
12
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/title/index.js"],"names":[],"mappings":";AAsBA,gDAeC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/title/index.js"],"names":[],"mappings":";AA2BA,gDAeC"}
@@ -12,13 +12,20 @@ const getTitleStype = type => {
12
12
  }
13
13
  };
14
14
 
15
- const getSubtitleStype = type => {
15
+ const getSubtitleStype = (type, size) => {
16
16
  switch (type) {
17
17
  case 'page':
18
18
  return style.subtitlePage;
19
19
 
20
20
  case 'form-group':
21
- return style.subtitleFormGroup;
21
+ switch (size) {
22
+ case 'standard':
23
+ return style.subtitleFormGroup;
24
+
25
+ case 'small':
26
+ return style.smallSubtitleFormGroup;
27
+ }
28
+
22
29
  }
23
30
  };
24
31
 
@@ -27,10 +34,11 @@ const Title = props => {
27
34
  title,
28
35
  subtitle,
29
36
  type,
30
- 'data-name': dataName
37
+ 'data-name': dataName,
38
+ subtitleSize = 'standard'
31
39
  } = props;
32
40
  const titleStyle = getTitleStype(type);
33
- const subtitleStyle = getSubtitleStype(type);
41
+ const subtitleStyle = getSubtitleStype(type, subtitleSize);
34
42
  const subtitleSection = subtitle ? /*#__PURE__*/React.createElement("div", {
35
43
  className: subtitleStyle
36
44
  }, subtitle) : null;
@@ -44,7 +52,8 @@ Title.propTypes = process.env.NODE_ENV !== "production" ? {
44
52
  title: PropTypes.string,
45
53
  subtitle: PropTypes.string,
46
54
  type: PropTypes.oneOf(['page', 'form-group']),
47
- 'data-name': PropTypes.string
55
+ 'data-name': PropTypes.string,
56
+ subtitleSize: PropTypes.string
48
57
  } : {};
49
58
  export default Title;
50
59
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","style","getTitleStype","type","titlePage","titleFormGroup","getSubtitleStype","subtitlePage","subtitleFormGroup","Title","props","title","subtitle","dataName","titleStyle","subtitleStyle","subtitleSection","propTypes","string","oneOf"],"sources":["../../../src/atom/title/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport style from './style.css';\n\nconst getTitleStype = type => {\n switch (type) {\n case 'page':\n return style.titlePage;\n case 'form-group':\n return style.titleFormGroup;\n }\n};\n\nconst getSubtitleStype = type => {\n switch (type) {\n case 'page':\n return style.subtitlePage;\n case 'form-group':\n return style.subtitleFormGroup;\n }\n};\n\nconst Title = props => {\n const {title, subtitle, type, 'data-name': dataName} = props;\n const titleStyle = getTitleStype(type);\n const subtitleStyle = getSubtitleStype(type);\n\n const subtitleSection = subtitle ? <div className={subtitleStyle}>{subtitle}</div> : null;\n\n return (\n <div>\n <div className={titleStyle} data-name={dataName}>\n {title}\n </div>\n {subtitleSection}\n </div>\n );\n};\n\nTitle.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n type: PropTypes.oneOf(['page', 'form-group']),\n 'data-name': PropTypes.string\n};\nexport default Title;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,aAAa,GAAGC,IAAI,IAAI;EAC5B,QAAQA,IAAR;IACE,KAAK,MAAL;MACE,OAAOF,KAAK,CAACG,SAAb;;IACF,KAAK,YAAL;MACE,OAAOH,KAAK,CAACI,cAAb;EAJJ;AAMD,CAPD;;AASA,MAAMC,gBAAgB,GAAGH,IAAI,IAAI;EAC/B,QAAQA,IAAR;IACE,KAAK,MAAL;MACE,OAAOF,KAAK,CAACM,YAAb;;IACF,KAAK,YAAL;MACE,OAAON,KAAK,CAACO,iBAAb;EAJJ;AAMD,CAPD;;AASA,MAAMC,KAAK,GAAGC,KAAK,IAAI;EACrB,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBT,IAAlB;IAAwB,aAAaU;EAArC,IAAiDH,KAAvD;EACA,MAAMI,UAAU,GAAGZ,aAAa,CAACC,IAAD,CAAhC;EACA,MAAMY,aAAa,GAAGT,gBAAgB,CAACH,IAAD,CAAtC;EAEA,MAAMa,eAAe,GAAGJ,QAAQ,gBAAG;IAAK,SAAS,EAAEG;EAAhB,GAAgCH,QAAhC,CAAH,GAAqD,IAArF;EAEA,oBACE,8CACE;IAAK,SAAS,EAAEE,UAAhB;IAA4B,aAAWD;EAAvC,GACGF,KADH,CADF,EAIGK,eAJH,CADF;AAQD,CAfD;;AAiBAP,KAAK,CAACQ,SAAN,2CAAkB;EAChBN,KAAK,EAAEX,SAAS,CAACkB,MADD;EAEhBN,QAAQ,EAAEZ,SAAS,CAACkB,MAFJ;EAGhBf,IAAI,EAAEH,SAAS,CAACmB,KAAV,CAAgB,CAAC,MAAD,EAAS,YAAT,CAAhB,CAHU;EAIhB,aAAanB,SAAS,CAACkB;AAJP,CAAlB;AAMA,eAAeT,KAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","style","getTitleStype","type","titlePage","titleFormGroup","getSubtitleStype","size","subtitlePage","subtitleFormGroup","smallSubtitleFormGroup","Title","props","title","subtitle","dataName","subtitleSize","titleStyle","subtitleStyle","subtitleSection","propTypes","string","oneOf"],"sources":["../../../src/atom/title/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport style from './style.css';\n\nconst getTitleStype = type => {\n switch (type) {\n case 'page':\n return style.titlePage;\n case 'form-group':\n return style.titleFormGroup;\n }\n};\n\nconst getSubtitleStype = (type, size) => {\n switch (type) {\n case 'page':\n return style.subtitlePage;\n case 'form-group':\n switch (size) {\n case 'standard':\n return style.subtitleFormGroup;\n case 'small':\n return style.smallSubtitleFormGroup;\n }\n }\n};\n\nconst Title = props => {\n const {title, subtitle, type, 'data-name': dataName, subtitleSize = 'standard'} = props;\n const titleStyle = getTitleStype(type);\n const subtitleStyle = getSubtitleStype(type, subtitleSize);\n\n const subtitleSection = subtitle ? <div className={subtitleStyle}>{subtitle}</div> : null;\n\n return (\n <div>\n <div className={titleStyle} data-name={dataName}>\n {title}\n </div>\n {subtitleSection}\n </div>\n );\n};\n\nTitle.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n type: PropTypes.oneOf(['page', 'form-group']),\n 'data-name': PropTypes.string,\n subtitleSize: PropTypes.string\n};\nexport default Title;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,aAAa,GAAGC,IAAI,IAAI;EAC5B,QAAQA,IAAR;IACE,KAAK,MAAL;MACE,OAAOF,KAAK,CAACG,SAAb;;IACF,KAAK,YAAL;MACE,OAAOH,KAAK,CAACI,cAAb;EAJJ;AAMD,CAPD;;AASA,MAAMC,gBAAgB,GAAG,CAACH,IAAD,EAAOI,IAAP,KAAgB;EACvC,QAAQJ,IAAR;IACE,KAAK,MAAL;MACE,OAAOF,KAAK,CAACO,YAAb;;IACF,KAAK,YAAL;MACE,QAAQD,IAAR;QACE,KAAK,UAAL;UACE,OAAON,KAAK,CAACQ,iBAAb;;QACF,KAAK,OAAL;UACE,OAAOR,KAAK,CAACS,sBAAb;MAJJ;;EAJJ;AAWD,CAZD;;AAcA,MAAMC,KAAK,GAAGC,KAAK,IAAI;EACrB,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBX,IAAlB;IAAwB,aAAaY,QAArC;IAA+CC,YAAY,GAAG;EAA9D,IAA4EJ,KAAlF;EACA,MAAMK,UAAU,GAAGf,aAAa,CAACC,IAAD,CAAhC;EACA,MAAMe,aAAa,GAAGZ,gBAAgB,CAACH,IAAD,EAAOa,YAAP,CAAtC;EAEA,MAAMG,eAAe,GAAGL,QAAQ,gBAAG;IAAK,SAAS,EAAEI;EAAhB,GAAgCJ,QAAhC,CAAH,GAAqD,IAArF;EAEA,oBACE,8CACE;IAAK,SAAS,EAAEG,UAAhB;IAA4B,aAAWF;EAAvC,GACGF,KADH,CADF,EAIGM,eAJH,CADF;AAQD,CAfD;;AAiBAR,KAAK,CAACS,SAAN,2CAAkB;EAChBP,KAAK,EAAEb,SAAS,CAACqB,MADD;EAEhBP,QAAQ,EAAEd,SAAS,CAACqB,MAFJ;EAGhBlB,IAAI,EAAEH,SAAS,CAACsB,KAAV,CAAgB,CAAC,MAAD,EAAS,YAAT,CAAhB,CAHU;EAIhB,aAAatB,SAAS,CAACqB,MAJP;EAKhBL,YAAY,EAAEhB,SAAS,CAACqB;AALR,CAAlB;AAOA,eAAeV,KAAf"}
@@ -41,3 +41,9 @@
41
41
  line-height: 20px;
42
42
  color: cm_grey_400;
43
43
  }
44
+
45
+
46
+ .smallSubtitleFormGroup{
47
+ composes: subtitleFormGroup;
48
+ max-width: 450px
49
+ }
@@ -4,6 +4,7 @@ declare namespace BrandFormGroup {
4
4
  namespace propTypes {
5
5
  const title: PropTypes.Requireable<string>;
6
6
  const subtitle: PropTypes.Requireable<string>;
7
+ const subtitleSize: PropTypes.Requireable<string>;
7
8
  const fieldsLayout: PropTypes.Requireable<string>;
8
9
  const groupLayout: PropTypes.Requireable<string>;
9
10
  const fields: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
@@ -129,6 +130,8 @@ declare namespace BrandFormGroup {
129
130
  error: PropTypes.Requireable<string>;
130
131
  buttonAriaLabel: PropTypes.Requireable<string>;
131
132
  errorButtonLabel: PropTypes.Requireable<string>;
133
+ labelLink: PropTypes.Requireable<string>;
134
+ hrefLink: PropTypes.Requireable<string>;
132
135
  title: PropTypes.Requireable<string>;
133
136
  description: PropTypes.Requireable<string>;
134
137
  uploadLabel: PropTypes.Requireable<string>;
@@ -242,6 +245,8 @@ declare namespace BrandFormGroup {
242
245
  error: PropTypes.Requireable<string>;
243
246
  buttonAriaLabel: PropTypes.Requireable<string>;
244
247
  errorButtonLabel: PropTypes.Requireable<string>;
248
+ labelLink: PropTypes.Requireable<string>;
249
+ hrefLink: PropTypes.Requireable<string>;
245
250
  title: PropTypes.Requireable<string>;
246
251
  description: PropTypes.Requireable<string>;
247
252
  uploadLabel: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/brand-form-group/index.js"],"names":[],"mappings":";AAmGA,yDAeC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/brand-form-group/index.js"],"names":[],"mappings":";AAmGA,yDAsBC"}
@@ -132,7 +132,8 @@ const BrandFormGroup = props => {
132
132
  subtitle = '',
133
133
  fieldsLayout = '',
134
134
  groupLayout = '',
135
- fields = []
135
+ fields = [],
136
+ subtitleSize = 'standard'
136
137
  } = props;
137
138
 
138
139
  const fieldsList = _map.convert({
@@ -147,6 +148,7 @@ const BrandFormGroup = props => {
147
148
  }, /*#__PURE__*/React.createElement(Title, {
148
149
  title: title,
149
150
  subtitle: subtitle,
151
+ subtitleSize: subtitleSize,
150
152
  type: 'form-group'
151
153
  })), /*#__PURE__*/React.createElement("div", {
152
154
  className: fieldsLayout === 'grid' ? style.grid : null
@@ -156,6 +158,7 @@ const BrandFormGroup = props => {
156
158
  BrandFormGroup.propTypes = process.env.NODE_ENV !== "production" ? {
157
159
  title: PropTypes.string,
158
160
  subtitle: PropTypes.string,
161
+ subtitleSize: PropTypes.string,
159
162
  fieldsLayout: PropTypes.string,
160
163
  groupLayout: PropTypes.string,
161
164
  fields: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(_extends({}, Autocomplete.propTypes, {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","classNames","Autocomplete","Select","SelectMultiple","InputText","InputColor","InputCheckbox","InputReadonly","InputSwitch","BrandUploadBox","BrandDownloadBox","Button","InputTextarea","InputHTML","InputDoublestep","ImageUpload","SetupSlider","SetupSections","Title","Roles","TitleAndCheckBoxWrapper","ButtonLink","style","inputContainerStyle","default","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","field","type","imageUploadContainer","buttonType","buildField","index","input","theme","size","styleInput","BrandFormGroup","props","title","subtitle","fieldsLayout","groupLayout","fields","fieldsList","convert","cap","wrapper","groupGrid","titleWrapper","grid","propTypes","string","arrayOf","oneOfType","shape","oneOf"],"sources":["../../../src/molecule/brand-form-group/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys, map, snakeCase} from 'lodash/fp';\nimport classNames from 'classnames';\nimport Autocomplete from '../../atom/autocomplete';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../select-multiple';\nimport InputText from '../../atom/input-text';\nimport InputColor from '../../atom/input-color';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputSwitch from '../../atom/input-switch';\nimport BrandUploadBox from '../brand-upload-box';\nimport BrandDownloadBox from '../brand-download-box';\nimport Button from '../../atom/button';\nimport InputTextarea from '../../atom/input-textarea';\nimport InputHTML from '../../atom/input-html';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupSlider from '../setup-slider';\nimport SetupSections from '../setup-sections';\nimport Title from '../../atom/title';\nimport Roles from '../coorp-manager-roles';\nimport TitleAndCheckBoxWrapper from '../title-and-checkbox-wrapper';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst inputContainerStyle = {\n default: style.defaultWidth,\n medium: style.mediumWidth,\n large: style.largeWidth\n};\n\nconst buildInput = field => {\n const {type} = field;\n\n switch (type) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'color':\n return <InputColor {...field} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'switch':\n return <InputSwitch {...field} />;\n case 'textarea':\n return <InputTextarea {...field} />;\n case 'html':\n return <InputHTML {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'select':\n return <Select {...field} theme={'coorpmanager'} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return (\n <div className={style.imageUploadContainer}>\n <ImageUpload {...field} />\n </div>\n );\n case 'slider':\n return <SetupSlider {...field} />;\n case 'sections':\n return <SetupSections {...field} />;\n case 'text':\n return <InputText {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'uploadbox':\n return <BrandUploadBox {...field} />;\n case 'button':\n case 'link':\n return <Button {...field} />;\n case 'buttonLink':\n return <ButtonLink {...field} type={field.buttonType} />;\n case 'roles':\n return <Roles {...field} />;\n case 'titleAndCheckBoxWrapper':\n return <TitleAndCheckBoxWrapper {...field} />;\n default:\n return <InputText {...field} />;\n }\n};\n\nconst buildField = (field, index) => {\n const input = buildInput(field);\n const {theme, size = 'default'} = field;\n const styleInput = theme === 'coorpmanager' ? inputContainerStyle[size] : style.field;\n\n return (\n <div className={styleInput} key={index}>\n {input}\n </div>\n );\n};\n\nconst BrandFormGroup = props => {\n const {title, subtitle = '', fieldsLayout = '', groupLayout = '', fields = []} = props;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n\n return (\n <div\n data-name={`brand_form_group_${snakeCase(title)}`}\n className={classNames(style.wrapper, groupLayout === 'grid' && style.groupGrid)}\n >\n <div className={style.titleWrapper}>\n <Title title={title} subtitle={subtitle} type={'form-group'} />\n </div>\n <div className={fieldsLayout === 'grid' ? style.grid : null}>{fieldsList}</div>\n </div>\n );\n};\n\nBrandFormGroup.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n fieldsLayout: PropTypes.string,\n groupLayout: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...Autocomplete.propTypes,\n type: PropTypes.oneOf(['autoComplete']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputColor.propTypes,\n type: PropTypes.oneOf(['color'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...InputTextarea.propTypes,\n type: PropTypes.oneOf(['textarea']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputHTML.propTypes,\n type: PropTypes.oneOf(['html'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...SetupSections.propTypes,\n type: PropTypes.oneOf(['sections'])\n }),\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n }),\n PropTypes.shape({\n ...BrandUploadBox.propTypes,\n type: PropTypes.oneOf(['uploadbox'])\n }),\n PropTypes.shape({\n ...Button.propTypes,\n type: PropTypes.oneOf(['button'])\n }),\n PropTypes.shape({\n ...ButtonLink.propTypes,\n buttonType: ButtonLink.propTypes.type,\n type: PropTypes.oneOf(['buttonLink'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n type: PropTypes.oneOf(['selectMultiple'])\n }),\n PropTypes.shape({\n ...Roles.propTypes,\n type: PropTypes.oneOf(['roles'])\n }),\n PropTypes.shape(InputText.propTypes)\n ])\n )\n};\nexport default BrandFormGroup;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,M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6C,SADtB;IAEEvB,IAAI,EAAEjC,SAAS,CAAC6D,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFR,GAzDkB,EA6DlB7D,SAAS,CAAC4D,KAAV,cACKlD,cAAc,CAAC8C,SADpB;IAEEvB,IAAI,EAAEjC,SAAS,CAAC6D,KAAV,CAAgB,CAAC,WAAD,CAAhB;EAFR,GA7DkB,EAiElB7D,SAAS,CAAC4D,KAAV,cACKhD,MAAM,CAAC4C,SADZ;IAEEvB,IAAI,EAAEjC,SAAS,CAAC6D,KAAV,CAAgB,CAAC,QAAD,CAAhB;EAFR,GAjEkB,EAqElB7D,SAAS,CAAC4D,KAAV,cACKtC,UAAU,CAACkC,SADhB;IAEErB,UAAU,EAAEb,UAAU,CAACkC,SAAX,CAAqBvB,IAFnC;IAGEA,IAAI,EAAEjC,SAAS,CAAC6D,KAAV,CAAgB,CAAC,YAAD,CAAhB;EAHR,GArEkB,EA0ElB7D,SAAS,CAAC4D,KAAV,cACKxD,cAAc,CAACoD,SADpB;IAEEvB,IAAI,EAAEjC,SAAS,CAAC6D,KAAV,CAAgB,CAAC,gBAAD,CAAhB;EAFR,GA1EkB,EA8ElB7D,SAAS,CAAC4D,KAAV,cACKxC,KAAK,CAACoC,SADX;IAEEvB,IAAI,EAAEjC,SAAS,CAAC6D,KAAV,CAAgB,CAAC,OAAD,CAAhB;EAFR,GA9EkB,EAkFlB7D,SAAS,CAAC4D,KAAV,CAAgBvD,SAAS,CAACmD,SAA1B,CAlFkB,CAApB,CADM;AALiB,CAA3B;AA4FA,eAAed,cAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","classNames","Autocomplete","Select","SelectMultiple","InputText","InputColor","InputCheckbox","InputReadonly","InputSwitch","BrandUploadBox","BrandDownloadBox","Button","InputTextarea","InputHTML","InputDoublestep","ImageUpload","SetupSlider","SetupSections","Title","Roles","TitleAndCheckBoxWrapper","ButtonLink","style","inputContainerStyle","default","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","field","type","imageUploadContainer","buttonType","buildField","index","input","theme","size","styleInput","BrandFormGroup","props","title","subtitle","fieldsLayout","groupLayout","fields","subtitleSize","fieldsList","convert","cap","wrapper","groupGrid","titleWrapper","grid","propTypes","string","arrayOf","oneOfType","shape","oneOf"],"sources":["../../../src/molecule/brand-form-group/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys, map, snakeCase} from 'lodash/fp';\nimport classNames from 'classnames';\nimport Autocomplete from '../../atom/autocomplete';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../select-multiple';\nimport InputText from '../../atom/input-text';\nimport InputColor from '../../atom/input-color';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputSwitch from '../../atom/input-switch';\nimport BrandUploadBox from '../brand-upload-box';\nimport BrandDownloadBox from '../brand-download-box';\nimport Button from '../../atom/button';\nimport InputTextarea from '../../atom/input-textarea';\nimport InputHTML from '../../atom/input-html';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupSlider from '../setup-slider';\nimport SetupSections from '../setup-sections';\nimport Title from '../../atom/title';\nimport Roles from '../coorp-manager-roles';\nimport TitleAndCheckBoxWrapper from '../title-and-checkbox-wrapper';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst inputContainerStyle = {\n default: style.defaultWidth,\n medium: style.mediumWidth,\n large: style.largeWidth\n};\n\nconst buildInput = field => {\n const {type} = field;\n\n switch (type) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'color':\n return <InputColor {...field} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'switch':\n return <InputSwitch {...field} />;\n case 'textarea':\n return <InputTextarea {...field} />;\n case 'html':\n return <InputHTML {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'select':\n return <Select {...field} theme={'coorpmanager'} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return (\n <div className={style.imageUploadContainer}>\n <ImageUpload {...field} />\n </div>\n );\n case 'slider':\n return <SetupSlider {...field} />;\n case 'sections':\n return <SetupSections {...field} />;\n case 'text':\n return <InputText {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'uploadbox':\n return <BrandUploadBox {...field} />;\n case 'button':\n case 'link':\n return <Button {...field} />;\n case 'buttonLink':\n return <ButtonLink {...field} type={field.buttonType} />;\n case 'roles':\n return <Roles {...field} />;\n case 'titleAndCheckBoxWrapper':\n return <TitleAndCheckBoxWrapper {...field} />;\n default:\n return <InputText {...field} />;\n }\n};\n\nconst buildField = (field, index) => {\n const input = buildInput(field);\n const {theme, size = 'default'} = field;\n const styleInput = theme === 'coorpmanager' ? inputContainerStyle[size] : style.field;\n\n return (\n <div className={styleInput} key={index}>\n {input}\n </div>\n );\n};\n\nconst BrandFormGroup = props => {\n const {\n title,\n subtitle = '',\n fieldsLayout = '',\n groupLayout = '',\n fields = [],\n subtitleSize = 'standard'\n } = props;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n\n return (\n <div\n data-name={`brand_form_group_${snakeCase(title)}`}\n className={classNames(style.wrapper, groupLayout === 'grid' && style.groupGrid)}\n >\n <div className={style.titleWrapper}>\n <Title title={title} subtitle={subtitle} subtitleSize={subtitleSize} type={'form-group'} />\n </div>\n <div className={fieldsLayout === 'grid' ? style.grid : null}>{fieldsList}</div>\n </div>\n );\n};\n\nBrandFormGroup.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n subtitleSize: PropTypes.string,\n fieldsLayout: PropTypes.string,\n groupLayout: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...Autocomplete.propTypes,\n type: PropTypes.oneOf(['autoComplete']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputColor.propTypes,\n type: PropTypes.oneOf(['color'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...InputTextarea.propTypes,\n type: PropTypes.oneOf(['textarea']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputHTML.propTypes,\n type: PropTypes.oneOf(['html'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...SetupSections.propTypes,\n type: PropTypes.oneOf(['sections'])\n }),\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n }),\n PropTypes.shape({\n ...BrandUploadBox.propTypes,\n type: PropTypes.oneOf(['uploadbox'])\n }),\n PropTypes.shape({\n ...Button.propTypes,\n type: PropTypes.oneOf(['button'])\n }),\n PropTypes.shape({\n ...ButtonLink.propTypes,\n buttonType: ButtonLink.propTypes.type,\n type: PropTypes.oneOf(['buttonLink'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n type: PropTypes.oneOf(['selectMultiple'])\n }),\n PropTypes.shape({\n ...Roles.propTypes,\n type: PropTypes.oneOf(['roles'])\n }),\n PropTypes.shape(InputText.propTypes)\n ])\n )\n};\nexport default BrandFormGroup;\n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B,CAFR;IAGEtB,IAAI,EAAExC,SAAS,CAAC8D,KAAV,CAAgB,MAAKtC,mBAAL,CAAhB;EAHR,GApDkB,EAyDlBxB,SAAS,CAAC6D,KAAV,cACKlD,gBAAgB,CAAC8C,SADtB;IAEExB,IAAI,EAAEjC,SAAS,CAAC8D,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFR,GAzDkB,EA6DlB9D,SAAS,CAAC6D,KAAV,cACKnD,cAAc,CAAC+C,SADpB;IAEExB,IAAI,EAAEjC,SAAS,CAAC8D,KAAV,CAAgB,CAAC,WAAD,CAAhB;EAFR,GA7DkB,EAiElB9D,SAAS,CAAC6D,KAAV,cACKjD,MAAM,CAAC6C,SADZ;IAEExB,IAAI,EAAEjC,SAAS,CAAC8D,KAAV,CAAgB,CAAC,QAAD,CAAhB;EAFR,GAjEkB,EAqElB9D,SAAS,CAAC6D,KAAV,cACKvC,UAAU,CAACmC,SADhB;IAEEtB,UAAU,EAAEb,UAAU,CAACmC,SAAX,CAAqBxB,IAFnC;IAGEA,IAAI,EAAEjC,SAAS,CAAC8D,KAAV,CAAgB,CAAC,YAAD,CAAhB;EAHR,GArEkB,EA0ElB9D,SAAS,CAAC6D,KAAV,cACKzD,cAAc,CAACqD,SADpB;IAEExB,IAAI,EAAEjC,SAAS,CAAC8D,KAAV,CAAgB,CAAC,gBAAD,CAAhB;EAFR,GA1EkB,EA8ElB9D,SAAS,CAAC6D,KAAV,cACKzC,KAAK,CAACqC,SADX;IAEExB,IAAI,EAAEjC,SAAS,CAAC8D,KAAV,CAAgB,CAAC,OAAD,CAAhB;EAFR,GA9EkB,EAkFlB9D,SAAS,CAAC6D,KAAV,CAAgBxD,SAAS,CAACoD,SAA1B,CAlFkB,CAApB,CADM;AANiB,CAA3B;AA6FA,eAAef,cAAf"}
@@ -42,17 +42,12 @@
42
42
  justify-content: space-evenly;
43
43
  }
44
44
 
45
- .grid .field {
46
- margin-right: 20px;
47
- }
48
-
49
45
  .field {
50
- margin-bottom: 10px;
46
+ display: flex;
47
+ margin: 0 32px 64px 0;
48
+ flex: 1 0 0;
51
49
  }
52
50
 
53
- .field:last-child {
54
- margin-bottom: 0;
55
- }
56
51
 
57
52
  .fieldCoorpmanager {
58
53
  margin: 0 0 32px 0;
@@ -74,8 +69,10 @@
74
69
  }
75
70
 
76
71
  .imageUploadContainer {
77
- height: 300px;
78
- width: 360px;
72
+ display: flex;
73
+ flex-direction: column;
74
+ width: 100%;
75
+ min-width: 230px;
79
76
  }
80
77
 
81
78
  @media desktop {
@@ -84,6 +81,8 @@
84
81
  }
85
82
 
86
83
  .groupGrid .grid {
84
+ display: flex;
85
+ flex-direction: row;
87
86
  justify-content: flex-start;
88
87
  margin-top: 0;
89
88
  }
@@ -10,6 +10,8 @@ declare namespace DragAndDropWrapper {
10
10
  error: PropTypes.Requireable<string>;
11
11
  buttonAriaLabel: PropTypes.Requireable<string>;
12
12
  errorButtonLabel: PropTypes.Requireable<string>;
13
+ labelLink: PropTypes.Requireable<string>;
14
+ hrefLink: PropTypes.Requireable<string>;
13
15
  title: PropTypes.Requireable<string>;
14
16
  description: PropTypes.Requireable<string>;
15
17
  uploadLabel: PropTypes.Requireable<string>;
@@ -87,6 +87,8 @@ declare namespace SetupSlide {
87
87
  error: PropTypes.Requireable<string>;
88
88
  buttonAriaLabel: PropTypes.Requireable<string>;
89
89
  errorButtonLabel: PropTypes.Requireable<string>;
90
+ labelLink: PropTypes.Requireable<string>;
91
+ hrefLink: PropTypes.Requireable<string>;
90
92
  title: PropTypes.Requireable<string>;
91
93
  description: PropTypes.Requireable<string>;
92
94
  uploadLabel: PropTypes.Requireable<string>;
@@ -100,6 +100,8 @@ declare namespace SetupSlider {
100
100
  error: PropTypes.Requireable<string>;
101
101
  buttonAriaLabel: PropTypes.Requireable<string>;
102
102
  errorButtonLabel: PropTypes.Requireable<string>;
103
+ labelLink: PropTypes.Requireable<string>;
104
+ hrefLink: PropTypes.Requireable<string>;
103
105
  title: PropTypes.Requireable<string>;
104
106
  description: PropTypes.Requireable<string>;
105
107
  uploadLabel: PropTypes.Requireable<string>;
@@ -15,6 +15,7 @@ declare namespace TitleAndCheckBoxWrapper {
15
15
  subtitle: PropTypes.Requireable<string>;
16
16
  type: PropTypes.Requireable<string>;
17
17
  'data-name': PropTypes.Requireable<string>;
18
+ subtitleSize: PropTypes.Requireable<string>;
18
19
  }>>;
19
20
  const child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
20
21
  childType: PropTypes.Requireable<string>;
@@ -49,6 +50,8 @@ declare namespace TitleAndCheckBoxWrapper {
49
50
  error: PropTypes.Requireable<string>;
50
51
  buttonAriaLabel: PropTypes.Requireable<string>;
51
52
  errorButtonLabel: PropTypes.Requireable<string>;
53
+ labelLink: PropTypes.Requireable<string>;
54
+ hrefLink: PropTypes.Requireable<string>;
52
55
  title: PropTypes.Requireable<string>;
53
56
  description: PropTypes.Requireable<string>;
54
57
  uploadLabel: PropTypes.Requireable<string>;
@@ -34,6 +34,7 @@ declare namespace BrandForm {
34
34
  export const groups: PropTypes.Validator<(PropTypes.InferProps<{
35
35
  title: PropTypes.Requireable<string>;
36
36
  subtitle: PropTypes.Requireable<string>;
37
+ subtitleSize: PropTypes.Requireable<string>;
37
38
  fieldsLayout: PropTypes.Requireable<string>;
38
39
  groupLayout: PropTypes.Requireable<string>;
39
40
  fields: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
@@ -159,6 +160,8 @@ declare namespace BrandForm {
159
160
  error: PropTypes.Requireable<string>;
160
161
  buttonAriaLabel: PropTypes.Requireable<string>;
161
162
  errorButtonLabel: PropTypes.Requireable<string>;
163
+ labelLink: PropTypes.Requireable<string>;
164
+ hrefLink: PropTypes.Requireable<string>;
162
165
  title: PropTypes.Requireable<string>;
163
166
  description: PropTypes.Requireable<string>;
164
167
  uploadLabel: PropTypes.Requireable<string>;
@@ -272,6 +275,8 @@ declare namespace BrandForm {
272
275
  error: PropTypes.Requireable<string>;
273
276
  buttonAriaLabel: PropTypes.Requireable<string>;
274
277
  errorButtonLabel: PropTypes.Requireable<string>;
278
+ labelLink: PropTypes.Requireable<string>;
279
+ hrefLink: PropTypes.Requireable<string>;
275
280
  title: PropTypes.Requireable<string>;
276
281
  description: PropTypes.Requireable<string>;
277
282
  uploadLabel: PropTypes.Requireable<string>;
@@ -18,6 +18,7 @@ declare namespace RewardsForm {
18
18
  subtitle: PropTypes.Requireable<string>;
19
19
  type: PropTypes.Requireable<string>;
20
20
  'data-name': PropTypes.Requireable<string>;
21
+ subtitleSize: PropTypes.Requireable<string>;
21
22
  }>>;
22
23
  child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
23
24
  childType: PropTypes.Requireable<string>;
@@ -52,6 +53,8 @@ declare namespace RewardsForm {
52
53
  error: PropTypes.Requireable<string>;
53
54
  buttonAriaLabel: PropTypes.Requireable<string>;
54
55
  errorButtonLabel: PropTypes.Requireable<string>;
56
+ labelLink: PropTypes.Requireable<string>;
57
+ hrefLink: PropTypes.Requireable<string>;
55
58
  title: PropTypes.Requireable<string>;
56
59
  description: PropTypes.Requireable<string>;
57
60
  uploadLabel: PropTypes.Requireable<string>;
@@ -12,7 +12,7 @@ declare namespace WizardContents {
12
12
  done: PropTypes.Requireable<boolean>;
13
13
  current: PropTypes.Requireable<boolean>;
14
14
  }> | null | undefined)[]>;
15
- const summary: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
15
+ const summary: PropTypes.Requireable<PropTypes.InferProps<{
16
16
  title: PropTypes.Requireable<string>;
17
17
  side: PropTypes.Requireable<string>;
18
18
  sections: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -45,12 +45,13 @@ declare namespace WizardContents {
45
45
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
46
46
  'aria-label': PropTypes.Requireable<string>;
47
47
  }>>;
48
- }>>>;
48
+ }>>;
49
49
  const content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
50
50
  type: PropTypes.Requireable<string>;
51
51
  groups: PropTypes.Validator<(PropTypes.InferProps<{
52
52
  title: PropTypes.Requireable<string>;
53
53
  subtitle: PropTypes.Requireable<string>;
54
+ subtitleSize: PropTypes.Requireable<string>;
54
55
  fieldsLayout: PropTypes.Requireable<string>;
55
56
  groupLayout: PropTypes.Requireable<string>;
56
57
  fields: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
@@ -176,6 +177,8 @@ declare namespace WizardContents {
176
177
  error: PropTypes.Requireable<string>;
177
178
  buttonAriaLabel: PropTypes.Requireable<string>;
178
179
  errorButtonLabel: PropTypes.Requireable<string>;
180
+ labelLink: PropTypes.Requireable<string>;
181
+ hrefLink: PropTypes.Requireable<string>;
179
182
  title: PropTypes.Requireable<string>;
180
183
  description: PropTypes.Requireable<string>;
181
184
  uploadLabel: PropTypes.Requireable<string>;
@@ -289,6 +292,8 @@ declare namespace WizardContents {
289
292
  error: PropTypes.Requireable<string>;
290
293
  buttonAriaLabel: PropTypes.Requireable<string>;
291
294
  errorButtonLabel: PropTypes.Requireable<string>;
295
+ labelLink: PropTypes.Requireable<string>;
296
+ hrefLink: PropTypes.Requireable<string>;
292
297
  title: PropTypes.Requireable<string>;
293
298
  description: PropTypes.Requireable<string>;
294
299
  uploadLabel: PropTypes.Requireable<string>;
@@ -640,6 +645,7 @@ declare namespace WizardContents {
640
645
  subtitle: PropTypes.Requireable<string>;
641
646
  type: PropTypes.Requireable<string>;
642
647
  'data-name': PropTypes.Requireable<string>;
648
+ subtitleSize: PropTypes.Requireable<string>;
643
649
  }>>;
644
650
  child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
645
651
  childType: PropTypes.Requireable<string>;
@@ -674,6 +680,8 @@ declare namespace WizardContents {
674
680
  error: PropTypes.Requireable<string>;
675
681
  buttonAriaLabel: PropTypes.Requireable<string>;
676
682
  errorButtonLabel: PropTypes.Requireable<string>;
683
+ labelLink: PropTypes.Requireable<string>;
684
+ hrefLink: PropTypes.Requireable<string>;
677
685
  title: PropTypes.Requireable<string>;
678
686
  description: PropTypes.Requireable<string>;
679
687
  uploadLabel: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/wizard-contents/index.js"],"names":[],"mappings":";AAkGA,yDA6BC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/wizard-contents/index.js"],"names":[],"mappings":";AAmGA,yDAmCC"}