@coorpacademy/components 11.18.10 → 11.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/title/types.d.ts +9 -0
- package/es/atom/title/types.d.ts.map +1 -0
- package/es/atom/title/types.js +2 -0
- package/es/atom/title/types.js.map +1 -0
- package/es/molecule/card/index.d.ts +1 -0
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +11 -10
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/style.css +47 -5
- package/es/molecule/cm-popin/index.d.ts.map +1 -1
- package/es/molecule/cm-popin/index.js +46 -9
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +32 -0
- package/es/molecule/cm-popin/types.d.ts +31 -1
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js +13 -3
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts +1 -0
- package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/es/template/app-player/loading/index.d.ts +19 -1
- package/es/template/app-player/player/index.d.ts +38 -2
- package/es/template/app-player/player/slides/index.d.ts +19 -1
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +19 -1
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +20 -1
- package/es/template/app-player/popin-end/summary.d.ts +1 -0
- package/es/template/app-review/index.d.ts +19 -1
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +19 -1
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +19 -1
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +19 -1
- package/es/template/common/dashboard/index.d.ts +89 -1
- package/es/template/common/dashboard/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.js +6 -2
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/dashboard/style.css +5 -0
- package/es/template/common/search-page/index.d.ts +71 -0
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +8 -3
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/common/search-page/style.css +5 -0
- package/es/template/external-course/index.d.ts +19 -1
- package/es/template/teams-dashboard/index.d.ts +1 -0
- package/es/variables/colors.css +1 -1
- package/lib/atom/title/types.d.ts +9 -0
- package/lib/atom/title/types.d.ts.map +1 -0
- package/lib/atom/title/types.js +2 -0
- package/lib/atom/title/types.js.map +1 -0
- package/lib/molecule/card/index.d.ts +1 -0
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +10 -8
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/style.css +47 -5
- package/lib/molecule/cm-popin/index.d.ts.map +1 -1
- package/lib/molecule/cm-popin/index.js +48 -8
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +32 -0
- package/lib/molecule/cm-popin/types.d.ts +31 -1
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +15 -3
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts +1 -0
- package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/lib/template/app-player/loading/index.d.ts +19 -1
- package/lib/template/app-player/player/index.d.ts +38 -2
- package/lib/template/app-player/player/slides/index.d.ts +19 -1
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +19 -1
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +20 -1
- package/lib/template/app-player/popin-end/summary.d.ts +1 -0
- package/lib/template/app-review/index.d.ts +19 -1
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +19 -1
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +19 -1
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +19 -1
- package/lib/template/common/dashboard/index.d.ts +89 -1
- package/lib/template/common/dashboard/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.js +6 -2
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/dashboard/style.css +5 -0
- package/lib/template/common/search-page/index.d.ts +71 -0
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +9 -3
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/common/search-page/style.css +5 -0
- package/lib/template/external-course/index.d.ts +19 -1
- package/lib/template/teams-dashboard/index.d.ts +1 -0
- package/lib/variables/colors.css +1 -1
- package/package.json +3 -3
|
@@ -729,7 +729,18 @@ declare namespace BrandUpdate {
|
|
|
729
729
|
export const popin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
730
730
|
content: PropTypes.Requireable<string>;
|
|
731
731
|
mode: PropTypes.Requireable<string>;
|
|
732
|
-
header: PropTypes.Requireable<
|
|
732
|
+
header: PropTypes.Requireable<PropTypes.InferProps<{
|
|
733
|
+
title: PropTypes.Requireable<PropTypes.InferProps<{
|
|
734
|
+
title: PropTypes.Requireable<string>;
|
|
735
|
+
subtitle: PropTypes.Requireable<string>;
|
|
736
|
+
type: PropTypes.Requireable<string>;
|
|
737
|
+
'data-name': PropTypes.Requireable<string>;
|
|
738
|
+
titleSize: PropTypes.Requireable<string>;
|
|
739
|
+
subtitleSize: PropTypes.Requireable<string>;
|
|
740
|
+
}>>;
|
|
741
|
+
headerIcon: PropTypes.Requireable<string>;
|
|
742
|
+
backgroundImage: PropTypes.Requireable<string>;
|
|
743
|
+
}>>;
|
|
733
744
|
firstButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
734
745
|
label: PropTypes.Requireable<string>;
|
|
735
746
|
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -777,6 +788,13 @@ declare namespace BrandUpdate {
|
|
|
777
788
|
'data-name': PropTypes.Requireable<string>;
|
|
778
789
|
requiredSelection: PropTypes.Requireable<boolean>;
|
|
779
790
|
}> | null | undefined)[]>;
|
|
791
|
+
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
792
|
+
type: PropTypes.Requireable<string>;
|
|
793
|
+
list: PropTypes.Requireable<PropTypes.InferProps<{
|
|
794
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
795
|
+
loading: PropTypes.Requireable<boolean>;
|
|
796
|
+
}>>;
|
|
797
|
+
}>>;
|
|
780
798
|
}>>;
|
|
781
799
|
export const details: PropTypes.Requireable<PropTypes.InferProps<{
|
|
782
800
|
key: PropTypes.Requireable<string>;
|
|
@@ -8,7 +8,18 @@ declare namespace Dashboard {
|
|
|
8
8
|
cookie: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
9
|
content: PropTypes.Requireable<string>;
|
|
10
10
|
mode: PropTypes.Requireable<string>;
|
|
11
|
-
header: PropTypes.Requireable<
|
|
11
|
+
header: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
|
+
title: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
|
+
title: PropTypes.Requireable<string>;
|
|
14
|
+
subtitle: PropTypes.Requireable<string>;
|
|
15
|
+
type: PropTypes.Requireable<string>;
|
|
16
|
+
'data-name': PropTypes.Requireable<string>;
|
|
17
|
+
titleSize: PropTypes.Requireable<string>;
|
|
18
|
+
subtitleSize: PropTypes.Requireable<string>;
|
|
19
|
+
}>>;
|
|
20
|
+
headerIcon: PropTypes.Requireable<string>;
|
|
21
|
+
backgroundImage: PropTypes.Requireable<string>;
|
|
22
|
+
}>>;
|
|
12
23
|
firstButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
24
|
label: PropTypes.Requireable<string>;
|
|
14
25
|
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -56,11 +67,88 @@ declare namespace Dashboard {
|
|
|
56
67
|
'data-name': PropTypes.Requireable<string>;
|
|
57
68
|
requiredSelection: PropTypes.Requireable<boolean>;
|
|
58
69
|
}> | null | undefined)[]>;
|
|
70
|
+
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
71
|
+
type: PropTypes.Requireable<string>;
|
|
72
|
+
list: PropTypes.Requireable<PropTypes.InferProps<{
|
|
73
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
74
|
+
loading: PropTypes.Requireable<boolean>;
|
|
75
|
+
}>>;
|
|
76
|
+
}>>;
|
|
59
77
|
}>>;
|
|
60
78
|
'arrows-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
61
79
|
showMoreOnLeftAriaLabel: PropTypes.Requireable<string>;
|
|
62
80
|
showMoreOnRightAriaLabel: PropTypes.Requireable<string>;
|
|
63
81
|
}>>;
|
|
82
|
+
popinWithCards: PropTypes.Requireable<PropTypes.InferProps<{
|
|
83
|
+
content: PropTypes.Requireable<string>;
|
|
84
|
+
mode: PropTypes.Requireable<string>;
|
|
85
|
+
header: PropTypes.Requireable<PropTypes.InferProps<{
|
|
86
|
+
title: PropTypes.Requireable<PropTypes.InferProps<{
|
|
87
|
+
title: PropTypes.Requireable<string>;
|
|
88
|
+
subtitle: PropTypes.Requireable<string>;
|
|
89
|
+
type: PropTypes.Requireable<string>;
|
|
90
|
+
'data-name': PropTypes.Requireable<string>;
|
|
91
|
+
titleSize: PropTypes.Requireable<string>;
|
|
92
|
+
subtitleSize: PropTypes.Requireable<string>;
|
|
93
|
+
}>>;
|
|
94
|
+
headerIcon: PropTypes.Requireable<string>;
|
|
95
|
+
backgroundImage: PropTypes.Requireable<string>;
|
|
96
|
+
}>>;
|
|
97
|
+
firstButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
98
|
+
label: PropTypes.Requireable<string>;
|
|
99
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
100
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
101
|
+
largeButton: PropTypes.Requireable<boolean>;
|
|
102
|
+
type: PropTypes.Requireable<string>;
|
|
103
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
104
|
+
}>>;
|
|
105
|
+
secondButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
106
|
+
label: PropTypes.Requireable<string>;
|
|
107
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
108
|
+
type: PropTypes.Requireable<string>;
|
|
109
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
110
|
+
largeButton: PropTypes.Requireable<boolean>;
|
|
111
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
112
|
+
}>>;
|
|
113
|
+
thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
114
|
+
label: PropTypes.Requireable<string>;
|
|
115
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
116
|
+
type: PropTypes.Requireable<string>;
|
|
117
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
118
|
+
largeButton: PropTypes.Requireable<boolean>;
|
|
119
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
120
|
+
}>>;
|
|
121
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
122
|
+
icon: PropTypes.Requireable<string>;
|
|
123
|
+
backgroundImageUrl: PropTypes.Requireable<string>;
|
|
124
|
+
descriptionText: PropTypes.Requireable<string>;
|
|
125
|
+
cookieTitle: PropTypes.Requireable<string>;
|
|
126
|
+
descriptionBtnTxt: PropTypes.Requireable<string>;
|
|
127
|
+
listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
128
|
+
title: PropTypes.Requireable<string>;
|
|
129
|
+
name: PropTypes.Requireable<string>;
|
|
130
|
+
id: PropTypes.Requireable<string>;
|
|
131
|
+
value: PropTypes.Requireable<boolean>;
|
|
132
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
133
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
134
|
+
description: PropTypes.Requireable<string>;
|
|
135
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
136
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
137
|
+
modified: PropTypes.Requireable<boolean>;
|
|
138
|
+
titlePosition: PropTypes.Requireable<string>;
|
|
139
|
+
theme: PropTypes.Requireable<string>;
|
|
140
|
+
details: PropTypes.Requireable<string>;
|
|
141
|
+
'data-name': PropTypes.Requireable<string>;
|
|
142
|
+
requiredSelection: PropTypes.Requireable<boolean>;
|
|
143
|
+
}> | null | undefined)[]>;
|
|
144
|
+
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
145
|
+
type: PropTypes.Requireable<string>;
|
|
146
|
+
list: PropTypes.Requireable<PropTypes.InferProps<{
|
|
147
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
148
|
+
loading: PropTypes.Requireable<boolean>;
|
|
149
|
+
}>>;
|
|
150
|
+
}>>;
|
|
151
|
+
}>>;
|
|
64
152
|
};
|
|
65
153
|
}
|
|
66
154
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAqBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAqBA,oDAkDC"}
|
|
@@ -49,6 +49,7 @@ const Dashboard = props => {
|
|
|
49
49
|
hero,
|
|
50
50
|
welcome,
|
|
51
51
|
cookie,
|
|
52
|
+
popinWithCards,
|
|
52
53
|
'arrows-aria-label': showMoreOnLeftOrRightAriaLabel
|
|
53
54
|
} = props;
|
|
54
55
|
|
|
@@ -102,7 +103,9 @@ const Dashboard = props => {
|
|
|
102
103
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
103
104
|
className: _style.default.wrapper,
|
|
104
105
|
"data-name": "dashboard"
|
|
105
|
-
}, sectionsList, cookie ? /*#__PURE__*/_react.default.createElement(_cmPopin.default, cookie) : null
|
|
106
|
+
}, sectionsList, cookie ? /*#__PURE__*/_react.default.createElement(_cmPopin.default, cookie) : null, popinWithCards ? /*#__PURE__*/_react.default.createElement("div", {
|
|
107
|
+
className: _style.default.popinWithCards
|
|
108
|
+
}, /*#__PURE__*/_react.default.createElement(_cmPopin.default, popinWithCards)) : null);
|
|
106
109
|
};
|
|
107
110
|
|
|
108
111
|
Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -110,7 +113,8 @@ Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
110
113
|
welcome: Hero.propTypes.welcome,
|
|
111
114
|
sections: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_battleRequestList.default.propTypes), _propTypes.default.shape(_cardsList.default.propTypes), _propTypes.default.shape(_newsList.default.propTypes), _propTypes.default.shape(_startBattle.default.propTypes), _propTypes.default.shape(_reviewBanner.default.propTypes)])),
|
|
112
115
|
cookie: _propTypes.default.shape(_cmPopin.default.propTypes),
|
|
113
|
-
'arrows-aria-label': _cardsList.default.propTypes['arrows-aria-label']
|
|
116
|
+
'arrows-aria-label': _cardsList.default.propTypes['arrows-aria-label'],
|
|
117
|
+
popinWithCards: _propTypes.default.shape(_cmPopin.default.propTypes)
|
|
114
118
|
} : {};
|
|
115
119
|
var _default = Dashboard;
|
|
116
120
|
exports.default = _default;
|
|
@@ -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,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;
|
|
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 ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : 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":"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"}
|
|
@@ -144,6 +144,7 @@ declare namespace SearchPage {
|
|
|
144
144
|
badgeCategory: PropTypes.Requireable<string>;
|
|
145
145
|
badgeLabel: PropTypes.Requireable<string>;
|
|
146
146
|
theme: PropTypes.Requireable<string>;
|
|
147
|
+
disabledContent: PropTypes.Requireable<string>;
|
|
147
148
|
'aria-label': PropTypes.Requireable<string>;
|
|
148
149
|
'background-aria-label': PropTypes.Requireable<string>;
|
|
149
150
|
'favorite-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -176,6 +177,76 @@ declare namespace SearchPage {
|
|
|
176
177
|
const moreFilterAriaLabel: PropTypes.Requireable<string>;
|
|
177
178
|
const filterGroupAriaLabel: PropTypes.Requireable<string>;
|
|
178
179
|
const sortAriaLabel: PropTypes.Requireable<string>;
|
|
180
|
+
const popinWithCards: PropTypes.Requireable<PropTypes.InferProps<{
|
|
181
|
+
content: PropTypes.Requireable<string>;
|
|
182
|
+
mode: PropTypes.Requireable<string>;
|
|
183
|
+
header: PropTypes.Requireable<PropTypes.InferProps<{
|
|
184
|
+
title: PropTypes.Requireable<PropTypes.InferProps<{
|
|
185
|
+
title: PropTypes.Requireable<string>;
|
|
186
|
+
subtitle: PropTypes.Requireable<string>;
|
|
187
|
+
type: PropTypes.Requireable<string>;
|
|
188
|
+
'data-name': PropTypes.Requireable<string>;
|
|
189
|
+
titleSize: PropTypes.Requireable<string>;
|
|
190
|
+
subtitleSize: PropTypes.Requireable<string>;
|
|
191
|
+
}>>;
|
|
192
|
+
headerIcon: PropTypes.Requireable<string>;
|
|
193
|
+
backgroundImage: PropTypes.Requireable<string>;
|
|
194
|
+
}>>;
|
|
195
|
+
firstButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
196
|
+
label: PropTypes.Requireable<string>;
|
|
197
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
198
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
199
|
+
largeButton: PropTypes.Requireable<boolean>;
|
|
200
|
+
type: PropTypes.Requireable<string>;
|
|
201
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
202
|
+
}>>;
|
|
203
|
+
secondButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
204
|
+
label: PropTypes.Requireable<string>;
|
|
205
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
206
|
+
type: PropTypes.Requireable<string>;
|
|
207
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
208
|
+
largeButton: PropTypes.Requireable<boolean>;
|
|
209
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
210
|
+
}>>;
|
|
211
|
+
thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
212
|
+
label: PropTypes.Requireable<string>;
|
|
213
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
214
|
+
type: PropTypes.Requireable<string>;
|
|
215
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
216
|
+
largeButton: PropTypes.Requireable<boolean>;
|
|
217
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
218
|
+
}>>;
|
|
219
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
220
|
+
icon: PropTypes.Requireable<string>;
|
|
221
|
+
backgroundImageUrl: PropTypes.Requireable<string>;
|
|
222
|
+
descriptionText: PropTypes.Requireable<string>;
|
|
223
|
+
cookieTitle: PropTypes.Requireable<string>;
|
|
224
|
+
descriptionBtnTxt: PropTypes.Requireable<string>;
|
|
225
|
+
listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
226
|
+
title: PropTypes.Requireable<string>;
|
|
227
|
+
name: PropTypes.Requireable<string>;
|
|
228
|
+
id: PropTypes.Requireable<string>;
|
|
229
|
+
value: PropTypes.Requireable<boolean>;
|
|
230
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
231
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
232
|
+
description: PropTypes.Requireable<string>;
|
|
233
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
234
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
235
|
+
modified: PropTypes.Requireable<boolean>;
|
|
236
|
+
titlePosition: PropTypes.Requireable<string>;
|
|
237
|
+
theme: PropTypes.Requireable<string>;
|
|
238
|
+
details: PropTypes.Requireable<string>;
|
|
239
|
+
'data-name': PropTypes.Requireable<string>;
|
|
240
|
+
requiredSelection: PropTypes.Requireable<boolean>;
|
|
241
|
+
}> | null | undefined)[]>;
|
|
242
|
+
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
243
|
+
type: PropTypes.Requireable<string>;
|
|
244
|
+
list: PropTypes.Requireable<PropTypes.InferProps<{
|
|
245
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
246
|
+
loading: PropTypes.Requireable<boolean>;
|
|
247
|
+
}>>;
|
|
248
|
+
}>>;
|
|
249
|
+
}>>;
|
|
179
250
|
}
|
|
180
251
|
}
|
|
181
252
|
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":";
|
|
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;
|
|
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,IAAnC,CAArB;EAEA,MAAME,mBAAmB,GAAG,uBAAQR,eAAR,IAA2B,IAA3B,gBAAkC,6BAAC,kBAAD,EAAeA,eAAf,CAA9D;EAEA,MAAMS,SAAS,GAAG,uBAAQZ,KAAK,CAACa,IAAd,iBAChB,uDACE;IAAK,SAAS,EAAEC,cAAA,CAAMC;EAAtB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAME;EAAtB,GAAqCf,cAArC,CADF,eAEE,6BAAC,eAAD,eACMC,YADN;IAEE,aAAU,iBAFZ;IAGE,SAAS,EAAEY,cAAA,CAAMG,KAHnB;IAIE,KAAK,EAAE;MAACC,UAAU,EAAER;IAAb,CAJT;IAKE,IAAI,EAAC;EALP,GAFF,CADF,EAWGC,mBAXH,CADgB,gBAehB,6BAAC,kBAAD,EAAeX,KAAf,CAfF;EAkBA,oBACE,uDACE,6BAAC,gBAAD,eACMD,aADN;IAEE,iBAAiB,EAAEK,iBAFrB;IAGE,mBAAmB,EAAEC,mBAHvB;IAIE,oBAAoB,EAAEC,oBAJxB;IAKE,aAAa,EAAEC;EALjB,GADF,eAQE;IAAK,aAAU,cAAf;IAA8B,SAAS,EAAEO,cAAA,CAAMK;EAA/C,gBACE;IAAK,SAAS,EAAEL,cAAA,CAAMhB,KAAtB;IAA6B,IAAI,EAAC;EAAlC,GACGA,KADH,CADF,EAIGc,SAJH,CARF,EAcGJ,cAAc,gBACb;IAAK,SAAS,EAAEM,cAAA,CAAMN;EAAtB,gBACE,6BAAC,gBAAD,EAAaA,cAAb,CADF,CADa,GAIX,IAlBN,CADF;AAsBD,CA5DD;;AA8DAb,UAAU,CAACyB,YAAX,GAA0B;EACxBX,IAAI,EAAEY,iBAAA,CAASC,iBAAT,CAA2Bb;AADT,CAA1B;AAIAd,UAAU,CAAC4B,SAAX,2CAAuB;EACrBtB,cAAc,EAAEuB,kBAAA,CAAUC,MADL;EAErB3B,KAAK,EAAE0B,kBAAA,CAAUC,MAFI;EAGrB1B,aAAa,EAAEyB,kBAAA,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"}
|
|
@@ -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<
|
|
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 {
|
|
@@ -70,6 +70,7 @@ declare namespace TeamsDashboard {
|
|
|
70
70
|
badgeCategory: PropTypes.Requireable<string>;
|
|
71
71
|
badgeLabel: PropTypes.Requireable<string>;
|
|
72
72
|
theme: PropTypes.Requireable<string>;
|
|
73
|
+
disabledContent: PropTypes.Requireable<string>;
|
|
73
74
|
'aria-label': PropTypes.Requireable<string>;
|
|
74
75
|
'background-aria-label': PropTypes.Requireable<string>;
|
|
75
76
|
'favorite-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
package/lib/variables/colors.css
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
@value box_shadow_medium_dark: rgba(0, 0, 0, 0.2);
|
|
74
74
|
@value box_shadow_orange_700: rgba(255, 84, 31, 0.15);
|
|
75
75
|
@value light_blue: #ADC9F5;
|
|
76
|
-
|
|
76
|
+
@value negative_100: #FCDADA;
|
|
77
77
|
@value go1_backgound: #144953;
|
|
78
78
|
@value go1_primary: #D5FD42;
|
|
79
79
|
@value go1_primary_hover: #BFE33B;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.19.0",
|
|
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.
|
|
59
|
+
"@coorpacademy/nova-icons": "4.4.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": "19df2f7c1fd3096dca5c50d7dcee7fe9c9b893b9"
|
|
172
172
|
}
|