@coorpacademy/components 11.18.4-alpha.3 → 11.18.4

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 (89) hide show
  1. package/es/atom/picture-background/index.d.ts +1 -0
  2. package/es/atom/picture-background/index.js +10 -5
  3. package/es/atom/picture-background/index.js.map +1 -1
  4. package/es/molecule/card/index.d.ts.map +1 -1
  5. package/es/molecule/card/index.js +9 -10
  6. package/es/molecule/card/index.js.map +1 -1
  7. package/es/molecule/card/style.css +5 -41
  8. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  9. package/es/molecule/cm-popin/index.js +9 -45
  10. package/es/molecule/cm-popin/index.js.map +1 -1
  11. package/es/molecule/cm-popin/style.css +0 -29
  12. package/es/molecule/cm-popin/types.d.ts +1 -31
  13. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  14. package/es/molecule/cm-popin/types.js +3 -13
  15. package/es/molecule/cm-popin/types.js.map +1 -1
  16. package/es/template/app-player/loading/index.d.ts +1 -19
  17. package/es/template/app-player/player/index.d.ts +2 -38
  18. package/es/template/app-player/player/slides/index.d.ts +1 -19
  19. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  20. package/es/template/app-player/popin-correction/index.d.ts +1 -19
  21. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  22. package/es/template/app-player/popin-end/index.d.ts +1 -19
  23. package/es/template/app-review/index.d.ts +1 -19
  24. package/es/template/app-review/index.d.ts.map +1 -1
  25. package/es/template/app-review/player/prop-types.d.ts +1 -19
  26. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  27. package/es/template/app-review/prop-types.d.ts +1 -19
  28. package/es/template/app-review/prop-types.d.ts.map +1 -1
  29. package/es/template/back-office/brand-update/index.d.ts +1 -19
  30. package/es/template/common/dashboard/index.d.ts +1 -89
  31. package/es/template/common/dashboard/index.d.ts.map +1 -1
  32. package/es/template/common/dashboard/index.js +2 -4
  33. package/es/template/common/dashboard/index.js.map +1 -1
  34. package/es/template/common/search-page/index.d.ts +0 -70
  35. package/es/template/common/search-page/index.d.ts.map +1 -1
  36. package/es/template/common/search-page/index.js +3 -8
  37. package/es/template/common/search-page/index.js.map +1 -1
  38. package/es/template/common/search-page/style.css +0 -5
  39. package/es/template/external-course/index.d.ts +1 -19
  40. package/es/variables/colors.css +1 -1
  41. package/lib/atom/picture-background/index.d.ts +1 -0
  42. package/lib/atom/picture-background/index.js +10 -5
  43. package/lib/atom/picture-background/index.js.map +1 -1
  44. package/lib/molecule/card/index.d.ts.map +1 -1
  45. package/lib/molecule/card/index.js +7 -9
  46. package/lib/molecule/card/index.js.map +1 -1
  47. package/lib/molecule/card/style.css +5 -41
  48. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  49. package/lib/molecule/cm-popin/index.js +8 -47
  50. package/lib/molecule/cm-popin/index.js.map +1 -1
  51. package/lib/molecule/cm-popin/style.css +0 -29
  52. package/lib/molecule/cm-popin/types.d.ts +1 -31
  53. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  54. package/lib/molecule/cm-popin/types.js +3 -15
  55. package/lib/molecule/cm-popin/types.js.map +1 -1
  56. package/lib/template/app-player/loading/index.d.ts +1 -19
  57. package/lib/template/app-player/player/index.d.ts +2 -38
  58. package/lib/template/app-player/player/slides/index.d.ts +1 -19
  59. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  60. package/lib/template/app-player/popin-correction/index.d.ts +1 -19
  61. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  62. package/lib/template/app-player/popin-end/index.d.ts +1 -19
  63. package/lib/template/app-review/index.d.ts +1 -19
  64. package/lib/template/app-review/index.d.ts.map +1 -1
  65. package/lib/template/app-review/player/prop-types.d.ts +1 -19
  66. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  67. package/lib/template/app-review/prop-types.d.ts +1 -19
  68. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  69. package/lib/template/back-office/brand-update/index.d.ts +1 -19
  70. package/lib/template/common/dashboard/index.d.ts +1 -89
  71. package/lib/template/common/dashboard/index.d.ts.map +1 -1
  72. package/lib/template/common/dashboard/index.js +2 -4
  73. package/lib/template/common/dashboard/index.js.map +1 -1
  74. package/lib/template/common/search-page/index.d.ts +0 -70
  75. package/lib/template/common/search-page/index.d.ts.map +1 -1
  76. package/lib/template/common/search-page/index.js +3 -9
  77. package/lib/template/common/search-page/index.js.map +1 -1
  78. package/lib/template/common/search-page/style.css +0 -5
  79. package/lib/template/external-course/index.d.ts +1 -19
  80. package/lib/variables/colors.css +1 -1
  81. package/package.json +2 -2
  82. package/es/atom/title/types.d.ts +0 -9
  83. package/es/atom/title/types.d.ts.map +0 -1
  84. package/es/atom/title/types.js +0 -2
  85. package/es/atom/title/types.js.map +0 -1
  86. package/lib/atom/title/types.d.ts +0 -9
  87. package/lib/atom/title/types.d.ts.map +0 -1
  88. package/lib/atom/title/types.js +0 -2
  89. package/lib/atom/title/types.js.map +0 -1
