@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.
- package/es/atom/drag-and-drop/style.css +14 -9
- package/es/atom/image-upload/index.d.ts +6 -1
- package/es/atom/image-upload/index.d.ts.map +1 -1
- package/es/atom/image-upload/index.js +24 -4
- package/es/atom/image-upload/index.js.map +1 -1
- package/es/atom/image-upload/style.css +7 -0
- package/es/atom/title/index.d.ts +1 -0
- package/es/atom/title/index.d.ts.map +1 -1
- package/es/atom/title/index.js +14 -5
- package/es/atom/title/index.js.map +1 -1
- package/es/atom/title/style.css +6 -0
- package/es/molecule/brand-form-group/index.d.ts +5 -0
- package/es/molecule/brand-form-group/index.d.ts.map +1 -1
- package/es/molecule/brand-form-group/index.js +4 -1
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/style.css +9 -10
- package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
- package/es/molecule/setup-slide/index.d.ts +2 -0
- package/es/molecule/setup-slider/index.d.ts +2 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +3 -0
- package/es/organism/brand-form/index.d.ts +5 -0
- package/es/organism/rewards-form/index.d.ts +3 -0
- package/es/organism/wizard-contents/index.d.ts +10 -2
- package/es/organism/wizard-contents/index.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.js +9 -4
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/organism/wizard-contents/style.css +36 -4
- package/es/template/back-office/brand-update/index.d.ts +15 -2
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/lib/atom/drag-and-drop/style.css +14 -9
- package/lib/atom/image-upload/index.d.ts +6 -1
- package/lib/atom/image-upload/index.d.ts.map +1 -1
- package/lib/atom/image-upload/index.js +25 -4
- package/lib/atom/image-upload/index.js.map +1 -1
- package/lib/atom/image-upload/style.css +7 -0
- package/lib/atom/title/index.d.ts +1 -0
- package/lib/atom/title/index.d.ts.map +1 -1
- package/lib/atom/title/index.js +14 -5
- package/lib/atom/title/index.js.map +1 -1
- package/lib/atom/title/style.css +6 -0
- package/lib/molecule/brand-form-group/index.d.ts +5 -0
- package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
- package/lib/molecule/brand-form-group/index.js +4 -1
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/style.css +9 -10
- package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
- package/lib/molecule/setup-slide/index.d.ts +2 -0
- package/lib/molecule/setup-slider/index.d.ts +2 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +3 -0
- package/lib/organism/brand-form/index.d.ts +5 -0
- package/lib/organism/rewards-form/index.d.ts +3 -0
- package/lib/organism/wizard-contents/index.d.ts +10 -2
- package/lib/organism/wizard-contents/index.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.js +9 -4
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/organism/wizard-contents/style.css +36 -4
- package/lib/template/back-office/brand-update/index.d.ts +15 -2
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/package.json +2 -2
- package/locales/.mtslconfig.json +0 -1
package/lib/atom/title/index.js
CHANGED
|
@@ -21,13 +21,20 @@ const getTitleStype = type => {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
const getSubtitleStype = type => {
|
|
24
|
+
const getSubtitleStype = (type, size) => {
|
|
25
25
|
switch (type) {
|
|
26
26
|
case 'page':
|
|
27
27
|
return _style.default.subtitlePage;
|
|
28
28
|
|
|
29
29
|
case 'form-group':
|
|
30
|
-
|
|
30
|
+
switch (size) {
|
|
31
|
+
case 'standard':
|
|
32
|
+
return _style.default.subtitleFormGroup;
|
|
33
|
+
|
|
34
|
+
case 'small':
|
|
35
|
+
return _style.default.smallSubtitleFormGroup;
|
|
36
|
+
}
|
|
37
|
+
|
|
31
38
|
}
|
|
32
39
|
};
|
|
33
40
|
|
|
@@ -36,10 +43,11 @@ const Title = props => {
|
|
|
36
43
|
title,
|
|
37
44
|
subtitle,
|
|
38
45
|
type,
|
|
39
|
-
'data-name': dataName
|
|
46
|
+
'data-name': dataName,
|
|
47
|
+
subtitleSize = 'standard'
|
|
40
48
|
} = props;
|
|
41
49
|
const titleStyle = getTitleStype(type);
|
|
42
|
-
const subtitleStyle = getSubtitleStype(type);
|
|
50
|
+
const subtitleStyle = getSubtitleStype(type, subtitleSize);
|
|
43
51
|
const subtitleSection = subtitle ? /*#__PURE__*/_react.default.createElement("div", {
|
|
44
52
|
className: subtitleStyle
|
|
45
53
|
}, subtitle) : null;
|
|
@@ -53,7 +61,8 @@ Title.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
53
61
|
title: _propTypes.default.string,
|
|
54
62
|
subtitle: _propTypes.default.string,
|
|
55
63
|
type: _propTypes.default.oneOf(['page', 'form-group']),
|
|
56
|
-
'data-name': _propTypes.default.string
|
|
64
|
+
'data-name': _propTypes.default.string,
|
|
65
|
+
subtitleSize: _propTypes.default.string
|
|
57
66
|
} : {};
|
|
58
67
|
var _default = Title;
|
|
59
68
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["getTitleStype","type","style","titlePage","titleFormGroup","getSubtitleStype","subtitlePage","subtitleFormGroup","Title","props","title","subtitle","dataName","titleStyle","subtitleStyle","subtitleSection","propTypes","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;;AACA;;AACA;;;;AAEA,MAAMA,aAAa,GAAGC,IAAI,IAAI;EAC5B,QAAQA,IAAR;IACE,KAAK,MAAL;MACE,OAAOC,cAAA,CAAMC,SAAb;;IACF,KAAK,YAAL;MACE,OAAOD,cAAA,CAAME,cAAb;EAJJ;AAMD,CAPD;;AASA,MAAMC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","names":["getTitleStype","type","style","titlePage","titleFormGroup","getSubtitleStype","size","subtitlePage","subtitleFormGroup","smallSubtitleFormGroup","Title","props","title","subtitle","dataName","subtitleSize","titleStyle","subtitleStyle","subtitleSection","propTypes","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;;AACA;;AACA;;;;AAEA,MAAMA,aAAa,GAAGC,IAAI,IAAI;EAC5B,QAAQA,IAAR;IACE,KAAK,MAAL;MACE,OAAOC,cAAA,CAAMC,SAAb;;IACF,KAAK,YAAL;MACE,OAAOD,cAAA,CAAME,cAAb;EAJJ;AAMD,CAPD;;AASA,MAAMC,gBAAgB,GAAG,CAACJ,IAAD,EAAOK,IAAP,KAAgB;EACvC,QAAQL,IAAR;IACE,KAAK,MAAL;MACE,OAAOC,cAAA,CAAMK,YAAb;;IACF,KAAK,YAAL;MACE,QAAQD,IAAR;QACE,KAAK,UAAL;UACE,OAAOJ,cAAA,CAAMM,iBAAb;;QACF,KAAK,OAAL;UACE,OAAON,cAAA,CAAMO,sBAAb;MAJJ;;EAJJ;AAWD,CAZD;;AAcA,MAAMC,KAAK,GAAGC,KAAK,IAAI;EACrB,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBZ,IAAlB;IAAwB,aAAaa,QAArC;IAA+CC,YAAY,GAAG;EAA9D,IAA4EJ,KAAlF;EACA,MAAMK,UAAU,GAAGhB,aAAa,CAACC,IAAD,CAAhC;EACA,MAAMgB,aAAa,GAAGZ,gBAAgB,CAACJ,IAAD,EAAOc,YAAP,CAAtC;EAEA,MAAMG,eAAe,GAAGL,QAAQ,gBAAG;IAAK,SAAS,EAAEI;EAAhB,GAAgCJ,QAAhC,CAAH,GAAqD,IAArF;EAEA,oBACE,uDACE;IAAK,SAAS,EAAEG,UAAhB;IAA4B,aAAWF;EAAvC,GACGF,KADH,CADF,EAIGM,eAJH,CADF;AAQD,CAfD;;AAiBAR,KAAK,CAACS,SAAN,2CAAkB;EAChBP,KAAK,EAAEQ,kBAAA,CAAUC,MADD;EAEhBR,QAAQ,EAAEO,kBAAA,CAAUC,MAFJ;EAGhBpB,IAAI,EAAEmB,kBAAA,CAAUE,KAAV,CAAgB,CAAC,MAAD,EAAS,YAAT,CAAhB,CAHU;EAIhB,aAAaF,kBAAA,CAAUC,MAJP;EAKhBN,YAAY,EAAEK,kBAAA,CAAUC;AALR,CAAlB;eAOeX,K"}
|
package/lib/atom/title/style.css
CHANGED
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/brand-form-group/index.js"],"names":[],"mappings":";AAmGA,yDAsBC"}
|
|
@@ -166,7 +166,8 @@ const BrandFormGroup = props => {
|
|
|
166
166
|
subtitle = '',
|
|
167
167
|
fieldsLayout = '',
|
|
168
168
|
groupLayout = '',
|
|
169
|
-
fields = []
|
|
169
|
+
fields = [],
|
|
170
|
+
subtitleSize = 'standard'
|
|
170
171
|
} = props;
|
|
171
172
|
|
|
172
173
|
const fieldsList = _map2.default.convert({
|
|
@@ -181,6 +182,7 @@ const BrandFormGroup = props => {
|
|
|
181
182
|
}, /*#__PURE__*/_react.default.createElement(_title.default, {
|
|
182
183
|
title: title,
|
|
183
184
|
subtitle: subtitle,
|
|
185
|
+
subtitleSize: subtitleSize,
|
|
184
186
|
type: 'form-group'
|
|
185
187
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
186
188
|
className: fieldsLayout === 'grid' ? _style.default.grid : null
|
|
@@ -190,6 +192,7 @@ const BrandFormGroup = props => {
|
|
|
190
192
|
BrandFormGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
191
193
|
title: _propTypes.default.string,
|
|
192
194
|
subtitle: _propTypes.default.string,
|
|
195
|
+
subtitleSize: _propTypes.default.string,
|
|
193
196
|
fieldsLayout: _propTypes.default.string,
|
|
194
197
|
groupLayout: _propTypes.default.string,
|
|
195
198
|
fields: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_extends({}, _autocomplete.default.propTypes, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["inputContainerStyle","default","style","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","classNames","wrapper","groupGrid","titleWrapper","grid","propTypes","PropTypes","string","arrayOf","oneOfType","shape","Autocomplete","oneOf","InputColor","InputReadonly","InputSwitch","InputTextarea","InputHTML","InputDoublestep","Select","InputCheckbox","ImageUpload","SetupSlider","SetupSections","InputText","BrandDownloadBox","BrandUploadBox","Button","ButtonLink","SelectMultiple","Roles"],"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;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,mBAAmB,GAAG;EAC1BC,OAAO,EAAEC,cAAA,CAAMC,YADW;EAE1BC,MAAM,EAAEF,cAAA,CAAMG,WAFY;EAG1BC,KAAK,EAAEJ,cAAA,CAAMK;AAHa,CAA5B;;AAMA,MAAMC,UAAU,GAAGC,KAAK,IAAI;EAC1B,MAAM;IAACC;EAAD,IAASD,KAAf;;EAEA,QAAQC,IAAR;IACE,KAAK,cAAL;MACE,oBAAO,6BAAC,qBAAD,EAAkBD,KAAlB,CAAP;;IACF,KAAK,OAAL;MACE,oBAAO,6BAAC,mBAAD,EAAgBA,KAAhB,CAAP;;IACF,KAAK,UAAL;MACE,oBAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,oBAAD,EAAiBA,KAAjB,CAAP;;IACF,KAAK,UAAL;MACE,oBAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;IACF,KAAK,MAAL;MACE,oBAAO,6BAAC,kBAAD,EAAeA,KAAf,CAAP;;IACF,KAAK,YAAL;MACE,oBAAO,6BAAC,wBAAD,EAAqBA,KAArB,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,eAAYA,KAAZ;QAAmB,KAAK,EAAE;MAA1B,GAAP;;IACF,KAAK,gBAAL;MACE,oBAAO,6BAAC,uBAAD,EAAoBA,KAApB,CAAP;;IACF,KAAK,UAAL;MACE,oBAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;IACF,KAAK,OAAL;MACE,oB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AAI,EAAEyB,kBAAA,CAAUM,KAAV,CAAgB,CAAC,YAAD,CAAhB;EAHR,GArEkB,EA0ElBN,kBAAA,CAAUI,KAAV,cACKmB,uBAAA,CAAexB,SADpB;IAEExB,IAAI,EAAEyB,kBAAA,CAAUM,KAAV,CAAgB,CAAC,gBAAD,CAAhB;EAFR,GA1EkB,EA8ElBN,kBAAA,CAAUI,KAAV,cACKoB,0BAAA,CAAMzB,SADX;IAEExB,IAAI,EAAEyB,kBAAA,CAAUM,KAAV,CAAgB,CAAC,OAAD,CAAhB;EAFR,GA9EkB,EAkFlBN,kBAAA,CAAUI,KAAV,CAAgBc,kBAAA,CAAUnB,SAA1B,CAlFkB,CAApB,CADM;AALiB,CAA3B;eA4Fef,c"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["inputContainerStyle","default","style","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","classNames","wrapper","groupGrid","titleWrapper","grid","propTypes","PropTypes","string","arrayOf","oneOfType","shape","Autocomplete","oneOf","InputColor","InputReadonly","InputSwitch","InputTextarea","InputHTML","InputDoublestep","Select","InputCheckbox","ImageUpload","SetupSlider","SetupSections","InputText","BrandDownloadBox","BrandUploadBox","Button","ButtonLink","SelectMultiple","Roles"],"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"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,mBAAmB,GAAG;EAC1BC,OAAO,EAAEC,cAAA,CAAMC,YADW;EAE1BC,MAAM,EAAEF,cAAA,CAAMG,WAFY;EAG1BC,KAAK,EAAEJ,cAAA,CAAMK;AAHa,CAA5B;;AAMA,MAAMC,UAAU,GAAGC,KAAK,IAAI;EAC1B,MAAM;IAACC;EAAD,IAASD,KAAf;;EAEA,QAAQC,IAAR;IACE,KAAK,cAAL;MACE,oBAAO,6BAAC,qBAAD,EAAkBD,KAAlB,CAAP;;IACF,KAAK,OAAL;MACE,oBAAO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space-evenly;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.grid .field {
|
|
46
|
-
margin-right: 20px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
45
|
.field {
|
|
50
|
-
|
|
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
|
-
|
|
78
|
-
|
|
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.
|
|
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":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/wizard-contents/index.js"],"names":[],"mappings":";AAmGA,yDAmCC"}
|
|
@@ -146,10 +146,10 @@ const WizardContents = props => {
|
|
|
146
146
|
className: _style.default.container,
|
|
147
147
|
"data-name": "content-summary"
|
|
148
148
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
149
|
-
className: _style.default.leftSection
|
|
149
|
+
className: summary ? _style.default.leftSection : _style.default.leftSectionWithoutSummary
|
|
150
150
|
}, headerView, /*#__PURE__*/_react.default.createElement("div", {
|
|
151
151
|
className: _style.default.form
|
|
152
|
-
}, formView)), /*#__PURE__*/_react.default.createElement("div", {
|
|
152
|
+
}, formView)), summary ? /*#__PURE__*/_react.default.createElement("div", {
|
|
153
153
|
className: _style.default.rightSection,
|
|
154
154
|
"data-name": "summary-right-section"
|
|
155
155
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -159,7 +159,7 @@ const WizardContents = props => {
|
|
|
159
159
|
"data-name": "summary-zone"
|
|
160
160
|
}, /*#__PURE__*/_react.default.createElement(_wizardSummary.default, _extends({}, summary, {
|
|
161
161
|
side: 'right'
|
|
162
|
-
}))), rightActionView)), /*#__PURE__*/_react.default.createElement("div", {
|
|
162
|
+
}))), rightActionView)) : null, summary ? /*#__PURE__*/_react.default.createElement("div", {
|
|
163
163
|
className: _style.default.footer,
|
|
164
164
|
"data-name": "summary-footer-section"
|
|
165
165
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -168,6 +168,11 @@ const WizardContents = props => {
|
|
|
168
168
|
side: 'footer'
|
|
169
169
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
170
170
|
className: _style.default.actionFooter
|
|
171
|
+
}, footerActionView)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
172
|
+
className: _style.default.footerWithoutSummary,
|
|
173
|
+
"data-name": "footer-section"
|
|
174
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
175
|
+
className: _style.default.actionFooterWithoutSummary
|
|
171
176
|
}, footerActionView)));
|
|
172
177
|
};
|
|
173
178
|
|
|
@@ -178,7 +183,7 @@ WizardContents.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
178
183
|
onClick: _propTypes.default.func
|
|
179
184
|
}).isRequired,
|
|
180
185
|
steps: _wizardSteps.default.propTypes.steps,
|
|
181
|
-
summary: _propTypes.default.shape(_extends({}, _wizardSummary.default.propTypes))
|
|
186
|
+
summary: _propTypes.default.shape(_extends({}, _wizardSummary.default.propTypes)),
|
|
182
187
|
content: _propTypes.default.oneOfType([_propTypes.default.shape(_extends({}, _brandForm.default.propTypes, {
|
|
183
188
|
type: _propTypes.default.oneOf(['form'])
|
|
184
189
|
})), _propTypes.default.shape(_extends({}, _contentTranslation.default.propTypes, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","style","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","getOr","nextButton","actionZone","button","WizardContents","props","isLoading","summary","headerView","formView","rightActionView","footerActionView","container","leftSection","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","propTypes","PropTypes","bool","shape","string","func","isRequired","WizardSteps","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm"],"sources":["../../../src/organism/wizard-contents/index.js"],"sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport RewardsForm from '../rewards-form';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n case 'rewards':\n return <RewardsForm {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n\n return (\n <div className={style.container} data-name=\"content-summary\">\n <div className={style.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n <div className={style.footer} data-name=\"summary-footer-section\">\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n <div className={style.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n }),\n PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;EAC3C,MAAM;IAACC,KAAD;IAAQC;EAAR,IAAmBH,YAAzB;EAEA,MAAMI,eAAe,GAAG;IACtBC,IAAI,EAAE,OADgB;IAEtB,aAAa,cAFS;IAGtB,cAAc,cAHQ;IAItBC,IAAI,EAAE,OAJgB;IAKtBH;EALsB,CAAxB;EAQA,oBACE,uDACE;IAAK,SAAS,EAAEI,cAAA,CAAMC;EAAtB,gBACE,6BAAC,2BAAD,EAAwBJ,eAAxB,CADF,eAEE;IAAK,SAAS,EAAEG,cAAA,CAAME,WAAtB;IAAmC,aAAW;EAA9C,GACGP,KADH,CAFF,CADF,eAOE,6BAAC,oBAAD;IAAa,KAAK,EAAED;EAApB,EAPF,CADF;AAWD,CAtBD;;AAwBA,MAAMS,SAAS,GAAGC,OAAO,IAAI;EAC3B,MAAM;IAACC;EAAD,IAASD,OAAf;;EACA,QAAQC,IAAR;IACE,KAAK,MAAL;MACE,oBAAO,6BAAC,kBAAD,EAAeD,OAAf,CAAP;;IACF,KAAK,WAAL;MACE,oBAAO,6BAAC,2BAAD,EAAsBA,OAAtB,CAAP;;IACF,KAAK,aAAL;MACE,oBAAO,6BAAC,8BAAD,EAAmCA,OAAnC,CAAP;;IACF,KAAK,SAAL;MACE,oBAAO,6BAAC,wBAAD,EAAqBA,OAArB,CAAP;;IACF,KAAK,kBAAL;MACE,oBAAO,6BAAC,uBAAD,EAAoBA,OAApB,CAAP;;IACF,KAAK,SAAL;MACE,oBAAO,6BAAC,oBAAD,EAAiBA,OAAjB,CAAP;EAZJ;AAcD,CAhBD;;AAkBA,MAAME,WAAW,GAAG,CAACD,IAA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UU,KAAV,CAAgB,CAAC,SAAD,CAAhB;EAFR,GArB2B,CAApB,CAVgB;EAoCzBpC,YAAY,EAAE0B,kBAAA,CAAUE,KAAV,CAAgB;IAC5B/B,KAAK,EAAE6B,kBAAA,CAAUG,MADW;IAE5BlD,OAAO,EAAE+C,kBAAA,CAAUI;EAFS,CAAhB,CApCW;EAwCzB7B,QAAQ,EAAEyB,kBAAA,CAAUE,KAAV,CAAgB;IACxBxC,IAAI,EAAEsC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;IAExBvC,KAAK,EAAE6B,kBAAA,CAAUG,MAFO;IAGxBlD,OAAO,EAAE+C,kBAAA,CAAUI;EAHK,CAAhB;AAxCe,CAA3B;eA+CetB,c"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","style","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","getOr","nextButton","actionZone","button","WizardContents","props","isLoading","summary","headerView","formView","rightActionView","footerActionView","container","leftSection","leftSectionWithoutSummary","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","footerWithoutSummary","actionFooterWithoutSummary","propTypes","PropTypes","bool","shape","string","func","isRequired","WizardSteps","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm"],"sources":["../../../src/organism/wizard-contents/index.js"],"sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport RewardsForm from '../rewards-form';\nimport style from './style.css';\nimport isEmpty from 'lodash/fp/isEmpty';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n case 'rewards':\n return <RewardsForm {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n\n\n return (\n <div className={style.container} data-name=\"content-summary\">\n <div className={summary ? style.leftSection: style.leftSectionWithoutSummary}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n {summary ? (\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n ) : null}\n {summary ? ( <div className={style.footer} data-name=\"summary-footer-section\">\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n <div className={style.actionFooter}>{footerActionView}</div>\n </div>\n ) : ( <div className={style.footerWithoutSummary} data-name=\"footer-section\">\n <div className={style.actionFooterWithoutSummary}>{footerActionView}</div>\n </div>)}\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n }),\n PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAGA,MAAMA,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;EAC3C,MAAM;IAACC,KAAD;IAAQC;EAAR,IAAmBH,YAAzB;EAEA,MAAMI,eAAe,GAAG;IACtBC,IAAI,EAAE,OADgB;IAEtB,aAAa,cAFS;IAGtB,cAAc,cAHQ;IAItBC,IAAI,EAAE,OAJgB;IAKtBH;EALsB,CAAxB;EAQA,oBACE,uDACE;IAAK,SAAS,EAAEI,cAAA,CAAMC;EAAtB,gBACE,6BAAC,2BAAD,EAAwBJ,eAAxB,CADF,eAEE;IAAK,SAAS,EAAEG,cAAA,CAAME,WAAtB;IAAmC,aAAW;EAA9C,GACGP,KADH,CAFF,CADF,eAOE,6BAAC,oBAAD;IAAa,KAAK,EAAED;EAApB,EAPF,CADF;AAWD,CAtBD;;AAwBA,MAAMS,SAAS,GAAGC,OAAO,IAAI;EAC3B,MAAM;IAACC;EAAD,IAASD,OAAf;;EACA,QAAQC,IAAR;IACE,KAAK,MAAL;MACE,oBAAO,6BAAC,kBAAD,EAAeD,OAAf,CAAP;;IACF,KAAK,WAAL;MACE,oBAAO,6BAAC,2BAAD,EAAsBA,OAAtB,CAAP;;IACF,KAAK,aAAL;MACE,oBAAO,6BAAC,8BAAD,EAAmCA,OAAnC,CAAP;;IACF,KAAK,SAAL;MACE,oBAAO,6BAAC,wBAAD,EAAqBA,OAArB,CAAP;;IACF,KAAK,kBAAL;MACE,oBAAO,6BAAC,uBAAD,EAAoBA,OAApB,CAAP;;IACF,KAAK,SAAL;MACE,oBAAO,6BAAC,oBAAD,EAAiBA,OAAjB,CAAP;EAZJ;AAcD,CAhBD;;AAkBA,MAAME,WAAW,GA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,GAb2B,EAiB3BV,kBAAA,CAAUE,KAAV,cACKY,uBAAA,CAAef,SADpB;IAEExC,IAAI,EAAEyC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,kBAAD,CAAhB;EAFR,GAjB2B,EAqB3BV,kBAAA,CAAUE,KAAV,cACKa,oBAAA,CAAYhB,SADjB;IAEExC,IAAI,EAAEyC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,SAAD,CAAhB;EAFR,GArB2B,CAApB,CAVgB;EAoCzBvC,YAAY,EAAE6B,kBAAA,CAAUE,KAAV,CAAgB;IAC5BlC,KAAK,EAAEgC,kBAAA,CAAUG,MADW;IAE5BrD,OAAO,EAAEkD,kBAAA,CAAUI;EAFS,CAAhB,CApCW;EAwCzBhC,QAAQ,EAAE4B,kBAAA,CAAUE,KAAV,CAAgB;IACxB3C,IAAI,EAAEyC,kBAAA,CAAUU,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;IAExB1C,KAAK,EAAEgC,kBAAA,CAAUG,MAFO;IAGxBrD,OAAO,EAAEkD,kBAAA,CAAUI;EAHK,CAAhB;AAxCe,CAA3B;eA+CezB,c"}
|
|
@@ -22,6 +22,15 @@
|
|
|
22
22
|
position: relative;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.leftSectionWithoutSummary {
|
|
26
|
+
display: block;
|
|
27
|
+
overflow: auto;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
.rightSection {
|
|
26
35
|
height: 100%;
|
|
27
36
|
padding-bottom: 58px;
|
|
@@ -69,12 +78,22 @@
|
|
|
69
78
|
.actionZone {
|
|
70
79
|
width: 100%;
|
|
71
80
|
display: flex;
|
|
72
|
-
justify-content:
|
|
81
|
+
justify-content: center;
|
|
73
82
|
margin: 16px 0;
|
|
83
|
+
flex-wrap: wrap;
|
|
74
84
|
}
|
|
75
85
|
|
|
76
86
|
.button {
|
|
77
|
-
width:
|
|
87
|
+
width: 100%;
|
|
88
|
+
max-width: 184px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.footerWithoutSummary {
|
|
92
|
+
width: 100%;
|
|
93
|
+
bottom: 0px;
|
|
94
|
+
position: inherit;
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: flex-end;
|
|
78
97
|
}
|
|
79
98
|
|
|
80
99
|
.footer {
|
|
@@ -84,6 +103,16 @@
|
|
|
84
103
|
position: inherit;
|
|
85
104
|
}
|
|
86
105
|
|
|
106
|
+
.actionFooterWithoutSummary {
|
|
107
|
+
width: 100%;
|
|
108
|
+
display: flex;
|
|
109
|
+
right: 0;
|
|
110
|
+
max-width: 184px;
|
|
111
|
+
bottom: -10px;
|
|
112
|
+
position: sticky;
|
|
113
|
+
position: absolute;
|
|
114
|
+
}
|
|
115
|
+
|
|
87
116
|
@media desktop, tablet {
|
|
88
117
|
.leftSection {
|
|
89
118
|
width: 100%;
|
|
@@ -94,13 +123,14 @@
|
|
|
94
123
|
display: none;
|
|
95
124
|
}
|
|
96
125
|
|
|
97
|
-
.footer
|
|
126
|
+
.footer {
|
|
98
127
|
display: flex;
|
|
99
128
|
align-items: flex-end;
|
|
100
129
|
bottom: 10px;
|
|
101
130
|
position: sticky;
|
|
102
131
|
z-index: 1;
|
|
103
132
|
}
|
|
133
|
+
|
|
104
134
|
.footer::before {
|
|
105
135
|
content: '';
|
|
106
136
|
background: linear-gradient(to top,white 64px, #ffffff00 );
|
|
@@ -118,8 +148,10 @@
|
|
|
118
148
|
}
|
|
119
149
|
|
|
120
150
|
.actionFooter {
|
|
121
|
-
width:
|
|
151
|
+
max-width: 184px;
|
|
152
|
+
width: 100%;
|
|
122
153
|
}
|
|
154
|
+
|
|
123
155
|
.actionZone {
|
|
124
156
|
margin: 0;
|
|
125
157
|
}
|