@coorpacademy/components 10.5.7-alpha.8 → 10.6.1
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/select/index.js +27 -27
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/select/style.css +66 -0
- package/es/atom/select/test/fixtures/coorpmanager.js +11 -0
- package/es/atom/select/test/fixtures/coorpmanager.js.map +1 -0
- package/es/atom/select/test/fixtures.js +2 -0
- package/es/atom/select/test/fixtures.js.map +1 -1
- package/es/molecule/brand-form-group/index.js +3 -1
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/lookandfeel.js +30 -26
- package/es/molecule/brand-form-group/test/fixtures/lookandfeel.js.map +1 -1
- package/es/molecule/card/customer.js +6 -3
- package/es/molecule/card/customer.js.map +1 -1
- package/es/molecule/card/favorite.js +13 -4
- package/es/molecule/card/favorite.js.map +1 -1
- package/es/molecule/card/index.js +41 -12
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/selectable.js +11 -4
- package/es/molecule/card/selectable.js.map +1 -1
- package/es/molecule/card/test/fixtures/default.js +20 -1
- package/es/molecule/card/test/fixtures/default.js.map +1 -1
- package/es/molecule/card-content/index.js +20 -7
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/card-no-progress-bar.js +6 -1
- package/es/molecule/card-content/test/fixtures/card-no-progress-bar.js.map +1 -1
- package/es/molecule/questions/qcm-drag/style.css +0 -1
- package/es/molecule/questions/qcm-graphic/style.css +0 -2
- package/es/molecule/questions/template/index.js +2 -1
- package/es/molecule/questions/template/index.js.map +1 -1
- package/es/molecule/questions/template/style.css +6 -0
- package/es/molecule/wizard-summary/style.css +4 -4
- package/es/variables/colors.css +2 -0
- package/lib/atom/select/index.js +32 -31
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/select/style.css +66 -0
- package/lib/atom/select/test/fixtures/coorpmanager.js +21 -0
- package/lib/atom/select/test/fixtures/coorpmanager.js.map +1 -0
- package/lib/atom/select/test/fixtures.js +3 -0
- package/lib/atom/select/test/fixtures.js.map +1 -1
- package/lib/molecule/brand-form-group/index.js +3 -1
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/lookandfeel.js +30 -26
- package/lib/molecule/brand-form-group/test/fixtures/lookandfeel.js.map +1 -1
- package/lib/molecule/card/customer.js +6 -3
- package/lib/molecule/card/customer.js.map +1 -1
- package/lib/molecule/card/favorite.js +13 -4
- package/lib/molecule/card/favorite.js.map +1 -1
- package/lib/molecule/card/index.js +41 -12
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/selectable.js +11 -4
- package/lib/molecule/card/selectable.js.map +1 -1
- package/lib/molecule/card/test/fixtures/default.js +20 -1
- package/lib/molecule/card/test/fixtures/default.js.map +1 -1
- package/lib/molecule/card-content/index.js +21 -7
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/card-no-progress-bar.js +6 -1
- package/lib/molecule/card-content/test/fixtures/card-no-progress-bar.js.map +1 -1
- package/lib/molecule/questions/qcm-drag/style.css +0 -1
- package/lib/molecule/questions/qcm-graphic/style.css +0 -2
- package/lib/molecule/questions/template/index.js +2 -1
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/questions/template/style.css +6 -0
- package/lib/molecule/wizard-summary/style.css +4 -4
- package/lib/variables/colors.css +2 -0
- package/package.json +2 -2
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
margin: 0 4px 8px;
|
|
28
28
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
|
|
29
29
|
border-radius: 16px;
|
|
30
|
-
transition: background-color 0.25s linear;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
.background {
|
|
@@ -37,7 +36,6 @@
|
|
|
37
36
|
border-radius: 16px;
|
|
38
37
|
height: 100%;
|
|
39
38
|
width: 100%;
|
|
40
|
-
transition: opacity 0.25s linear, background-color 0.25s linear;
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
.content {
|
|
@@ -38,7 +38,8 @@ const Template = ({
|
|
|
38
38
|
|
|
39
39
|
if (type === 'string') {
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
41
|
-
key: key
|
|
41
|
+
key: key,
|
|
42
|
+
className: _style.default.textPart // eslint-disable-next-line react/no-danger
|
|
42
43
|
,
|
|
43
44
|
dangerouslySetInnerHTML: {
|
|
44
45
|
__html: part.value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/molecule/questions/template/index.js"],"names":["Template","template","answers","totalTemplate","templateCompose","convert","cap","part","key","type","__html","value","field","name","fieldType","fieldProps","fieldView","
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/questions/template/index.js"],"names":["Template","template","answers","totalTemplate","templateCompose","convert","cap","part","key","type","style","textPart","__html","value","field","name","fieldType","fieldProps","fieldView","text","answerType","wrapper","TextPropTypes","DropDown","propTypes","PropTypes","string","arrayOf","oneOfType","shape"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,QAAQ,GAAG,CAAC;AAACC,EAAAA,QAAD;AAAWC,EAAAA;AAAX,CAAD,KAAyB;AACxC,QAAMC,aAAa,GAAG,kCAAoBF,QAApB,CAAtB;;AACA,QAAMG,eAAe,GAAG,cAAIC,OAAJ,CAAY;AAACC,IAAAA,GAAG,EAAE;AAAN,GAAZ,EAA0B,CAACC,IAAD,EAAOC,GAAP,KAAe;AAC/D,UAAMC,IAAI,GAAGF,IAAI,CAACE,IAAlB;;AACA,QAAIA,IAAI,KAAK,QAAb,EAAuB;AACrB,0BACE;AACE,QAAA,GAAG,EAAED,GADP;AAEE,QAAA,SAAS,EAAEE,eAAMC,QAFnB,CAGE;AAHF;AAIE,QAAA,uBAAuB,EAAE;AAACC,UAAAA,MAAM,EAAEL,IAAI,CAACM;AAAd;AAJ3B,QADF;AAQD;;AACD,QAAIJ,IAAI,KAAK,aAAb,EAA4B;AAC1B,YAAMK,KAAK,GAAG,oBAAK;AAACC,QAAAA,IAAI,EAAER,IAAI,CAACM;AAAZ,OAAL,EAAyBX,OAAzB,CAAd;AACA,UAAI,CAACY,KAAL,EAAY,OAAO,IAAP;;AACZ,YAAM;AAACL,QAAAA,IAAI,EAAEO;AAAP,UAAmCF,KAAzC;AAAA,YAA2BG,UAA3B,iCAAyCH,KAAzC;;AACA,YAAMI,SAAS,GACbF,SAAS,KAAK,MAAd,gBACE,6BAAC,iBAAD,eAAcC,UAAd;AAA0B,QAAA,SAAS,EAAEP,eAAMS;AAA3C,SADF,gBAGE,6BAAC,iBAAD,eAAcF,UAAd;AAA0B,QAAA,KAAK,EAAC;AAAhC,SAJJ;AAOA,0BACE;AAAK,QAAA,SAAS,EAAEP,eAAMU,UAAtB;AAAkC,QAAA,GAAG,EAAEb,IAAI,CAACM;AAA5C,SACGK,SADH,CADF;AAKD;AACF,GA7BuB,EA6BrBf,aA7BqB,CAAxB;;AA+BA,sBACE;AAAK,iBAAU,kBAAf;AAAkC,IAAA,SAAS,EAAEO,eAAMW;AAAnD,KACGjB,eADH,CADF;AAKD,CAtCD;;AAwCA,MAAMkB,aAAN,iEACKC,kBAASC,SADd;AAEEf,EAAAA,IAAI,EAAEgB,mBAAUC;AAFlB;AAKA1B,QAAQ,CAACwB,SAAT,2CAAqB;AACnBvB,EAAAA,QAAQ,EAAEwB,mBAAUC,MADD;AAEnBxB,EAAAA,OAAO,EAAEuB,mBAAUE,OAAV,CACPF,mBAAUG,SAAV,CAAoB,CAACH,mBAAUI,KAAV,CAAgBN,kBAASC,SAAzB,CAAD,EAAsCC,mBAAUI,KAAV,CAAgBP,aAAhB,CAAtC,CAApB,CADO;AAFU,CAArB;eAOetB,Q","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, find} from 'lodash/fp';\nimport parseTemplateString from '../../../util/parse-template-string';\nimport DropDown from '../drop-down';\nimport FreeText from '../free-text';\nimport style from './style.css';\n\nconst Template = ({template, answers}) => {\n const totalTemplate = parseTemplateString(template);\n const templateCompose = map.convert({cap: false})((part, key) => {\n const type = part.type;\n if (type === 'string') {\n return (\n <span\n key={key}\n className={style.textPart}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: part.value}}\n />\n );\n }\n if (type === 'answerField') {\n const field = find({name: part.value}, answers);\n if (!field) return null;\n const {type: fieldType, ...fieldProps} = field;\n const fieldView =\n fieldType === 'text' ? (\n <FreeText {...fieldProps} className={style.text} />\n ) : (\n <DropDown {...fieldProps} theme=\"player\" />\n );\n\n return (\n <div className={style.answerType} key={part.value}>\n {fieldView}\n </div>\n );\n }\n }, totalTemplate);\n\n return (\n <div data-name=\"template-wrapper\" className={style.wrapper}>\n {templateCompose}\n </div>\n );\n};\n\nconst TextPropTypes = {\n ...DropDown.propTypes,\n type: PropTypes.string\n};\n\nTemplate.propTypes = {\n template: PropTypes.string,\n answers: PropTypes.arrayOf(\n PropTypes.oneOfType([PropTypes.shape(DropDown.propTypes), PropTypes.shape(TextPropTypes)])\n )\n};\n\nexport default Template;\n"],"file":"index.js"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@value breakpoints: "../../../variables/breakpoints.css";
|
|
2
2
|
@value mobile from breakpoints;
|
|
3
3
|
@value tablet from breakpoints;
|
|
4
|
+
@value colors: "../../../variables/colors.css";
|
|
5
|
+
@value cm_blue_900 from colors;
|
|
4
6
|
|
|
5
7
|
.wrapper {
|
|
6
8
|
display: block;
|
|
@@ -15,6 +17,10 @@
|
|
|
15
17
|
text-align: center;
|
|
16
18
|
}
|
|
17
19
|
|
|
20
|
+
.textPart {
|
|
21
|
+
color: cm_blue_900;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
.answerType {
|
|
19
25
|
display: inline-block;
|
|
20
26
|
margin: 4px 0 8px;
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
text-align: center;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
ul {
|
|
136
|
+
.container ul {
|
|
137
137
|
list-style: none;
|
|
138
138
|
padding: 0px;
|
|
139
139
|
margin: 0px;
|
|
@@ -215,7 +215,7 @@ ul {
|
|
|
215
215
|
margin: 0px;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
label {
|
|
218
|
+
.container label {
|
|
219
219
|
width: 100%;
|
|
220
220
|
right: 0px;
|
|
221
221
|
display: flex;
|
|
@@ -223,11 +223,11 @@ ul {
|
|
|
223
223
|
cursor: pointer;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
label .tabletSummaryTitle{
|
|
226
|
+
.container label .tabletSummaryTitle{
|
|
227
227
|
flex: 0 1 100%;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
label .tabletSummaryIcon{
|
|
230
|
+
.container label .tabletSummaryIcon{
|
|
231
231
|
width: 12px;
|
|
232
232
|
transition: all 0.5s ease;
|
|
233
233
|
}
|
package/lib/variables/colors.css
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
@value cm_grey_200: #d7d7da;
|
|
40
40
|
@value cm_grey_300: #C5C5C9;
|
|
41
41
|
@value cm_grey_400: #9999A8;
|
|
42
|
+
@value cm_grey_450: #8393ad;
|
|
42
43
|
@value cm_grey_500: #515161;
|
|
43
44
|
@value cm_grey_700: #1D1D2B;
|
|
44
45
|
@value cm_grey_800: #3a3a4a;
|
|
@@ -62,3 +63,4 @@
|
|
|
62
63
|
@value cm_violet_podcast: #432ba7;
|
|
63
64
|
@value cm_warning_50: rgba(255, 192, 67, 0.13);
|
|
64
65
|
@value box_shadow_light_dark: rgba(0, 0, 0, 0.12);
|
|
66
|
+
@value box_shadow_medium_dark: rgba(0, 0, 0, 0.2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"webpack-hot-middleware": "^2.25.0"
|
|
120
120
|
},
|
|
121
121
|
"author": "CoorpAcademy",
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "d3077ff2834580e279edfd3a511c5f717c0c114a"
|
|
123
123
|
}
|