@@ -125,76 +125,6 @@ declare namespace SearchPage {
125
125
  const moreFilterAriaLabel: PropTypes.Requireable<string>;
126
126
  const filterGroupAriaLabel: PropTypes.Requireable<string>;
127
127
  const sortAriaLabel: PropTypes.Requireable<string>;
128
- const popinWithCards: PropTypes.Requireable<PropTypes.InferProps<{
129
- content: PropTypes.Requireable<string>;
130
- mode: PropTypes.Requireable<string>;
131
- header: PropTypes.Requireable<PropTypes.InferProps<{
132
- title: PropTypes.Requireable<PropTypes.InferProps<{
133
- title: PropTypes.Requireable<string>;
134
- subtitle: PropTypes.Requireable<string>;
135
- type: PropTypes.Requireable<string>;
136
- 'data-name': PropTypes.Requireable<string>;
137
- titleSize: PropTypes.Requireable<string>;
138
- subtitleSize: PropTypes.Requireable<string>;
139
- }>>;
140
- headerIcon: PropTypes.Requireable<string>;
141
- backgroundImage: PropTypes.Requireable<string>;
142
- }>>;
143
- firstButton: PropTypes.Requireable<PropTypes.InferProps<{
144
- label: PropTypes.Requireable<string>;
145
- handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
146
- 'aria-label': PropTypes.Requireable<string>;
147
- largeButton: PropTypes.Requireable<boolean>;
148
- type: PropTypes.Requireable<string>;
149
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
150
- }>>;
151
- secondButton: PropTypes.Requireable<PropTypes.InferProps<{
152
- label: PropTypes.Requireable<string>;
153
- handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
154
- type: PropTypes.Requireable<string>;
155
- 'aria-label': PropTypes.Requireable<string>;
156
- largeButton: PropTypes.Requireable<boolean>;
157
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
158
- }>>;
159
- thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
160
- label: PropTypes.Requireable<string>;
161
- handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
162
- type: PropTypes.Requireable<string>;
163
- 'aria-label': PropTypes.Requireable<string>;
164
- largeButton: PropTypes.Requireable<boolean>;
165
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
166
- }>>;
167
- onClose: PropTypes.Requireable<(...args: any[]) => any>;
168
- icon: PropTypes.Requireable<string>;
169
- backgroundImageUrl: PropTypes.Requireable<string>;
170
- descriptionText: PropTypes.Requireable<string>;
171
- cookieTitle: PropTypes.Requireable<string>;
172
- descriptionBtnTxt: PropTypes.Requireable<string>;
173
- listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
174
- title: PropTypes.Requireable<string>;
175
- name: PropTypes.Requireable<string>;
176
- id: PropTypes.Requireable<string>;
177
- value: PropTypes.Requireable<boolean>;
178
- disabled: PropTypes.Requireable<boolean>;
179
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
180
- description: PropTypes.Requireable<string>;
181
- 'aria-labelledby': PropTypes.Requireable<string>;
182
- 'aria-label': PropTypes.Requireable<string>;
183
- modified: PropTypes.Requireable<boolean>;
184
- titlePosition: PropTypes.Requireable<string>;
185
- theme: PropTypes.Requireable<string>;
186
- details: PropTypes.Requireable<string>;
187
- 'data-name': PropTypes.Requireable<string>;
188
- requiredSelection: PropTypes.Requireable<boolean>;
189
- }> | null | undefined)[]>;
190
- items: PropTypes.Requireable<PropTypes.InferProps<{
191
- type: PropTypes.Requireable<string>;
192
- list: PropTypes.Requireable<PropTypes.InferProps<{
193
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
194
- loading: PropTypes.Requireable<boolean>;
195
- }>>;
196
- }>>;
197
- }>>;
198
128
  }
199
129
  }
200
130
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAWA,mEA4DC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAUA,mEAsDC"}
@@ -10,7 +10,6 @@ import Button from '../../../atom/button';
10
10
  import Filters from '../../../molecule/filters';
11
11
  import CardsGrid from '../../../organism/cards-grid';
12
12
  import CardsList from '../../../molecule/dashboard/cards-list';
13
- import CMPopin from '../../../molecule/cm-popin';
14
13
  import style from './style.css';
15
14
 
16
15
  const SearchPage = (props, context) => {
@@ -24,8 +23,7 @@ const SearchPage = (props, context) => {
24
23
  moreSortAriaLabel,
25
24
  moreFilterAriaLabel,
26
25
  filterGroupAriaLabel,
27
- sortAriaLabel,
28
- popinWithCards
26
+ sortAriaLabel
29
27
  } = props;
30
28
  const {
31
29
  skin
@@ -57,9 +55,7 @@ const SearchPage = (props, context) => {
57
55
  }, /*#__PURE__*/React.createElement("div", {
58
56
  className: style.title,
59
57
  role: "status"
60
- }, title), cardsView), popinWithCards ? /*#__PURE__*/React.createElement("div", {
61
- className: style.popinWithCards
62
- }, /*#__PURE__*/React.createElement(CMPopin, popinWithCards)) : null);
58
+ }, title), cardsView));
63
59
  };
64
60
 
65
61
  SearchPage.contextTypes = {
@@ -75,8 +71,7 @@ SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
75
71
  moreSortAriaLabel: PropTypes.string,
76
72
  moreFilterAriaLabel: PropTypes.string,
77
73
  filterGroupAriaLabel: PropTypes.string,
78
- sortAriaLabel: PropTypes.string,
79
- popinWithCards: PropTypes.shape(CMPopin.propTypes)
74
+ sortAriaLabel: PropTypes.string
80
75
  } : {};
81
76
  export default SearchPage;
