@coorpacademy/components 11.18.3 → 11.18.4-alpha.3

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 (83) hide show
  1. package/es/atom/title/types.d.ts +9 -0
  2. package/es/atom/title/types.d.ts.map +1 -0
  3. package/es/atom/title/types.js +2 -0
  4. package/es/atom/title/types.js.map +1 -0
  5. package/es/molecule/card/index.d.ts.map +1 -1
  6. package/es/molecule/card/index.js +10 -9
  7. package/es/molecule/card/index.js.map +1 -1
  8. package/es/molecule/card/style.css +41 -5
  9. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  10. package/es/molecule/cm-popin/index.js +45 -9
  11. package/es/molecule/cm-popin/index.js.map +1 -1
  12. package/es/molecule/cm-popin/style.css +29 -0
  13. package/es/molecule/cm-popin/types.d.ts +31 -1
  14. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  15. package/es/molecule/cm-popin/types.js +13 -3
  16. package/es/molecule/cm-popin/types.js.map +1 -1
  17. package/es/template/app-player/loading/index.d.ts +19 -1
  18. package/es/template/app-player/player/index.d.ts +38 -2
  19. package/es/template/app-player/player/slides/index.d.ts +19 -1
  20. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  21. package/es/template/app-player/popin-correction/index.d.ts +19 -1
  22. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  23. package/es/template/app-player/popin-end/index.d.ts +19 -1
  24. package/es/template/app-review/index.d.ts +19 -1
  25. package/es/template/app-review/index.d.ts.map +1 -1
  26. package/es/template/app-review/player/prop-types.d.ts +19 -1
  27. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  28. package/es/template/app-review/prop-types.d.ts +19 -1
  29. package/es/template/app-review/prop-types.d.ts.map +1 -1
  30. package/es/template/back-office/brand-update/index.d.ts +19 -1
  31. package/es/template/common/dashboard/index.d.ts +89 -1
  32. package/es/template/common/dashboard/index.d.ts.map +1 -1
  33. package/es/template/common/dashboard/index.js +4 -2
  34. package/es/template/common/dashboard/index.js.map +1 -1
  35. package/es/template/common/search-page/index.d.ts +70 -0
  36. package/es/template/common/search-page/index.d.ts.map +1 -1
  37. package/es/template/common/search-page/index.js +8 -3
  38. package/es/template/common/search-page/index.js.map +1 -1
  39. package/es/template/common/search-page/style.css +5 -0
  40. package/es/template/external-course/index.d.ts +19 -1
  41. package/es/variables/colors.css +1 -1
  42. package/lib/atom/title/types.d.ts +9 -0
  43. package/lib/atom/title/types.d.ts.map +1 -0
  44. package/lib/atom/title/types.js +2 -0
  45. package/lib/atom/title/types.js.map +1 -0
  46. package/lib/molecule/card/index.d.ts.map +1 -1
  47. package/lib/molecule/card/index.js +9 -7
  48. package/lib/molecule/card/index.js.map +1 -1
  49. package/lib/molecule/card/style.css +41 -5
  50. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  51. package/lib/molecule/cm-popin/index.js +47 -8
  52. package/lib/molecule/cm-popin/index.js.map +1 -1
  53. package/lib/molecule/cm-popin/style.css +29 -0
  54. package/lib/molecule/cm-popin/types.d.ts +31 -1
  55. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  56. package/lib/molecule/cm-popin/types.js +15 -3
  57. package/lib/molecule/cm-popin/types.js.map +1 -1
  58. package/lib/template/app-player/loading/index.d.ts +19 -1
  59. package/lib/template/app-player/player/index.d.ts +38 -2
  60. package/lib/template/app-player/player/slides/index.d.ts +19 -1
  61. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  62. package/lib/template/app-player/popin-correction/index.d.ts +19 -1
  63. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  64. package/lib/template/app-player/popin-end/index.d.ts +19 -1
  65. package/lib/template/app-review/index.d.ts +19 -1
  66. package/lib/template/app-review/index.d.ts.map +1 -1
  67. package/lib/template/app-review/player/prop-types.d.ts +19 -1
  68. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  69. package/lib/template/app-review/prop-types.d.ts +19 -1
  70. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  71. package/lib/template/back-office/brand-update/index.d.ts +19 -1
  72. package/lib/template/common/dashboard/index.d.ts +89 -1
  73. package/lib/template/common/dashboard/index.d.ts.map +1 -1
  74. package/lib/template/common/dashboard/index.js +4 -2
  75. package/lib/template/common/dashboard/index.js.map +1 -1
  76. package/lib/template/common/search-page/index.d.ts +70 -0
  77. package/lib/template/common/search-page/index.d.ts.map +1 -1
  78. package/lib/template/common/search-page/index.js +9 -3
  79. package/lib/template/common/search-page/index.js.map +1 -1
  80. package/lib/template/common/search-page/style.css +5 -0
  81. package/lib/template/external-course/index.d.ts +19 -1
  82. package/lib/variables/colors.css +1 -1
  83. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Hero","React","memo","hero","welcome","style","propTypes","PropTypes","shape","HeroCard","Slide","Dashboard","props","sections","cookie","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType","BattleRequestList","CardsList","NewsList","StartBattle","ReviewBanner","CMPopin"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label']\n};\nexport default Dashboard;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,IAAI,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,IAAT,CAAc;EAACG,IAAD;EAAOC;AAAP,CAAd,EAA+B;EACrD,oBAAO;IAAK,SAAS,EAAEC,cAAA,CAAMF;EAAtB,GAA6BA,IAAI,gBAAG,6BAAC,aAAD,EAAcA,IAAd,CAAH,gBAA4B,6BAAC,cAAD,EAAWC,OAAX,CAA7D,CAAP;AACD,CAFY,C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QAAjC,EAA2CW,GAA3C,CAA+CP,OAAO,iBACzE;IAAK,GAAG,EAAEA,OAAO,CAACM;EAAlB,GAAwBJ,YAAY,CAACF,OAAD,CAApC,CADmB,CAArB;EAGA,oBACE;IAAK,SAAS,EAAEZ,cAAA,CAAMoB,OAAtB;IAA+B,aAAU;EAAzC,GACGH,YADH,EAEGR,MAAM,gBAAG,6BAAC,gBAAD,EAAaA,MAAb,CAAH,GAA6B,IAFtC,CADF;AAMD,CA5CD;;AA8CAH,SAAS,CAACL,SAAV,2CAAsB;EACpBH,IAAI,EAAEH,IAAI,CAACM,SAAL,CAAeH,IADD;EAEpBC,OAAO,EAAEJ,IAAI,CAACM,SAAL,CAAeF,OAFJ;EAGpBS,QAAQ,EAAEN,kBAAA,CAAUmB,OAAV,CACRnB,kBAAA,CAAUoB,SAAV,CAAoB,CAClBpB,kBAAA,CAAUC,KAAV,CAAgBoB,0BAAA,CAAkBtB,SAAlC,CADkB,EAElBC,kBAAA,CAAUC,KAAV,CAAgBqB,kBAAA,CAAUvB,SAA1B,CAFkB,EAGlBC,kBAAA,CAAUC,KAAV,CAAgBsB,iBAAA,CAASxB,SAAzB,CAHkB,EAIlBC,kBAAA,CAAUC,KAAV,CAAgBuB,oBAAA,CAAYzB,SAA5B,CAJkB,EAKlBC,kBAAA,CAAUC,KAAV,CAAgBwB,qBAAA,CAAa1B,SAA7B,CALkB,CAApB,CADQ,CAHU;EAYpBQ,MAAM,EAAEP,kBAAA,CAAUC,KAAV,CAAgByB,gBAAA,CAAQ3B,SAAxB,CAZY;EAapB,qBAAqBuB,kBAAA,CAAUvB,SAAV,CAAoB,mBAApB;AAbD,CAAtB;eAeeK,S"}
