@coorpacademy/components 11.9.2-alpha.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/review-presentation/index.d.ts.map +1 -1
- package/es/atom/review-presentation/index.js +62 -12
- package/es/atom/review-presentation/index.js.map +1 -1
- package/es/atom/review-presentation/style.css +67 -7
- 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/activity/engine-stars.css +33 -16
- package/es/template/activity/engine-stars.d.ts +17 -15
- package/es/template/activity/engine-stars.d.ts.map +1 -1
- package/es/template/activity/engine-stars.js +115 -128
- package/es/template/activity/engine-stars.js.map +1 -1
- package/es/template/activity/index.d.ts +0 -1
- package/es/template/activity/index.d.ts.map +1 -1
- package/es/template/activity/index.js +9 -18
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/progression-item.js +1 -1
- package/es/template/activity/progression-item.js.map +1 -1
- package/es/template/activity/stars-summary.d.ts +0 -1
- package/es/template/activity/stars-summary.d.ts.map +1 -1
- package/es/template/activity/stars-summary.js +5 -10
- package/es/template/activity/stars-summary.js.map +1 -1
- 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/review-presentation/index.d.ts.map +1 -1
- package/lib/atom/review-presentation/index.js +66 -13
- package/lib/atom/review-presentation/index.js.map +1 -1
- package/lib/atom/review-presentation/style.css +67 -7
- 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/activity/engine-stars.css +33 -16
- package/lib/template/activity/engine-stars.d.ts +17 -15
- package/lib/template/activity/engine-stars.d.ts.map +1 -1
- package/lib/template/activity/engine-stars.js +116 -135
- package/lib/template/activity/engine-stars.js.map +1 -1
- package/lib/template/activity/index.d.ts +0 -1
- package/lib/template/activity/index.d.ts.map +1 -1
- package/lib/template/activity/index.js +9 -21
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/progression-item.js +1 -1
- package/lib/template/activity/progression-item.js.map +1 -1
- package/lib/template/activity/stars-summary.d.ts +0 -1
- package/lib/template/activity/stars-summary.d.ts.map +1 -1
- package/lib/template/activity/stars-summary.js +5 -10
- package/lib/template/activity/stars-summary.js.map +1 -1
- 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/locales/en/global.json +0 -1
- package/package.json +3 -4
- package/es/atom/tooltip/index.d.ts +0 -22
- package/es/atom/tooltip/index.d.ts.map +0 -1
- package/es/atom/tooltip/index.js +0 -117
- package/es/atom/tooltip/index.js.map +0 -1
- package/es/atom/tooltip/style.css +0 -96
- package/lib/atom/tooltip/index.d.ts +0 -22
- package/lib/atom/tooltip/index.d.ts.map +0 -1
- package/lib/atom/tooltip/index.js +0 -137
- package/lib/atom/tooltip/index.js.map +0 -1
- package/lib/atom/tooltip/style.css +0 -96
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ICONS","skills","TargetIcon","questions","QuestionIcon","lifes","HeartIcon","allright","CheckIcon","ReviewIcon","icon","Icon","getOr","style","labelIcon","
|
|
1
|
+
{"version":3,"file":"index.js","names":["ICONS","skills","TargetIcon","questions","QuestionIcon","lifes","HeartIcon","allright","CheckIcon","ReviewIcon","icon","Icon","getOr","style","labelIcon","ToolTip","tooltipText","moreDetailsAriaLabel","dataTestId","closeToolTipInformationTextAriaLabel","toolTipIsVisible","setToolTipIsVisible","useState","handleKeyPress","useCallback","event","key","handleMouseOver","handleMouseLeave","tooltipContainer","tooltipIconContainer","informationIcon","toolTip","ReviewListItemWrapper","iconKey","label","reviewListItemWrapper","reviewListText","text","ReviewPresentation","props","ariaLabel","reviewTitle","reviewText","labelsList","reviewWrapper","__html","reviewListWrapper","map","convert","cap","reviewList","propTypes","PropTypes","string","shape"],"sources":["../../../src/atom/review-presentation/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport map from 'lodash/fp/map';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidVoteRewardsVoteHeart as HeartIcon,\n NovaCompositionCoorpacademyInformationIcon as InformationIcon,\n NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon,\n NovaLineSelectionCursorsCursorArrowTarget as TargetIcon\n} from '@coorpacademy/nova-icons';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst ICONS = {\n skills: TargetIcon,\n questions: QuestionIcon,\n lifes: HeartIcon,\n allright: CheckIcon\n};\n\nconst ReviewIcon = ({icon}) => {\n const Icon = getOr(null, icon, ICONS);\n\n /* istanbul ignore next */\n if (!Icon) {\n return <div className={style.labelIcon} />;\n }\n return <Icon className={style.labelIcon} />;\n};\n\nconst ToolTip = ({\n tooltipText,\n 'aria-label': moreDetailsAriaLabel,\n 'data-testid': dataTestId,\n closeToolTipInformationTextAriaLabel\n}) => {\n const [toolTipIsVisible, setToolTipIsVisible] = useState(false);\n const handleKeyPress = useCallback(\n event => {\n if (event.key === 'Enter') {\n setToolTipIsVisible(!toolTipIsVisible);\n } else if (event.key === 'Tab' || event.key === 'Escape') {\n setToolTipIsVisible(false);\n }\n },\n [setToolTipIsVisible, toolTipIsVisible]\n );\n const handleMouseOver = useCallback(() => {\n setToolTipIsVisible(true);\n }, [setToolTipIsVisible]);\n\n const handleMouseLeave = useCallback(() => {\n setToolTipIsVisible(false);\n }, [setToolTipIsVisible]);\n\n return (\n <div\n className={style.tooltipContainer}\n onMouseLeave={handleMouseLeave}\n onMouseOver={handleMouseOver}\n >\n <button\n type=\"button\"\n className={style.tooltipIconContainer}\n data-testid={dataTestId}\n onKeyDown={handleKeyPress}\n tabIndex={0}\n >\n <InformationIcon\n className={style.informationIcon}\n width={12}\n height={12}\n aria-label={moreDetailsAriaLabel}\n />\n </button>\n {toolTipIsVisible ? (\n <div\n className={style.toolTip}\n data-testid=\"review-presentation-tooltip\"\n aria-label={closeToolTipInformationTextAriaLabel}\n >\n <p className={style.tooltipText}>{tooltipText}</p>\n </div>\n ) : null}\n </div>\n );\n};\n\nconst ReviewListItemWrapper = ({iconKey, label}) => {\n return (\n <div className={style.reviewListItemWrapper} data-tip data-for=\"reviewListItem\" tabIndex={0}>\n <div className={style.reviewListText}>\n <ReviewIcon icon={iconKey} /> {label.text}\n </div>\n <ToolTip\n tooltipText={label.tooltipText}\n aria-label={label.moreDetailsAriaLabel}\n closeToolTipInformationTextAriaLabel={label.closeToolTipInformationTextAriaLabel}\n data-testid={`review-list-item-tooltip-button-${iconKey}`}\n />\n </div>\n );\n};\n\nconst ReviewPresentation = props => {\n const {'aria-label': ariaLabel, reviewTitle, reviewText, labelsList} = props;\n\n return (\n <div className={style.reviewWrapper} aria-label={ariaLabel}>\n <div\n className={style.reviewTitle}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewTitle}}\n />\n <div\n className={style.reviewText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewText}}\n />\n <ul className={style.reviewListWrapper}>\n {map.convert({cap: false})((label, key) => {\n return (\n <li key={`step-${key}`} className={style.reviewList}>\n <ReviewListItemWrapper\n iconKey={key}\n label={label}\n tooltipText={label.tooltipText}\n aria-label={label.moreDetailsAriaLabel}\n />\n </li>\n );\n }, labelsList)}\n </ul>\n </div>\n );\n};\n\nToolTip.propTypes = {\n tooltipText: PropTypes.string,\n 'aria-label': PropTypes.string,\n 'data-testid': PropTypes.string,\n closeToolTipInformationTextAriaLabel: PropTypes.string\n};\n\nReviewIcon.propTypes = {\n icon: PropTypes.string\n};\n\nReviewListItemWrapper.propTypes = {\n ...ToolTip.propTypes,\n iconKey: PropTypes.string,\n label: PropTypes.shape({\n tooltipText: PropTypes.string,\n moreDetailsAriaLabel: PropTypes.string,\n closeToolTipInformationTextAriaLabel: PropTypes.string\n })\n};\n\nReviewPresentation.propTypes = propTypes;\n\nexport default ReviewPresentation;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAOA;;AACA;;;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,MAAM,EAAEC,oDADI;EAEZC,SAAS,EAAEC,0DAFC;EAGZC,KAAK,EAAEC,wCAHK;EAIZC,QAAQ,EAAEC;AAJE,CAAd;;AAOA,MAAMC,UAAU,GAAG,CAAC;EAACC;AAAD,CAAD,KAAY;EAC7B,MAAMC,IAAI,GAAG,IAAAC,cAAA,EAAM,IAAN,EAAYF,IAAZ,EAAkBV,KAAlB,CAAb;EAEA;;EACA,IAAI,CAACW,IAAL,EAAW;IACT,oBAAO;MAAK,SAAS,EAAEE,cAAA,CAAMC;IAAtB,EAAP;EACD;;EACD,oBAAO,6BAAC,IAAD;IAAM,SAAS,EAAED,cAAA,CAAMC;EAAvB,EAAP;AACD,CARD;;AAUA,MAAMC,OAAO,GAAG,CAAC;EACfC,WADe;EAEf,cAAcC,oBAFC;EAGf,eAAeC,UAHA;EAIfC;AAJe,CAAD,KAKV;EACJ,MAAM,CAACC,gBAAD,EAAmBC,mBAAnB,IAA0C,IAAAC,eAAA,EAAS,KAAT,CAAhD;EACA,MAAMC,cAAc,GAAG,IAAAC,kBAAA,EACrBC,KAAK,IAAI;IACP,IAAIA,KAAK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B,KAAK,CAAClB;IAJpB,EADF,CADF;EAUD,CAXA,EAWE2B,UAXF,CADH,CAXF,CADF;AA4BD,CA/BD;;AAiCA7B,OAAO,CAACqC,SAAR,2CAAoB;EAClBpC,WAAW,EAAEqC,kBAAA,CAAUC,MADL;EAElB,cAAcD,kBAAA,CAAUC,MAFN;EAGlB,eAAeD,kBAAA,CAAUC,MAHP;EAIlBnC,oCAAoC,EAAEkC,kBAAA,CAAUC;AAJ9B,CAApB;AAOA7C,UAAU,CAAC2C,SAAX,2CAAuB;EACrB1C,IAAI,EAAE2C,kBAAA,CAAUC;AADK,CAAvB;AAIArB,qBAAqB,CAACmB,SAAtB,wDACKrC,OAAO,CAACqC,SADb;EAEElB,OAAO,EAAEmB,kBAAA,CAAUC,MAFrB;EAGEnB,KAAK,EAAEkB,kBAAA,CAAUE,KAAV,CAAgB;IACrBvC,WAAW,EAAEqC,kBAAA,CAAUC,MADF;IAErBrC,oBAAoB,EAAEoC,kBAAA,CAAUC,MAFX;IAGrBnC,oCAAoC,EAAEkC,kBAAA,CAAUC;EAH3B,CAAhB;AAHT;AAUAf,kBAAkB,CAACa,SAAnB,2CAA+BA,mBAA/B;eAEeb,kB"}
|
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
@value mobile from breakpoints;
|
|
4
4
|
@value colors: "../../variables/colors.css";
|
|
5
5
|
@value xtraLightGrey from colors;
|
|
6
|
+
@value cm_blue_900 from colors;
|
|
6
7
|
@value cm_grey_75 from colors;
|
|
8
|
+
@value cm_grey_500 from colors;
|
|
9
|
+
@value cm_grey_700 from colors;
|
|
10
|
+
@value white from colors;
|
|
7
11
|
|
|
8
|
-
.reviewWrapper {
|
|
9
|
-
width: 100%;
|
|
10
|
-
border-radius: 16px;
|
|
11
|
-
background-color: xtraLightGrey;
|
|
12
|
-
padding-bottom: 40px;
|
|
13
|
-
}
|
|
14
12
|
|
|
15
13
|
.textBase {
|
|
16
14
|
font-family: "Gilroy";
|
|
@@ -19,6 +17,13 @@
|
|
|
19
17
|
user-select: none;
|
|
20
18
|
}
|
|
21
19
|
|
|
20
|
+
.reviewWrapper {
|
|
21
|
+
width: 100%;
|
|
22
|
+
border-radius: 16px;
|
|
23
|
+
background-color: xtraLightGrey;
|
|
24
|
+
padding-bottom: 40px;
|
|
25
|
+
}
|
|
26
|
+
|
|
22
27
|
.reviewTitle {
|
|
23
28
|
composes: textBase;
|
|
24
29
|
font-weight: 700;
|
|
@@ -72,6 +77,61 @@
|
|
|
72
77
|
width: 16px;
|
|
73
78
|
}
|
|
74
79
|
|
|
80
|
+
.informationIcon {
|
|
81
|
+
color: cm_grey_500;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.toolTip {
|
|
85
|
+
transition: opacity 0.8s;
|
|
86
|
+
position: absolute;
|
|
87
|
+
height: auto;
|
|
88
|
+
width: 200px;
|
|
89
|
+
border-radius: 7px;
|
|
90
|
+
background-color: cm_grey_700;
|
|
91
|
+
right: -81px;
|
|
92
|
+
bottom: 32px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.toolTip::before {
|
|
96
|
+
content: '';
|
|
97
|
+
display: inline-block;
|
|
98
|
+
visibility: inherit;
|
|
99
|
+
opacity: inherit;
|
|
100
|
+
width: 15px;
|
|
101
|
+
height: 15px;
|
|
102
|
+
transform: rotate(-45deg);
|
|
103
|
+
background-color: cm_grey_700;
|
|
104
|
+
position: inherit;
|
|
105
|
+
bottom: -5px;
|
|
106
|
+
right: 40%;
|
|
107
|
+
border-radius: 2px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.tooltipText {
|
|
111
|
+
composes: textBase;
|
|
112
|
+
font-weight: 500;
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
display: inline-block;
|
|
115
|
+
border-radius: 3px;
|
|
116
|
+
word-wrap: break-word;
|
|
117
|
+
color: white;
|
|
118
|
+
padding: 8px 14px;
|
|
119
|
+
text-align: center;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.tooltipContainer {
|
|
123
|
+
overflow: visible;
|
|
124
|
+
position: relative;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.tooltipIconContainer {
|
|
128
|
+
display: flex;
|
|
129
|
+
justify-content: flex-end;
|
|
130
|
+
border: none;
|
|
131
|
+
background: cm_grey_75;
|
|
132
|
+
height: 25px;
|
|
133
|
+
}
|
|
134
|
+
|
|
75
135
|
@media tablet {
|
|
76
136
|
.reviewWrapper{
|
|
77
137
|
width: 100%;
|
|
@@ -82,4 +142,4 @@
|
|
|
82
142
|
.reviewWrapper{
|
|
83
143
|
width: 100%;
|
|
84
144
|
}
|
|
85
|
-
}
|
|
145
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/title/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/title/index.js"],"names":[],"mappings":";AA2BA,gDAeC"}
|
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"],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UC,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;;A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B,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,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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
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, {
|