82
77
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","CMPopin","style","SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","skin","defaultColor","recommendationsView","cardsView","list","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","childContextTypes","propTypes","string","shape"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CMPopin from '../../../molecule/cm-popin';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,OAAP,MAAoB,2BAApB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,SAAP,MAAsB,wCAAtB;AACA,OAAOC,OAAP,MAAoB,4BAApB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,KADI;IAEJC,aAFI;IAGJC,KAHI;IAIJC,cAJI;IAKJC,YALI;IAMJC,eANI;IAOJC,iBAPI;IAQJC,mBARI;IASJC,oBATI;IAUJC,aAVI;I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X,2CAAuB;EACrBpB,cAAc,EAAEd,SAAS,CAACmC,MADL;EAErBxB,KAAK,EAAEX,SAAS,CAACmC,MAFI;EAGrBvB,aAAa,EAAEZ,SAAS,CAACoC,KAAV,CAAgBjC,OAAO,CAAC+B,SAAxB,CAHM;EAIrBrB,KAAK,EAAEb,SAAS,CAACoC,KAAV,CAAgBhC,SAAS,CAAC8B,SAA1B,CAJc;EAKrBnB,YAAY,EAAEf,SAAS,CAACoC,KAAV,CAAgBlC,MAAM,CAACgC,SAAvB,CALO;EAMrBlB,eAAe,EAAEhB,SAAS,CAACoC,KAAV,CAAgB/B,SAAS,CAAC6B,SAA1B,CANI;EAOrBjB,iBAAiB,EAAEjB,SAAS,CAACmC,MAPR;EAQrBjB,mBAAmB,EAAElB,SAAS,CAACmC,MARV;EASrBhB,oBAAoB,EAAEnB,SAAS,CAACmC,MATX;EAUrBf,aAAa,EAAEpB,SAAS,CAACmC,MAVJ;EAWrBd,cAAc,EAAErB,SAAS,CAACoC,KAAV,CAAgB9B,OAAO,CAAC4B,SAAxB;AAXK,CAAvB;AAcA,eAAe1B,UAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","style","SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","childContextTypes","propTypes","string","shape"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,OAAP,MAAoB,2BAApB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,SAAP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DAhB,UAAU,CAACuB,YAAX,GAA0B;EACxBV,IAAI,EAAEnB,QAAQ,CAAC8B,iBAAT,CAA2BX;AADT,CAA1B;AAIAb,UAAU,CAACyB,SAAX,2CAAuB;EACrBnB,cAAc,EAAEb,SAAS,CAACiC,MADL;EAErBvB,KAAK,EAAEV,SAAS,CAACiC,MAFI;EAGrBtB,aAAa,EAAEX,SAAS,CAACkC,KAAV,CAAgB/B,OAAO,CAAC6B,SAAxB,CAHM;EAIrBpB,KAAK,EAAEZ,SAAS,CAACkC,KAAV,CAAgB9B,SAAS,CAAC4B,SAA1B,CAJc;EAKrBlB,YAAY,EAAEd,SAAS,CAACkC,KAAV,CAAgBhC,MAAM,CAAC8B,SAAvB,CALO;EAMrBjB,eAAe,EAAEf,SAAS,CAACkC,KAAV,CAAgB7B,SAAS,CAAC2B,SAA1B,CANI;EAOrBhB,iBAAiB,EAAEhB,SAAS,CAACiC,MAPR;EAQrBhB,mBAAmB,EAAEjB,SAAS,CAACiC,MARV;EASrBf,oBAAoB,EAAElB,SAAS,CAACiC,MATX;EAUrBd,aAAa,EAAEnB,SAAS,CAACiC;AAVJ,CAAvB;AAaA,eAAe1B,UAAf"}
@@ -50,11 +50,6 @@
50
50
  color: black;
51
51
  }
52
52
 
53
- .popinWithCards {
54
- position: relative;
55
- z-index: 5;
56
- }
57
-
58
53
  @media mobile {
59
54
  .cardsWrapper {
60
55
  padding: 5px 0;
@@ -25,18 +25,7 @@ declare namespace ExternalCourse {
25
25
  const closePopin: PropTypes.Requireable<PropTypes.InferProps<{
26
26
  content: PropTypes.Requireable<string>;
27
27
  mode: PropTypes.Requireable<string>;
28
- header: PropTypes.Requireable<PropTypes.InferProps<{
29
- title: PropTypes.Requireable<PropTypes.InferProps<{
30
- title: PropTypes.Requireable<string>;
31
- subtitle: PropTypes.Requireable<string>;
32
- type: PropTypes.Requireable<string>;
33
- 'data-name': PropTypes.Requireable<string>;
34
- titleSize: PropTypes.Requireable<string>;
35
- subtitleSize: PropTypes.Requireable<string>;
36
- }>>;
37
- headerIcon: PropTypes.Requireable<string>;
38
- backgroundImage: PropTypes.Requireable<string>;
39
- }>>;
28
+ header: PropTypes.Requireable<string>;
40
29
  firstButton: PropTypes.Requireable<PropTypes.InferProps<{
41
30
  label: PropTypes.Requireable<string>;
42
31
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -84,13 +73,6 @@ declare namespace ExternalCourse {
84
73
  'data-name': PropTypes.Requireable<string>;
85
74
  requiredSelection: PropTypes.Requireable<boolean>;
86
75
  }> | null | undefined)[]>;
87
- items: PropTypes.Requireable<PropTypes.InferProps<{
88
- type: PropTypes.Requireable<string>;
89
- list: PropTypes.Requireable<PropTypes.InferProps<{
90
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
91
- loading: PropTypes.Requireable<boolean>;
92
- }>>;
93
- }>>;
94
76
  }>>;
95
77
  }
96
78
  namespace contextTypes {
@@ -72,7 +72,7 @@
72
72
  @value box_shadow_medium_dark: rgba(0, 0, 0, 0.2);
73
73
  @value box_shadow_orange_700: rgba(255, 84, 31, 0.15);
74
74
  @value light_blue: #ADC9F5;
75
- @value negative_100: #FCDADA;
75
+
76
76
  @value go1_backgound: #144953;
77
77
  @value go1_primary: #D5FD42;
78
78
  @value go1_primary_hover: #BFE33B;
@@ -9,6 +9,7 @@ declare namespace PictureBackground {
9
9
  const style: PropTypes.Requireable<{
10
10
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
11
11
  }>;
12
+ const alt: PropTypes.Requireable<string>;
12
13
  }
13
14
  }
14
15
  import PropTypes from "prop-types";
@@ -26,7 +26,8 @@ const PictureBackground = props => {
26
26
  const {
27
27
  src,
28
28
  view,
29
- style
29
+ style,
30
+ alt = ''
30
31
  } = props;
31
32
  const mobile = src.mobile;
32
33
  const desktop = src.desktop;
@@ -37,15 +38,18 @@ const PictureBackground = props => {
37
38
  className: _style.default.mobileContainer
38
39
  }, /*#__PURE__*/_react.default.createElement("img", {
39
40
  className: (0, _classnames.default)(_style.default.picture, bgStyle),
40
- src: mobile
41
+ src: mobile,
42
+ alt: alt
41
43
  })), /*#__PURE__*/_react.default.createElement("div", {
42
44
  className: _style.default.desktopContainer
43
45
  }, /*#__PURE__*/_react.default.createElement("img", {
44
46
  className: (0, _classnames.default)(_style.default.picture, bgStyle),
45
- src: desktop
47
+ src: desktop,
48
+ alt: alt
46
49
  }))) : /*#__PURE__*/_react.default.createElement("img", {
47
50
  className: (0, _classnames.default)(_style.default.default, bgStyle),
48
- src: src
51
+ src: src,
52
+ alt: alt
49
53
  });
50
54
  return /*#__PURE__*/_react.default.createElement("div", {
51
55
  className: _style.default.wrapper,
@@ -56,7 +60,8 @@ const PictureBackground = props => {
56
60
  PictureBackground.propTypes = process.env.NODE_ENV !== "production" ? {
57
61
  view: _propTypes.default.oneOf((0, _keys2.default)(viewStyle)),
58
62
  src: _propTypes.default.oneOfType([_propTypes.default.objectOf(_propTypes.default.string), _propTypes.default.string.isRequired]),
59
- style: _propTypes.default.objectOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]))
63
+ style: _propTypes.default.objectOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number])),
64
+ alt: _propTypes.default.string
60
65
  } : {};