1
+ {"version":3,"file":"index.js","names":["Hero","React","memo","hero","welcome","style","propTypes","PropTypes","shape","HeroCard","Slide","Dashboard","props","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType","BattleRequestList","CardsList","NewsList","StartBattle","ReviewBanner","CMPopin"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? <CMPopin {...popinWithCards} /> : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,IAAI,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,IAAT,CAAc;EAACG,IAAD;EAAOC;AAAP,CAAd,EAA+B;EACrD,oBAAO;IAAK,SAAS,EAAEC,cAAA,CAAMF;EAAtB,GAA6BA,IAAI,gBAAG,6BAAC,aAAD,EAAcA,IAAd,CAAH,gBAA4B,6BAAC,cAAD,EAAWC,OAAX,CAA7D,CAAP;AACD,CAFY,CAAb;;AAIAJ,IAAI,CAACM,SAAL,2CAAiB;EACfH,IAAI,EAAEI,kBAAA,CAAUC,KAAV,CAAgBC,aAAA,CAASH,SAAzB,CADS;EAEfF,OAAO,EAAEG,kBAAA,CAAUC,KAAV,CAAgBE,cAAA,CAAMJ,SAAtB;AAFM,CAAjB;;AAKA,MAAMK,SAAS,GAAGC,KAAK,IAAI;EACzB,MAAM;IACJC,QAAQ,GAAG,EADP;IAEJV,IAFI;IAGJC,OAHI;IAIJU,MAJI;IAKJC,cALI;IAMJ,qBAAqBC;EANjB,IAOFJ,KAPJ;;EASA,MAAMK,qBAAqB,GAAGC,OAAO,IAAI;IACvC,MAAM;MAACC;IAAD,IAASD,OAAf;;IACA,QAAQC,IAAR;MACE,KAAK,MAAL;QACE,oBAAO,6BAAC,IAAD;UAAM,IAAI,EAAEhB,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J;EAGpBS,QAAQ,EAAEN,kBAAA,CAAUoB,OAAV,CACRpB,kBAAA,CAAUqB,SAAV,CAAoB,CAClBrB,kBAAA,CAAUC,KAAV,CAAgBqB,0BAAA,CAAkBvB,SAAlC,CADkB,EAElBC,kBAAA,CAAUC,KAAV,CAAgBsB,kBAAA,CAAUxB,SAA1B,CAFkB,EAGlBC,kBAAA,CAAUC,KAAV,CAAgBuB,iBAAA,CAASzB,SAAzB,CAHkB,EAIlBC,kBAAA,CAAUC,KAAV,CAAgBwB,oBAAA,CAAY1B,SAA5B,CAJkB,EAKlBC,kBAAA,CAAUC,KAAV,CAAgByB,qBAAA,CAAa3B,SAA7B,CALkB,CAApB,CADQ,CAHU;EAYpBQ,MAAM,EAAEP,kBAAA,CAAUC,KAAV,CAAgB0B,gBAAA,CAAQ5B,SAAxB,CAZY;EAapB,qBAAqBwB,kBAAA,CAAUxB,SAAV,CAAoB,mBAApB,CAbD;EAcpBS,cAAc,EAAER,kBAAA,CAAUC,KAAV,CAAgB0B,gBAAA,CAAQ5B,SAAxB;AAdI,CAAtB;eAgBeK,S"}
@@ -125,6 +125,76 @@ 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
+ }>>;
128
198
  }
