@coorpacademy/components 11.18.8-alpha.6 → 11.18.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +9 -10
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/style.css +5 -41
- package/es/molecule/cm-popin/index.d.ts.map +1 -1
- package/es/molecule/cm-popin/index.js +9 -45
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +0 -29
- package/es/molecule/cm-popin/types.d.ts +1 -31
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js +3 -13
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +1 -0
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/template/app-player/loading/index.d.ts +1 -19
- package/es/template/app-player/player/index.d.ts +2 -38
- package/es/template/app-player/player/slides/index.d.ts +1 -19
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +1 -19
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +1 -19
- package/es/template/app-review/index.d.ts +1 -19
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +1 -19
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +1 -19
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +1 -19
- package/es/template/common/dashboard/index.d.ts +1 -89
- package/es/template/common/dashboard/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.js +2 -4
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/search-page/index.d.ts +0 -70
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +3 -8
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/common/search-page/style.css +0 -5
- package/es/template/external-course/index.d.ts +1 -19
- package/es/variables/colors.css +1 -1
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +7 -9
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/style.css +5 -41
- package/lib/molecule/cm-popin/index.d.ts.map +1 -1
- package/lib/molecule/cm-popin/index.js +8 -47
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +0 -29
- package/lib/molecule/cm-popin/types.d.ts +1 -31
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +3 -15
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +1 -0
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/template/app-player/loading/index.d.ts +1 -19
- package/lib/template/app-player/player/index.d.ts +2 -38
- package/lib/template/app-player/player/slides/index.d.ts +1 -19
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +1 -19
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +1 -19
- package/lib/template/app-review/index.d.ts +1 -19
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +1 -19
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +1 -19
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +1 -19
- package/lib/template/common/dashboard/index.d.ts +1 -89
- package/lib/template/common/dashboard/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.js +2 -4
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/search-page/index.d.ts +0 -70
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +3 -9
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/common/search-page/style.css +0 -5
- package/lib/template/external-course/index.d.ts +1 -19
- package/lib/variables/colors.css +1 -1
- package/package.json +3 -3
- package/es/atom/title/types.d.ts +0 -9
- package/es/atom/title/types.d.ts.map +0 -1
- package/es/atom/title/types.js +0 -2
- package/es/atom/title/types.js.map +0 -1
- package/lib/atom/title/types.d.ts +0 -9
- package/lib/atom/title/types.d.ts.map +0 -1
- package/lib/atom/title/types.js +0 -2
- package/lib/atom/title/types.js.map +0 -1
|
@@ -21,8 +21,6 @@ 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
|
-
|
|
26
24
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
27
25
|
|
|
28
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -40,8 +38,7 @@ const SearchPage = (props, context) => {
|
|
|
40
38
|
moreSortAriaLabel,
|
|
41
39
|
moreFilterAriaLabel,
|
|
42
40
|
filterGroupAriaLabel,
|
|
43
|
-
sortAriaLabel
|
|
44
|
-
popinWithCards
|
|
41
|
+
sortAriaLabel
|
|
45
42
|
} = props;
|
|
46
43
|
const {
|
|
47
44
|
skin
|
|
@@ -71,9 +68,7 @@ const SearchPage = (props, context) => {
|
|
|
71
68
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
72
69
|
className: _style.default.title,
|
|
73
70
|
role: "status"
|
|
74
|
-
}, title), cardsView)
|
|
75
|
-
className: _style.default.popinWithCards
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement(_cmPopin.default, popinWithCards)) : null);
|
|
71
|
+
}, title), cardsView));
|
|
77
72
|
};
|
|
78
73
|
|
|
79
74
|
SearchPage.contextTypes = {
|
|
@@ -89,8 +84,7 @@ SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
89
84
|
moreSortAriaLabel: _propTypes.default.string,
|
|
90
85
|
moreFilterAriaLabel: _propTypes.default.string,
|
|
91
86
|
filterGroupAriaLabel: _propTypes.default.string,
|
|
92
|
-
sortAriaLabel: _propTypes.default.string
|
|
93
|
-
popinWithCards: _propTypes.default.shape(_cmPopin.default.propTypes)
|
|
87
|
+
sortAriaLabel: _propTypes.default.string
|
|
94
88
|
} : {};
|
|
95
89
|
var _default = SearchPage;
|
|
96
90
|
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","
|
|
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,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AAK,EAAEuB,kBAAA,CAAUE,KAAV,CAAgBE,kBAAA,CAAUL,SAA1B,CAJc;EAKrBpB,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"}
|
|
@@ -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<
|
|
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 {
|
package/lib/variables/colors.css
CHANGED
|
@@ -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
|
+
|
|
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.8
|
|
3
|
+
"version": "11.18.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"Soualmi Djamel <djamel.soualmi@coorpacademy.com>"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@coorpacademy/nova-icons": "4.3.
|
|
59
|
+
"@coorpacademy/nova-icons": "4.3.0",
|
|
60
60
|
"@coorpacademy/react-native-animation": "1.0.3",
|
|
61
61
|
"@jwplayer/jwplayer-react": "^1.1.0",
|
|
62
62
|
"@types/react": "^17.0.50",
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"last 2 versions",
|
|
169
169
|
"IE 11"
|
|
170
170
|
],
|
|
171
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "68a6b623b8c46164c1945ce324a2b6891b1c2643"
|
|
172
172
|
}
|
package/es/atom/title/types.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare type TitleProps = {
|
|
2
|
-
title: string;
|
|
3
|
-
subtitle: string;
|
|
4
|
-
type: 'page' | 'form-group';
|
|
5
|
-
'data-name'?: string;
|
|
6
|
-
titleSize: 'standard' | 'medium' | 'small';
|
|
7
|
-
subtitleSize: 'standard' | 'small' | 'small-without-margin' | 'extra-small';
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/title/types.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,YAAY,EAAE,UAAU,GAAG,OAAO,GAAG,sBAAsB,GAAG,aAAa,CAAC;CAC7E,CAAC"}
|
package/es/atom/title/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/atom/title/types.ts"],"sourcesContent":["export type TitleProps = {\n title: string;\n subtitle: string;\n type: 'page' | 'form-group';\n 'data-name'?: string;\n titleSize: 'standard' | 'medium' | 'small';\n subtitleSize: 'standard' | 'small' | 'small-without-margin' | 'extra-small';\n};\n"],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare type TitleProps = {
|
|
2
|
-
title: string;
|
|
3
|
-
subtitle: string;
|
|
4
|
-
type: 'page' | 'form-group';
|
|
5
|
-
'data-name'?: string;
|
|
6
|
-
titleSize: 'standard' | 'medium' | 'small';
|
|
7
|
-
subtitleSize: 'standard' | 'small' | 'small-without-margin' | 'extra-small';
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/title/types.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,YAAY,EAAE,UAAU,GAAG,OAAO,GAAG,sBAAsB,GAAG,aAAa,CAAC;CAC7E,CAAC"}
|
package/lib/atom/title/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/atom/title/types.ts"],"sourcesContent":["export type TitleProps = {\n title: string;\n subtitle: string;\n type: 'page' | 'form-group';\n 'data-name'?: string;\n titleSize: 'standard' | 'medium' | 'small';\n subtitleSize: 'standard' | 'small' | 'small-without-margin' | 'extra-small';\n};\n"],"mappings":""}
|