61
66
  var _default = PictureBackground;
62
67
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["viewStyle","cover","cssStyle","contain","PictureBackground","props","src","view","style","mobile","desktop","bgStyle","pictureView","deviceView","mobileContainer","classnames","picture","desktopContainer","default","wrapper","propTypes","PropTypes","oneOf","oneOfType","objectOf","string","isRequired","number"],"sources":["../../../src/atom/picture-background/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isObject, keys} from 'lodash/fp';\nimport cssStyle from './style.css';\n\nconst viewStyle = {\n cover: cssStyle.cover,\n contain: cssStyle.contain\n};\n\nconst PictureBackground = props => {\n const {src, view, style} = props;\n const mobile = src.mobile;\n const desktop = src.desktop;\n const bgStyle = viewStyle[view];\n\n const pictureView = isObject(src) ? (\n <div className={cssStyle.deviceView}>\n <div className={cssStyle.mobileContainer}>\n <img className={classnames(cssStyle.picture, bgStyle)} src={mobile} />\n </div>\n <div className={cssStyle.desktopContainer}>\n <img className={classnames(cssStyle.picture, bgStyle)} src={desktop} />\n </div>\n </div>\n ) : (\n <img className={classnames(cssStyle.default, bgStyle)} src={src} />\n );\n\n return (\n <div className={cssStyle.wrapper} style={style}>\n {pictureView}\n </div>\n );\n};\n\nPictureBackground.propTypes = {\n view: PropTypes.oneOf(keys(viewStyle)),\n src: PropTypes.oneOfType([PropTypes.objectOf(PropTypes.string), PropTypes.string.isRequired]),\n style: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))\n};\n\nexport default PictureBackground;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,KAAK,EAAEC,cAAA,CAASD,KADA;EAEhBE,OAAO,EAAED,cAAA,CAASC;AAFF,CAAlB;;AAKA,MAAMC,iBAAiB,GAAGC,KAAK,IAAI;EACjC,MAAM;IAACC,GAAD;IAAMC,IAAN;IAAYC;EAAZ,IAAqBH,KAA3B;EACA,MAAMI,MAAM,GAAGH,GAAG,CAACG,MAAnB;EACA,MAAMC,OAAO,GAAGJ,GAAG,CAACI,OAApB;EACA,MAAMC,OAAO,GAAGX,SAAS,CAACO,IAAD,CAAzB;EAEA,MAAMK,WAAW,GAAG,wBAASN,GAAT,iBAClB;IAAK,SAAS,EAAEJ,cAAA,CAASW;EAAzB,gBACE;IAAK,SAAS,EAAEX,cAAA,CAASY;EAAzB,gBACE;IAAK,SAAS,EAAE,IAAAC,mBAAA,EAAWb,cAAA,CAASc,OAApB,EAA6BL,OAA7B,CAAhB;IAAuD,GAAG,EAAEF;EAA5D,EADF,CADF,eAIE;IAAK,SAAS,EAAEP,cAAA,CAASe;EAAzB,gBACE;IAAK,SAAS,EAAE,IAAAF,mBAAA,EAAWb,cAAA,CAASc,OAApB,EAA6BL,OAA7B,CAAhB;IAAuD,GAAG,EAAED;EAA5D,EADF,CAJF,CADkB,gBAUlB;IAAK,SAAS,EAAE,IAAAK,mBAAA,EAAWb,cAAA,CAASgB,OAApB,EAA6BP,OAA7B,CAAhB;IAAuD,GAAG,EAAEL;EAA5D,EAVF;EAaA,oBACE;IAAK,SAAS,EAAEJ,cAAA,CAASiB,OAAzB;IAAkC,KAAK,EAAEX;EAAzC,GACGI,WADH,CADF;AAKD,CAxBD;;AA0BAR,iBAAiB,CAACgB,SAAlB,2CAA8B;EAC5Bb,IAAI,EAAEc,kBAAA,CAAUC,KAAV,CAAgB,oBAAKtB,SAAL,CAAhB,CADsB;EAE5BM,GAAG,EAAEe,kBAAA,CAAUE,SAAV,CAAoB,CAACF,kBAAA,CAAUG,QAAV,CAAmBH,kBAAA,CAAUI,MAA7B,CAAD,EAAuCJ,kBAAA,CAAUI,MAAV,CAAiBC,UAAxD,CAApB,CAFuB;EAG5BlB,KAAK,EAAEa,kBAAA,CAAUG,QAAV,CAAmBH,kBAAA,CAAUE,SAAV,CAAoB,CAACF,kBAAA,CAAUI,MAAX,EAAmBJ,kBAAA,CAAUM,MAA7B,CAApB,CAAnB;AAHqB,CAA9B;eAMevB,iB"}
1
+ {"version":3,"file":"index.js","names":["viewStyle","cover","cssStyle","contain","PictureBackground","props","src","view","style","alt","mobile","desktop","bgStyle","pictureView","deviceView","mobileContainer","classnames","picture","desktopContainer","default","wrapper","propTypes","PropTypes","oneOf","oneOfType","objectOf","string","isRequired","number"],"sources":["../../../src/atom/picture-background/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isObject, keys} from 'lodash/fp';\nimport cssStyle from './style.css';\n\nconst viewStyle = {\n cover: cssStyle.cover,\n contain: cssStyle.contain\n};\n\nconst PictureBackground = props => {\n const {src, view, style, alt = ''} = props;\n const mobile = src.mobile;\n const desktop = src.desktop;\n const bgStyle = viewStyle[view];\n\n const pictureView = isObject(src) ? (\n <div className={cssStyle.deviceView}>\n <div className={cssStyle.mobileContainer}>\n <img className={classnames(cssStyle.picture, bgStyle)} src={mobile} alt={alt} />\n </div>\n <div className={cssStyle.desktopContainer}>\n <img className={classnames(cssStyle.picture, bgStyle)} src={desktop} alt={alt} />\n </div>\n </div>\n ) : (\n <img className={classnames(cssStyle.default, bgStyle)} src={src} alt={alt} />\n );\n\n return (\n <div className={cssStyle.wrapper} style={style}>\n {pictureView}\n </div>\n );\n};\n\nPictureBackground.propTypes = {\n view: PropTypes.oneOf(keys(viewStyle)),\n src: PropTypes.oneOfType([PropTypes.objectOf(PropTypes.string), PropTypes.string.isRequired]),\n style: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),\n alt: PropTypes.string\n};\n\nexport default PictureBackground;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,KAAK,EAAEC,cAAA,CAASD,KADA;EAEhBE,OAAO,EAAED,cAAA,CAASC;AAFF,CAAlB;;AAKA,MAAMC,iBAAiB,GAAGC,KAAK,IAAI;EACjC,MAAM;IAACC,GAAD;IAAMC,IAAN;IAAYC,KAAZ;IAAmBC,GAAG,GAAG;EAAzB,IAA+BJ,KAArC;EACA,MAAMK,MAAM,GAAGJ,GAAG,CAACI,MAAnB;EACA,MAAMC,OAAO,GAAGL,GAAG,CAACK,OAApB;EACA,MAAMC,OAAO,GAAGZ,SAAS,CAACO,IAAD,CAAzB;EAEA,MAAMM,WAAW,GAAG,wBAASP,GAAT,iBAClB;IAAK,SAAS,EAAEJ,cAAA,CAASY;EAAzB,gBACE;IAAK,SAAS,EAAEZ,cAAA,CAASa;EAAzB,gBACE;IAAK,SAAS,EAAE,IAAAC,mBAAA,EAAWd,cAAA,CAASe,OAApB,EAA6BL,OAA7B,CAAhB;IAAuD,GAAG,EAAEF,MAA5D;IAAoE,GAAG,EAAED;EAAzE,EADF,CADF,eAIE;IAAK,SAAS,EAAEP,cAAA,CAASgB;EAAzB,gBACE;IAAK,SAAS,EAAE,IAAAF,mBAAA,EAAWd,cAAA,CAASe,OAApB,EAA6BL,OAA7B,CAAhB;IAAuD,GAAG,EAAED,OAA5D;IAAqE,GAAG,EAAEF;EAA1E,EADF,CAJF,CADkB,gBAUlB;IAAK,SAAS,EAAE,IAAAO,mBAAA,EAAWd,cAAA,CAASiB,OAApB,EAA6BP,OAA7B,CAAhB;IAAuD,GAAG,EAAEN,GAA5D;IAAiE,GAAG,EAAEG;EAAtE,EAVF;EAaA,oBACE;IAAK,SAAS,EAAEP,cAAA,CAASkB,OAAzB;IAAkC,KAAK,EAAEZ;EAAzC,GACGK,WADH,CADF;AAKD,CAxBD;;AA0BAT,iBAAiB,CAACiB,SAAlB,2CAA8B;EAC5Bd,IAAI,EAAEe,kBAAA,CAAUC,KAAV,CAAgB,oBAAKvB,SAAL,CAAhB,CADsB;EAE5BM,GAAG,EAAEgB,kBAAA,CAAUE,SAAV,CAAoB,CAACF,kBAAA,CAAUG,QAAV,CAAmBH,kBAAA,CAAUI,MAA7B,CAAD,EAAuCJ,kBAAA,CAAUI,MAAV,CAAiBC,UAAxD,CAApB,CAFuB;EAG5BnB,KAAK,EAAEc,kBAAA,CAAUG,QAAV,CAAmBH,kBAAA,CAAUE,SAAV,CAAoB,CAACF,kBAAA,CAAUI,MAAX,EAAmBJ,kBAAA,CAAUM,MAA7B,CAApB,CAAnB,CAHqB;EAI5BnB,GAAG,EAAEa,kBAAA,CAAUI;AAJa,CAA9B;eAOetB,iB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/card/index.js"],"names":[],"mappings":";;;;;;AAuHA,uDA0HG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/card/index.js"],"names":[],"mappings":";;;;;;AAuHA,uDAuHG"}
@@ -161,7 +161,6 @@ const Card = /*#__PURE__*/(0, _react.memo)(function Card(props, context) {
161
161
  badgeCategory,
162
162
  badgeLabel,
163
163
  theme = 'default',
164
- disabledContent,
165
164
  'aria-label': cardArialabel,
166
165
  'background-aria-label': backgroundAriaLabel,
167
166
  'favorite-aria-label': favoriteAriaLabel,
@@ -173,17 +172,17 @@ const Card = /*#__PURE__*/(0, _react.memo)(function Card(props, context) {
173
172
  } = props;
174
173
  const empty = (0, _isEmpty2.default)((0, _pick2.default)(['title', 'type', 'author', 'image'], props));
175
174
  const primaryColor = (0, _get2.default)('common.primary', skin);
175
+ const whiteColor = (0, _get2.default)('common.white', skin);
176
176
  const cardStyle = (0, _classnames.default)(THEMES[theme], type === 'chapter' ? _style.default.chapter : _style.default.course, title ? null : _style.default.lazy, _style.default.grid, empty ? _style.default.empty : null);
177
177
  const disabled = hidden && (!isSelected || (0, _isUndefined2.default)(isSelected));
178
178
  const handleClick = (0, _react.useMemo)(() => e => !disabled && onClick(e), [disabled, onClick]);
179
- const lock = disabled ? /*#__PURE__*/_react.default.createElement("div", {
180
- className: _style.default.lockContent
181
- }, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyPadlock, {
179
+ const lock = disabled ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaSolidLoginLocked, {
182
180
  className: _style.default.lockIcon,
183
- height: 48
184
- }), /*#__PURE__*/_react.default.createElement("span", {
185
- "aria-label": disabledArialabel
186
- }, disabledContent)) : null;
181
+ style: {
182
+ color: whiteColor
183
+ },
184
+ height: 40
185
+ }) : null;
187
186
  const inlineBadgeStyle = {
188
187
  color: primaryColor
189
188
  };
@@ -278,7 +277,6 @@ Card.propTypes = process.env.NODE_ENV !== "production" ? {
278
277
  badgeCategory: _cardContent.default.propTypes.badgeCategory,
279
278
  badgeLabel: _cardContent.default.propTypes.badgeLabel,
280
279
  theme: _propTypes.default.oneOf((0, _keys2.default)(THEMES)),
281
- disabledContent: _propTypes.default.string,
282
280
  'aria-label': _propTypes.default.string,
283
281
  'background-aria-label': _propTypes.default.string,
284
282
  'favorite-aria-label': _favorite.default.propTypes['aria-label'],
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["THEMES","default","coorpmanager","style","CardBackground","type","image","empty","ariaLabel","skin","externalContent","isExternalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","classnames","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","memo","props","context","badge","adaptiv","disabled","hidden","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","disabledContent","cardArialabel","backgroundAriaLabel","favoriteAriaLabel","selectableAriaLabel","customerAriaLabel","badgeAriaLabel","disabledArialabel","cardContentLabelAriaLabel","cardStyle","chapter","course","lazy","grid","handleClick","useMemo","e","lock","lockContent","lockIcon","inlineBadgeStyle","getType","contentType","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification","CardContentInfo","oneOf","Favorite","Selectable"],"sources":["../../../src/molecule/card/index.js"],"sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyPadlock as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty, 'aria-label': ariaLabel}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? (\n <PicturesIcon className={style.emptyIcon} style={{color: whiteColor}} />\n ) : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled: hidden = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n disabledContent,\n 'aria-label': cardArialabel,\n 'background-aria-label': backgroundAriaLabel,\n 'favorite-aria-label': favoriteAriaLabel,\n 'selectable-aria-label': selectableAriaLabel,\n 'customer-aria-label': customerAriaLabel,\n 'badge-aria-label': badgeAriaLabel,\n 'disabled-aria-label': disabledArialabel,\n 'card-content-aria-label': cardContentLabelAriaLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const disabled = hidden && (!isSelected || isUndefined(isSelected));\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <div className={style.lockContent}>\n <LockIcon className={style.lockIcon} height={48} />\n <span aria-label={disabledArialabel}>{disabledContent}</span>\n </div>\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n aria-label={cardArialabel}\n >\n <CardBackground type={type} image={image} empty={empty} aria-label={backgroundAriaLabel} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n aria-label={favoriteAriaLabel}\n />\n ) : null}\n <Selectable isSelected={isSelected} hidden={hidden} aria-label={selectableAriaLabel} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n theme={theme}\n type={type}\n disabled={disabled}\n aria-label={customerAriaLabel}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n aria-label={cardContentLabelAriaLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle} aria-label={badgeAriaLabel}>\n {badge}\n </div>\n ) : null}\n {disabled ? (\n <div className={style.lockWrapper} aria-label={disabledArialabel}>\n {lock}\n </div>\n ) : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES)),\n disabledContent: PropTypes.string,\n 'aria-label': PropTypes.string,\n 'background-aria-label': PropTypes.string,\n 'favorite-aria-label': Favorite.propTypes['aria-label'],\n 'selectable-aria-label': Selectable.propTypes['aria-label'],\n 'customer-aria-label': Customer.propTypes['aria-label'],\n 'badge-aria-label': PropTypes.string,\n 'disabled-aria-label': PropTypes.string,\n 'card-content-aria-label': CardContentInfo.propTypes['aria-label']\n};\nexport default Card;\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,IADW;EAEpBC,YAAY,EAAEC,cAAA,CAAMD;AAFA,CAAf;;;AAKP,MAAME,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,KAAd;EAAqB,cAAcC;AAAnC,CAAD,EAAgD;EAACC;AAAD,CAAhD,KAA2D;EAChF,MAAMC,eAAe,GAAG,IAAAC,kCAAA,EAAkBN,IAAlB,CAAxB;EACA,MAAMO,YAAY,GAAG,mBAAI,gBAAJ,EAAsBH,IAAtB,CAArB;EACA,MAAMI,UAAU,GAAG,mBAAI,cAAJ,EAAoBJ,IAApB,CAAnB;;EAEA,IAAIC,eAAe,IAAII,uCAAA,CAAuBT,IAAvB,CAAvB,EAAqD;IACnD,MAAMU,QAAQ,GAAGD,uCAAA,CAAuBT,IAAvB,EAA6BW,IAA9C;IACA,MAAMC,SAAS,GAAGH,uCAAA,CAAuBT,IAAvB,EAA6Ba,KAA/C;;IACA,MAAMC,cAAc,gBAClB;MAAK,SAAS,EAAEhB,cAAA,CAAMiB;IAAtB,gBACE,6BAAC,QAAD;MAAU,SAAS,EAAEjB,cAAA,CAAMkB;IAA3B,EADF,CADF;;IAMA,IAAIf,KAAJ,EAAW;MACT,MAAMgB,eAAe,gBACnB;QACE,SAAS,EAAE,IAAAC,mBAAA,EACTpB,cAAA,CAAMiB,yBADG,EAETjB,cAAA,CAAMqB,kCAFG,CADb;QAKE,KAAK,EAAE;UACLC,eAAe,EAAER;QADZ;MALT,gBASE,6BAAC,QAAD;QAAU,SAAS,EAAEd,cAAA,CAAMuB;MAA3B,EATF,CADF;;MAcA,oBACE;QAAK,SAAS,EAAEvB,cAAA,CAAMwB;M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AAUC,MAvBpB;EAwBf,uBAAuB0D,iBAAA,CAAS5D,SAAT,CAAmB,YAAnB,CAxBR;EAyBf,yBAAyB6D,mBAAA,CAAW7D,SAAX,CAAqB,YAArB,CAzBV;EA0Bf,uBAAuBsD,iBAAA,CAAStD,SAAT,CAAmB,YAAnB,CA1BR;EA2Bf,oBAAoBC,kBAAA,CAAUC,MA3Bf;EA4Bf,uBAAuBD,kBAAA,CAAUC,MA5BlB;EA6Bf,2BAA2BwD,oBAAA,CAAgB1D,SAAhB,CAA0B,YAA1B;AA7BZ,CAAjB;eA+BeI,I"}
1
+ {"version":3,"file":"index.js","names":["THEMES","default","coorpmanager","style","CardBackground","type","image","empty","ariaLabel","skin","externalContent","isExternalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","classnames","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","memo","props","context","badge","adaptiv","disabled","hidden","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardArialabel","backgroundAriaLabel","favoriteAriaLabel","selectableAriaLabel","customerAriaLabel","badgeAriaLabel","disabledArialabel","cardContentLabelAriaLabel","cardStyle","chapter","course","lazy","grid","handleClick","useMemo","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification","CardContentInfo","oneOf","Favorite","Selectable"],"sources":["../../../src/molecule/card/index.js"],"sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty, 'aria-label': ariaLabel}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? (\n <PicturesIcon className={style.emptyIcon} style={{color: whiteColor}} />\n ) : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled: hidden = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': cardArialabel,\n 'background-aria-label': backgroundAriaLabel,\n 'favorite-aria-label': favoriteAriaLabel,\n 'selectable-aria-label': selectableAriaLabel,\n 'customer-aria-label': customerAriaLabel,\n 'badge-aria-label': badgeAriaLabel,\n 'disabled-aria-label': disabledArialabel,\n 'card-content-aria-label': cardContentLabelAriaLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const disabled = hidden && (!isSelected || isUndefined(isSelected));\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} style={{color: whiteColor}} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n aria-label={cardArialabel}\n >\n <CardBackground type={type} image={image} empty={empty} aria-label={backgroundAriaLabel} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n aria-label={favoriteAriaLabel}\n />\n ) : null}\n <Selectable isSelected={isSelected} hidden={hidden} aria-label={selectableAriaLabel} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n theme={theme}\n type={type}\n disabled={disabled}\n aria-label={customerAriaLabel}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n aria-label={cardContentLabelAriaLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle} aria-label={badgeAriaLabel}>\n {badge}\n </div>\n ) : null}\n {disabled ? (\n <div className={style.lockWrapper} aria-label={disabledArialabel}>\n {lock}\n </div>\n ) : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.string,\n 'background-aria-label': PropTypes.string,\n 'favorite-aria-label': Favorite.propTypes['aria-label'],\n 'selectable-aria-label': Selectable.propTypes['aria-label'],\n 'customer-aria-label': Customer.propTypes['aria-label'],\n 'badge-aria-label': PropTypes.string,\n 'disabled-aria-label': PropTypes.string,\n 'card-content-aria-label': CardContentInfo.propTypes['aria-label']\n};\nexport default Card;\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,IADW;EAEpBC,YAAY,EAAEC,cAAA,CAAMD;AAFA,CAAf;;;AAKP,MAAME,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,KAAd;EAAqB,cAAcC;AAAnC,CAAD,EAAgD;EAACC;AAAD,CAAhD,KAA2D;EAChF,MAAMC,eAAe,GAAG,IAAAC,kCAAA,EAAkBN,IAAlB,CAAxB;EACA,MAAMO,YAAY,GAAG,mBAAI,gBAAJ,EAAsBH,IAAtB,CAArB;EACA,MAAMI,UAAU,GAAG,mBAAI,cAAJ,EAAoBJ,IAApB,CAAnB;;EAEA,IAAIC,eAAe,IAAII,uCAAA,CAAuBT,IAAvB,CAAvB,EAAqD;IACnD,MAAMU,QAAQ,GAAGD,uCAAA,CAAuBT,IAAvB,EAA6BW,IAA9C;IACA,MAAMC,SAAS,GAAGH,uCAAA,CAAuBT,IAAvB,EAA6Ba,KAA/C;;IACA,MAAMC,cAAc,gBAClB;MAAK,SAAS,EAAEhB,cAAA,CAAMiB;IAAtB,gBACE,6BAAC,QAAD;MAAU,SAAS,EAAEjB,cAAA,CAAMkB;IAA3B,EADF,CADF;;IAMA,IAAIf,KAAJ,EAAW;MACT,MAAMgB,eAAe,gBACnB;QACE,SAAS,EAAE,IAAAC,mBAAA,EACTpB,cAAA,CAAMiB,yBADG,EAET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ByB,UAnBvB;EAoBfC,KAAK,EAAEzB,kBAAA,CAAUwD,KAAV,CAAgB,oBAAK7F,MAAL,CAAhB,CApBQ;EAqBf,cAAcqC,kBAAA,CAAUC,MArBT;EAsBf,yBAAyBD,kBAAA,CAAUC,MAtBpB;EAuBf,uBAAuBwD,iBAAA,CAAS1D,SAAT,CAAmB,YAAnB,CAvBR;EAwBf,yBAAyB2D,mBAAA,CAAW3D,SAAX,CAAqB,YAArB,CAxBV;EAyBf,uBAAuBoD,iBAAA,CAASpD,SAAT,CAAmB,YAAnB,CAzBR;EA0Bf,oBAAoBC,kBAAA,CAAUC,MA1Bf;EA2Bf,uBAAuBD,kBAAA,CAAUC,MA3BlB;EA4Bf,2BAA2BsD,oBAAA,CAAgBxD,SAAhB,CAA0B,YAA1B;AA5BZ,CAAjB;eA8BeI,I"}
@@ -8,10 +8,9 @@
8
8
  @value dark from colors;
9
9
  @value xtraLightGrey from colors;
10
10
  @value white from colors;
11
- @value cm_negative_200 from colors;
12
- @value negative_100 from colors;
13
11
 
14
12
  .default[disabled] {
13
+ pointer-events: none;
15
14
  cursor: inherit;
16
15
  }
17
16
 
@@ -164,7 +163,7 @@
164
163
  }