129
199
  }
130
200
  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":";AAUA,mEAsDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAWA,mEA4DC"}
@@ -21,6 +21,8 @@ var _cardsGrid = _interopRequireDefault(require("../../../organism/cards-grid"))
21
21
 
22
22
  var _cardsList = _interopRequireDefault(require("../../../molecule/dashboard/cards-list"));
23
23
 
24
+ var _cmPopin = _interopRequireDefault(require("../../../molecule/cm-popin"));
25
+
24
26
  var _style = _interopRequireDefault(require("./style.css"));
25
27
 
26
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -38,7 +40,8 @@ const SearchPage = (props, context) => {
38
40
  moreSortAriaLabel,
39
41
  moreFilterAriaLabel,
40
42
  filterGroupAriaLabel,
41
- sortAriaLabel
43
+ sortAriaLabel,
44
+ popinWithCards
42
45
  } = props;
43
46
  const {
44
47
  skin
@@ -68,7 +71,9 @@ const SearchPage = (props, context) => {
68
71
  }, /*#__PURE__*/_react.default.createElement("div", {
69
72
  className: _style.default.title,
70
73
  role: "status"
71
- }, title), cardsView));
74
+ }, title), cardsView), popinWithCards ? /*#__PURE__*/_react.default.createElement("div", {
75
+ className: _style.default.popinWithCards
76
+ }, /*#__PURE__*/_react.default.createElement(_cmPopin.default, popinWithCards)) : null);
72
77
  };
73
78
 
74
79
  SearchPage.contextTypes = {
@@ -84,7 +89,8 @@ SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
84
89
  moreSortAriaLabel: _propTypes.default.string,
85
90
  moreFilterAriaLabel: _propTypes.default.string,
86
91
  filterGroupAriaLabel: _propTypes.default.string,
87
- sortAriaLabel: _propTypes.default.string
92
+ sortAriaLabel: _propTypes.default.string,
93
+ popinWithCards: _propTypes.default.shape(_cmPopin.default.propTypes)
88
94
  } : {};
