@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.
Files changed (65) hide show
  1. package/es/atom/select/index.js +27 -27
  2. package/es/atom/select/index.js.map +1 -1
  3. package/es/atom/select/style.css +66 -0
  4. package/es/atom/select/test/fixtures/coorpmanager.js +11 -0
  5. package/es/atom/select/test/fixtures/coorpmanager.js.map +1 -0
  6. package/es/atom/select/test/fixtures.js +2 -0
  7. package/es/atom/select/test/fixtures.js.map +1 -1
  8. package/es/molecule/brand-form-group/index.js +3 -1
  9. package/es/molecule/brand-form-group/index.js.map +1 -1
  10. package/es/molecule/brand-form-group/test/fixtures/lookandfeel.js +30 -26
  11. package/es/molecule/brand-form-group/test/fixtures/lookandfeel.js.map +1 -1
  12. package/es/molecule/card/customer.js +6 -3
  13. package/es/molecule/card/customer.js.map +1 -1
  14. package/es/molecule/card/favorite.js +13 -4
  15. package/es/molecule/card/favorite.js.map +1 -1
  16. package/es/molecule/card/index.js +41 -12
  17. package/es/molecule/card/index.js.map +1 -1
  18. package/es/molecule/card/selectable.js +11 -4
  19. package/es/molecule/card/selectable.js.map +1 -1
  20. package/es/molecule/card/test/fixtures/default.js +20 -1
  21. package/es/molecule/card/test/fixtures/default.js.map +1 -1
  22. package/es/molecule/card-content/index.js +20 -7
  23. package/es/molecule/card-content/index.js.map +1 -1
  24. package/es/molecule/card-content/test/fixtures/card-no-progress-bar.js +6 -1
  25. package/es/molecule/card-content/test/fixtures/card-no-progress-bar.js.map +1 -1
  26. package/es/molecule/questions/qcm-drag/style.css +0 -1
  27. package/es/molecule/questions/qcm-graphic/style.css +0 -2
  28. package/es/molecule/questions/template/index.js +2 -1
  29. package/es/molecule/questions/template/index.js.map +1 -1
  30. package/es/molecule/questions/template/style.css +6 -0
  31. package/es/molecule/wizard-summary/style.css +4 -4
  32. package/es/variables/colors.css +2 -0
  33. package/lib/atom/select/index.js +32 -31
  34. package/lib/atom/select/index.js.map +1 -1
  35. package/lib/atom/select/style.css +66 -0
  36. package/lib/atom/select/test/fixtures/coorpmanager.js +21 -0
  37. package/lib/atom/select/test/fixtures/coorpmanager.js.map +1 -0
  38. package/lib/atom/select/test/fixtures.js +3 -0
  39. package/lib/atom/select/test/fixtures.js.map +1 -1
  40. package/lib/molecule/brand-form-group/index.js +3 -1
  41. package/lib/molecule/brand-form-group/index.js.map +1 -1
  42. package/lib/molecule/brand-form-group/test/fixtures/lookandfeel.js +30 -26
  43. package/lib/molecule/brand-form-group/test/fixtures/lookandfeel.js.map +1 -1
  44. package/lib/molecule/card/customer.js +6 -3
  45. package/lib/molecule/card/customer.js.map +1 -1
  46. package/lib/molecule/card/favorite.js +13 -4
  47. package/lib/molecule/card/favorite.js.map +1 -1
  48. package/lib/molecule/card/index.js +41 -12
  49. package/lib/molecule/card/index.js.map +1 -1
  50. package/lib/molecule/card/selectable.js +11 -4
  51. package/lib/molecule/card/selectable.js.map +1 -1
  52. package/lib/molecule/card/test/fixtures/default.js +20 -1
  53. package/lib/molecule/card/test/fixtures/default.js.map +1 -1
  54. package/lib/molecule/card-content/index.js +21 -7
  55. package/lib/molecule/card-content/index.js.map +1 -1
  56. package/lib/molecule/card-content/test/fixtures/card-no-progress-bar.js +6 -1
  57. package/lib/molecule/card-content/test/fixtures/card-no-progress-bar.js.map +1 -1
  58. package/lib/molecule/questions/qcm-drag/style.css +0 -1
  59. package/lib/molecule/questions/qcm-graphic/style.css +0 -2
  60. package/lib/molecule/questions/template/index.js +2 -1
  61. package/lib/molecule/questions/template/index.js.map +1 -1
  62. package/lib/molecule/questions/template/style.css +6 -0
  63. package/lib/molecule/wizard-summary/style.css +4 -4
  64. package/lib/variables/colors.css +2 -0
  65. 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 // eslint-disable-next-line react/no-danger
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","style","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,CAEE;AAFF;AAGE,QAAA,uBAAuB,EAAE;AAACE,UAAAA,MAAM,EAAEH,IAAI,CAACI;AAAd;AAH3B,QADF;AAOD;;AACD,QAAIF,IAAI,KAAK,aAAb,EAA4B;AAC1B,YAAMG,KAAK,GAAG,oBAAK;AAACC,QAAAA,IAAI,EAAEN,IAAI,CAACI;AAAZ,OAAL,EAAyBT,OAAzB,CAAd;AACA,UAAI,CAACU,KAAL,EAAY,OAAO,IAAP;;AACZ,YAAM;AAACH,QAAAA,IAAI,EAAEK;AAAP,UAAmCF,KAAzC;AAAA,YAA2BG,UAA3B,iCAAyCH,KAAzC;;AACA,YAAMI,SAAS,GACbF,SAAS,KAAK,MAAd,gBACE,6BAAC,iBAAD,eAAcC,UAAd;AAA0B,QAAA,SAAS,EAAEE,eAAMC;AAA3C,SADF,gBAGE,6BAAC,iBAAD,eAAcH,UAAd;AAA0B,QAAA,KAAK,EAAC;AAAhC,SAJJ;AAOA,0BACE;AAAK,QAAA,SAAS,EAAEE,eAAME,UAAtB;AAAkC,QAAA,GAAG,EAAEZ,IAAI,CAACI;AAA5C,SACGK,SADH,CADF;AAKD;AACF,GA5BuB,EA4BrBb,aA5BqB,CAAxB;;AA8BA,sBACE;AAAK,iBAAU,kBAAf;AAAkC,IAAA,SAAS,EAAEc,eAAMG;AAAnD,KACGhB,eADH,CADF;AAKD,CArCD;;AAuCA,MAAMiB,aAAN,iEACKC,kBAASC,SADd;AAEEd,EAAAA,IAAI,EAAEe,mBAAUC;AAFlB;AAKAzB,QAAQ,CAACuB,SAAT,2CAAqB;AACnBtB,EAAAA,QAAQ,EAAEuB,mBAAUC,MADD;AAEnBvB,EAAAA,OAAO,EAAEsB,mBAAUE,OAAV,CACPF,mBAAUG,SAAV,CAAoB,CAACH,mBAAUI,KAAV,CAAgBN,kBAASC,SAAzB,CAAD,EAAsCC,mBAAUI,KAAV,CAAgBP,aAAhB,CAAtC,CAApB,CADO;AAFU,CAArB;eAOerB,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 // 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
+ {"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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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
  }
@@ -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.5.7-alpha.8+2308cc8ba",
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": "2308cc8baa193d27631c7bebdfa98960108bbadc"
122
+ "gitHead": "d3077ff2834580e279edfd3a511c5f717c0c114a"
123
123
  }