165
164
 
166
165
  .default[disabled] .imageWrapper {
167
- opacity: 0.8;
166
+ opacity: 0.4;
168
167
  }
169
168
 
170
169
  .lockWrapper {
@@ -187,47 +186,12 @@
187
186
  bottom: 0;
188
187
  content: '';
189
188
  opacity: 0.4;
190
- background: linear-gradient(
191
- to bottom,
192
- black 50%
193
- );
194
- box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.2);
195
- z-index: 1;
196
- }
197
-
198
- .lockWrapper:hover .lockIcon {
199
- background-color: cm_negative_200;
200
- color: white;
201
- }
202
-
203
- .lockWrapper:hover span {
204
- font-weight: 600;
205
- width: 150px;
206
- }
207
-
208
- .lockContent {
209
- display: flex;
210
- gap: 8px;
211
- flex-direction: column;
212
- z-index: 2;
213
- }
214
-
215
- .lockContent span {
216
- width: 134px;
217
- height: 40px;
218
- color: white;
219
- text-align: center;
220
- font-family: 'Gilroy';
221
- font-size: 14px;
222
- line-height: 20px;
189
+ background: black;
223
190
  }
224
191
 
225
192
  .lockIcon {
226
- width: 48px;
227
- background-color: negative_100;
228
- align-self: center;
229
- border-radius: 16px;
230
- color: cm_negative_200;
193
+ font-size: 40px;
194
+ z-index: 1;
231
195
  }