89
95
  var _default = SearchPage;
90
96
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","style","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","shape","Filters","CardsGrid","Button","CardsList"],"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;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,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;EAVI,IAWFX,KAXJ;EAaA,MAAM;IAACY;EAAD,IAASX,OAAf;EACA,MAAMY,YAAY,GAAG,qBAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;EAEA,MA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AKrBpB,YAAY,EAAEqB,kBAAA,CAAUE,KAAV,CAAgBG,eAAA,CAAON,SAAvB,CALO;EAMrBnB,eAAe,EAAEoB,kBAAA,CAAUE,KAAV,CAAgBI,kBAAA,CAAUP,SAA1B,CANI;EAOrBlB,iBAAiB,EAAEmB,kBAAA,CAAUC,MAPR;EAQrBnB,mBAAmB,EAAEkB,kBAAA,CAAUC,MARV;EASrBlB,oBAAoB,EAAEiB,kBAAA,CAAUC,MATX;EAUrBjB,aAAa,EAAEgB,kBAAA,CAAUC;AAVJ,CAAvB;eAae7B,U"}
1
+ {"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","skin","defaultColor","recommendationsView","cardsView","list","style","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","shape","Filters","CardsGrid","Button","CardsList","CMPopin"],"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;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,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;IAWJC;EAXI,IAYFZ,KAZJ;EAcA,MAAM;IAACa;EAAD,IAASZ,OAAf;EACA,MAAMa,YAAY,GAAG,qBAAM,SAAN,EAAiB,gBAAjB,EAAmCD,I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AAA,CAAUE,KAAV,CAAgBC,gBAAA,CAAQJ,SAAxB,CAHM;EAIrBvB,KAAK,EAAEwB,kBAAA,CAAUE,KAAV,CAAgBE,kBAAA,CAAUL,SAA1B,CAJc;EAKrBrB,YAAY,EAAEsB,kBAAA,CAAUE,KAAV,CAAgBG,eAAA,CAAON,SAAvB,CALO;EAMrBpB,eAAe,EAAEqB,kBAAA,CAAUE,KAAV,CAAgBI,kBAAA,CAAUP,SAA1B,CANI;EAOrBnB,iBAAiB,EAAEoB,kBAAA,CAAUC,MAPR;EAQrBpB,mBAAmB,EAAEmB,kBAAA,CAAUC,MARV;EASrBnB,oBAAoB,EAAEkB,kBAAA,CAAUC,MATX;EAUrBlB,aAAa,EAAEiB,kBAAA,CAAUC,MAVJ;EAWrBjB,cAAc,EAAEgB,kBAAA,CAAUE,KAAV,CAAgBK,gBAAA,CAAQR,SAAxB;AAXK,CAAvB;eAce5B,U"}
@@ -50,6 +50,11 @@
50
50
  color: black;
51
51
  }
52
52
 
53
+ .popinWithCards {
54
+ position: relative;
55
+ z-index: 5;
56
+ }
57
+
53
58
  @media mobile {
54
59
  .cardsWrapper {
55
60
  padding: 5px 0;
@@ -25,7 +25,18 @@ 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<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
+ }>>;
29
40
  firstButton: PropTypes.Requireable<PropTypes.InferProps<{
30
41
  label: PropTypes.Requireable<string>;
31
42
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -73,6 +84,13 @@ declare namespace ExternalCourse {
73
84
  'data-name': PropTypes.Requireable<string>;
74
85
  requiredSelection: PropTypes.Requireable<boolean>;
75
86
  }> | 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
+ }>>;
76
94
  }>>;
77
95
  }
78
96
  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
-
75
+ @value negative_100: #FCDADA;
76
76
  @value go1_backgound: #144953;
77
77
  @value go1_primary: #D5FD42;
78
78
  @value go1_primary_hover: #BFE33B;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.18.3",
3
+ "version": "11.18.4-alpha.3+8677ead79",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -168,5 +168,5 @@
168
168
  "last 2 versions",
169
169
  "IE 11"
170
170
  ],
171
- "gitHead": "993bd6b5210142639122f5f65978b9ba4fde043f"
171
+ "gitHead": "8677ead79bbbde9f0e9221fad9b0b763d14b2e10"
172
172
  }