232
196
 
233
197
  .imageWrapper {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";AAsBA,kDAyMC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";AAeA,kDAoLC"}
@@ -15,22 +15,12 @@ var _buttonLinkIconOnly = _interopRequireDefault(require("../../atom/button-link
15
15
 
16
16
  var _inputSwitch = _interopRequireDefault(require("../../atom/input-switch"));
17
17
 
18
- var _title = _interopRequireDefault(require("../../atom/title"));
19
-
20
- var _cardsGrid = _interopRequireDefault(require("../../organism/cards-grid"));
21
-
22
18
  var _style = _interopRequireDefault(require("./style.css"));
23
19
 
24
20
  var _types = _interopRequireDefault(require("./types"));
25
21
 
26
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
23
 
28
- const IconType = {
29
- lockedContent: /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyPadlock, {
30
- className: _style.default.lockIcon
31
- })
32
- };
33
-
34
24
  const CMPopin = props => {
35
25
  const {
36
26
  content,
@@ -45,8 +35,7 @@ const CMPopin = props => {
45
35
  thirdButton,
46
36
  cookieTitle,
47
37
  descriptionBtnTxt,
48
- listBtnSwicth,
49
- items
38
+ listBtnSwicth
50
39
  } = props;
51
40
  const logo = {
52
41
  AlertDiamond: _novaIcons.NovaSolidInterfaceFeedbackInterfaceAlertDiamond,
@@ -61,28 +50,10 @@ const CMPopin = props => {
61
50
  } : null;
62
51
 
63
52
  const renderHeader = () => {
64
- if (header) {
65
- const {
66
- title,
67
- headerIcon,
68
- backgroundImage
69
- } = header;
70
- const TopTitleIcon = IconType[headerIcon];
71
-
72
- if (title) {
73
- return /*#__PURE__*/_react.default.createElement("div", {
74
- className: _style.default.headerContent
75
- }, TopTitleIcon, /*#__PURE__*/_react.default.createElement("div", {
76
- className: _style.default.headerTitle
77
- }, /*#__PURE__*/_react.default.createElement(_title.default, title)));
78
- }
79
-
80
- return /*#__PURE__*/_react.default.createElement("img", {
81
- className: _style.default.headerBackground,
82
- src: backgroundImage
83
- });
84
- }
85
-
53
+ if (header) return /*#__PURE__*/_react.default.createElement("img", {
54
+ className: _style.default.headerBackground,
55
+ src: header
56
+ });
86
57
  if (mode === 'cookie') return /*#__PURE__*/_react.default.createElement("div", {
87
58
  className: _style.default.cookieHeader
88
59
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -144,14 +115,6 @@ const CMPopin = props => {
144
115
  })(listBtnSwicth);
145
116
  };
146
117
 
147
- const renderItems = () => {
148
- const {
149
- type,
150
- list
151
- } = items;
152
- return type === 'content' ? /*#__PURE__*/_react.default.createElement(_cardsGrid.default, list) : null;
153
- };
154
-
155
118
  return /*#__PURE__*/_react.default.createElement("div", {
156
119
  className: mode !== 'cookie' ? _style.default.background : null,
157
120
  style: backgroundImageStyle,
@@ -166,7 +129,7 @@ const CMPopin = props => {
166
129
  "aria-label": 'close-icon',
167
130
  size: "small",
168
131
  icon: "close"
169
- }) : null), mode !== 'items' ? /*#__PURE__*/_react.default.createElement("div", {
132
+ }) : null), /*#__PURE__*/_react.default.createElement("div", {
170
133
  className: mode === 'cookie' || mode === 'information' ? _style.default.cookieTitleContainer : _style.default.titleContainer
171
134
  }, /*#__PURE__*/_react.default.createElement("div", {
172
135
  className: _style.default.contentSection
@@ -185,11 +148,9 @@ const CMPopin = props => {
185
148
  dangerouslySetInnerHTML: {
186
149
  __html: descriptionText
187
150
  }
188
- }) : null) : null, descriptionBtnTxt ? /*#__PURE__*/_react.default.createElement("div", {
151
+ }) : null), descriptionBtnTxt ? /*#__PURE__*/_react.default.createElement("div", {
189
152
  className: _style.default.descriptionBtn
190
- }, descriptionBtnTxt) : null, items ? /*#__PURE__*/_react.default.createElement("div", {
191
- className: _style.default.itemsContainer
192
- }, renderItems()) : null, renderBtnSwitch(), firstButton || secondButton || thirdButton ? /*#__PURE__*/_react.default.createElement("div", {
153
+ }, descriptionBtnTxt) : null, renderBtnSwitch(), firstButton || secondButton || thirdButton ? /*#__PURE__*/_react.default.createElement("div", {
193
154
  className: _style.default.buttonContainer
194
155
  }, firstButton ? /*#__PURE__*/_react.default.createElement("div", {
195
156
  className: firstButton.largeButton ? _style.default.largeButton : _style.default.button