@coorpacademy/components 11.20.0 → 11.20.2
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/style.css +1 -1
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +6 -2
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/style.css +2 -2
- package/es/molecule/cm-popin/index.d.ts +3 -0
- package/es/molecule/cm-popin/index.d.ts.map +1 -1
- package/es/molecule/cm-popin/index.js +39 -6
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +29 -4
- package/es/molecule/cm-popin/types.d.ts +1 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/template/back-office/brand-create/index.d.ts +24 -0
- package/es/template/back-office/brand-create/index.d.ts.map +1 -1
- package/es/template/back-office/brand-list/index.d.ts +24 -0
- package/es/template/back-office/brand-list/index.d.ts.map +1 -1
- package/es/template/back-office/dashboard-preview/index.d.ts +24 -0
- package/es/template/back-office/layout/index.d.ts +24 -0
- package/es/template/back-office/layout/index.d.ts.map +1 -1
- package/es/template/back-office/layout/index.js +5 -0
- package/es/template/back-office/layout/index.js.map +1 -1
- package/es/template/common/dashboard/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +4 -2
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/teams-dashboard/index.d.ts +24 -0
- package/es/template/teams-dashboard/index.d.ts.map +1 -1
- package/es/template/teams-dashboard/index.js +7 -3
- package/es/template/teams-dashboard/index.js.map +1 -1
- package/es/util/render-with-context.d.ts.map +1 -1
- package/es/util/render-with-context.js +3 -1
- package/es/util/render-with-context.js.map +1 -1
- package/lib/atom/title/style.css +1 -1
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +6 -2
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/style.css +2 -2
- package/lib/molecule/cm-popin/index.d.ts +3 -0
- package/lib/molecule/cm-popin/index.d.ts.map +1 -1
- package/lib/molecule/cm-popin/index.js +44 -6
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +29 -4
- package/lib/molecule/cm-popin/types.d.ts +1 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/template/back-office/brand-create/index.d.ts +24 -0
- package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-list/index.d.ts +24 -0
- package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
- package/lib/template/back-office/dashboard-preview/index.d.ts +24 -0
- package/lib/template/back-office/layout/index.d.ts +24 -0
- package/lib/template/back-office/layout/index.d.ts.map +1 -1
- package/lib/template/back-office/layout/index.js +6 -0
- package/lib/template/back-office/layout/index.js.map +1 -1
- package/lib/template/common/dashboard/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +8 -2
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/teams-dashboard/index.d.ts +24 -0
- package/lib/template/teams-dashboard/index.d.ts.map +1 -1
- package/lib/template/teams-dashboard/index.js +8 -3
- package/lib/template/teams-dashboard/index.js.map +1 -1
- package/lib/util/render-with-context.d.ts.map +1 -1
- package/lib/util/render-with-context.js +3 -1
- package/lib/util/render-with-context.js.map +1 -1
- package/locales/bs/global.json +3 -3
- package/locales/cs/global.json +3 -3
- package/locales/de/global.json +3 -3
- package/locales/es/global.json +2 -2
- package/locales/hr/global.json +3 -3
- package/locales/hu/global.json +3 -3
- package/locales/hy/global.json +3 -3
- package/locales/it/global.json +3 -3
- package/locales/ja/global.json +3 -3
- package/locales/ko/global.json +3 -3
- package/locales/nl/global.json +3 -3
- package/locales/pl/global.json +3 -3
- package/locales/pt/global.json +3 -3
- package/locales/ro/global.json +3 -3
- package/locales/ru/global.json +3 -3
- package/locales/sk/global.json +3 -3
- package/locales/th/global.json +3 -3
- package/locales/tl/global.json +3 -3
- package/locales/tr/global.json +3 -3
- package/locales/uk/global.json +4 -4
- package/locales/vi/global.json +3 -3
- package/locales/zh/global.json +3 -3
- package/locales/zh_TW/global.json +3 -3
- package/package.json +2 -2
- package/locales/.mtslconfig.json +0 -1
|
@@ -60,6 +60,11 @@
|
|
|
60
60
|
animation: popup 0.7s;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
.popinItems {
|
|
64
|
+
padding: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
63
68
|
.message {
|
|
64
69
|
display: flex;
|
|
65
70
|
flex-direction: column;
|
|
@@ -131,16 +136,16 @@
|
|
|
131
136
|
color: cm_grey_600;
|
|
132
137
|
}
|
|
133
138
|
|
|
139
|
+
.onCloseButton {
|
|
140
|
+
position: absolute;
|
|
141
|
+
}
|
|
142
|
+
|
|
134
143
|
.popinHeader {
|
|
135
144
|
width: 100%;
|
|
136
145
|
display: flex;
|
|
137
146
|
justify-content: flex-end;
|
|
138
147
|
}
|
|
139
148
|
|
|
140
|
-
.popinHeader button {
|
|
141
|
-
position: absolute;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
149
|
.headerContent {
|
|
145
150
|
gap: 16px;
|
|
146
151
|
display: flex;
|
|
@@ -151,6 +156,15 @@
|
|
|
151
156
|
border-bottom: 1px solid cm_grey_100;
|
|
152
157
|
}
|
|
153
158
|
|
|
159
|
+
.popinItems .headerContent {
|
|
160
|
+
padding: 24px;
|
|
161
|
+
width: 100%;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.popinItems .popinHeader .onCloseButton {
|
|
165
|
+
margin-top: 12px;
|
|
166
|
+
margin-right: 12px;
|
|
167
|
+
}
|
|
154
168
|
|
|
155
169
|
.lockIcon {
|
|
156
170
|
height: 48px;
|
|
@@ -316,6 +330,9 @@ a {
|
|
|
316
330
|
max-height: 369px;
|
|
317
331
|
overflow-y: auto;
|
|
318
332
|
width: 100%;
|
|
333
|
+
border-top: 1px solid cm_grey_100;
|
|
334
|
+
border-bottom-left-radius: 16px;
|
|
335
|
+
border-bottom-right-radius: 16px;
|
|
319
336
|
}
|
|
320
337
|
|
|
321
338
|
/* ---------- FILES DETAILS ---------- */
|
|
@@ -381,6 +398,10 @@ a {
|
|
|
381
398
|
padding: 0px 0px 8px 0px
|
|
382
399
|
}
|
|
383
400
|
|
|
401
|
+
.lockIcon {
|
|
402
|
+
min-width: 48px;
|
|
403
|
+
}
|
|
404
|
+
|
|
384
405
|
.popinCookie .largeButton {
|
|
385
406
|
padding: 8px 0px 0px 0px;
|
|
386
407
|
}
|
|
@@ -417,6 +438,10 @@ a {
|
|
|
417
438
|
width: 100%;
|
|
418
439
|
}
|
|
419
440
|
|
|
441
|
+
.lockIcon {
|
|
442
|
+
min-width: 48px;
|
|
443
|
+
}
|
|
444
|
+
|
|
420
445
|
.titleContainer {
|
|
421
446
|
width: 100%;
|
|
422
447
|
margin: 0px 16px;
|
|
@@ -267,6 +267,7 @@ export declare type CMPopinProps = {
|
|
|
267
267
|
content: string;
|
|
268
268
|
icon: string;
|
|
269
269
|
mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';
|
|
270
|
+
onClose?: () => void;
|
|
270
271
|
popinHeader?: PopinHeaderProps;
|
|
271
272
|
descriptionText: string;
|
|
272
273
|
firstButton?: QuitPopinButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2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,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;QACzB,IAAI,EACA,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,GAChD,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;CACH,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","content","PropTypes","string","mode","oneOf","header","shape","title","Title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","Cta","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","headerSubtitle","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch","items","list","oneOfType","CardsGrid","ListItems"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport {TitleProps} from '../../atom/title/types';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items', 'list']),\n header: PropTypes.shape({\n title: PropTypes.shape(Title.propTypes),\n headerIcon: PropTypes.string,\n backgroundImage: PropTypes.string\n }),\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n headerSubtitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),\n items: PropTypes.shape({\n type: PropTypes.oneOf(['content', 'list']),\n list: PropTypes.oneOfType([\n PropTypes.shape(CardsGrid.propTypes),\n PropTypes.shape(ListItems.propTypes)\n ])\n })\n};\n\ntype PopinHeaderProps = {\n title: TitleProps;\n backgroundImage: string;\n headerIcon: string;\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';\n popinHeader?: PopinHeaderProps;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n items?: {\n type: 'content' | 'list';\n list:\n | PropTypes.InferProps<typeof CardsGrid.propTypes>\n | PropTypes.InferProps<typeof ListItems.propTypes>;\n };\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,OAAO,EAAEC,kBAAA,CAAUC,MADH;EAEhBC,IA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AAa,EAAEZ,kBAAA,CAAUa,IAFE;IAG3BG,IAAI,EAAEhB,kBAAA,CAAUG,KAAV,CAAgB,CAAC,WAAD,EAAc,SAAd,EAAyB,WAAzB,CAAhB,CAHqB;IAI3B,cAAcH,kBAAA,CAAUC,MAJG;IAK3Ba,WAAW,EAAEd,kBAAA,CAAUe,IALI;IAM3BE,WAAW,EAAEC,mBAAA,CAAIpB,SAAJ,CAAcmB;EANA,CAAhB,CAxBG;EAgChBI,OAAO,EAAErB,kBAAA,CAAUa,IAhCH;EAiChBS,IAAI,EAAEtB,kBAAA,CAAUC,MAjCA;EAkChBsB,kBAAkB,EAAEvB,kBAAA,CAAUC,MAlCd;EAmChBuB,eAAe,EAAExB,kBAAA,CAAUC,MAnCX;EAoChBwB,WAAW,EAAEzB,kBAAA,CAAUC,MApCP;EAqChByB,cAAc,EAAE1B,kBAAA,CAAUC,MArCV;EAsChB0B,iBAAiB,EAAE3B,kBAAA,CAAUC,MAtCb;EAuChB2B,aAAa,EAAE5B,kBAAA,CAAU6B,OAAV,CAAkB7B,kBAAA,CAAUK,KAAV,CAAgByB,oBAAA,CAAYhC,SAA5B,CAAlB,CAvCC;EAwChBiC,KAAK,EAAE/B,kBAAA,CAAUK,KAAV,CAAgB;IACrBW,IAAI,EAAEhB,kBAAA,CAAUG,KAAV,CAAgB,CAAC,SAAD,EAAY,MAAZ,CAAhB,CADe;IAErB6B,IAAI,EAAEhC,kBAAA,CAAUiC,SAAV,CAAoB,CACxBjC,kBAAA,CAAUK,KAAV,CAAgB6B,kBAAA,CAAUpC,SAA1B,CADwB,EAExBE,kBAAA,CAAUK,KAAV,CAAgB8B,kBAAA,CAAUrC,SAA1B,CAFwB,CAApB;EAFe,CAAhB;AAxCS,CAAlB;
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","content","PropTypes","string","mode","oneOf","header","shape","title","Title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","Cta","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","headerSubtitle","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch","items","list","oneOfType","CardsGrid","ListItems"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport {TitleProps} from '../../atom/title/types';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items', 'list']),\n header: PropTypes.shape({\n title: PropTypes.shape(Title.propTypes),\n headerIcon: PropTypes.string,\n backgroundImage: PropTypes.string\n }),\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n headerSubtitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),\n items: PropTypes.shape({\n type: PropTypes.oneOf(['content', 'list']),\n list: PropTypes.oneOfType([\n PropTypes.shape(CardsGrid.propTypes),\n PropTypes.shape(ListItems.propTypes)\n ])\n })\n};\n\ntype PopinHeaderProps = {\n title: TitleProps;\n backgroundImage: string;\n headerIcon: string;\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';\n onClose?: () => void;\n popinHeader?: PopinHeaderProps;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n items?: {\n type: 'content' | 'list';\n list:\n | PropTypes.InferProps<typeof CardsGrid.propTypes>\n | PropTypes.InferProps<typeof ListItems.propTypes>;\n };\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,OAAO,EAAEC,kBAAA,CAAUC,MADH;EAEhBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,EAAmC,OAAnC,EAA4C,MAA5C,CAAhB,CAFU;EAGhBC,MAAM,EAAEJ,kBAAA,CAAUK,KAAV,CAAgB;IACtBC,KAAK,EAAEN,kBAAA,CAAUK,KAAV,CAAgBE,cAAA,CAAMT,SAAtB,CADe;IAEtBU,UAAU,EAAER,kBAAA,CAAUC,MAFA;IAGtBQ,eAAe,EAAET,kBAAA,CAAUC;EAHL,CAAhB,CAHQ;EAQhBS,WAAW,EAAEV,kBAAA,CAAUK,KAAV,CAAgB;IAC3BM,KAAK,EAAEX,kBAAA,CAAUC,MADU;IAE3BW,aAAa,EAAEZ,kBAAA,CAAUa,IAFE;IAG3B,cAAcb,kBAAA,CAAUC,MAHG;IAI3Ba,WAAW,EAAEd,kBAAA,CAAUe,IAJI;IAK3BC,IAAI,EAAEhB,kBAAA,CAAUG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AAUC,MAtCb;EAuChB2B,aAAa,EAAE5B,kBAAA,CAAU6B,OAAV,CAAkB7B,kBAAA,CAAUK,KAAV,CAAgByB,oBAAA,CAAYhC,SAA5B,CAAlB,CAvCC;EAwChBiC,KAAK,EAAE/B,kBAAA,CAAUK,KAAV,CAAgB;IACrBW,IAAI,EAAEhB,kBAAA,CAAUG,KAAV,CAAgB,CAAC,SAAD,EAAY,MAAZ,CAAhB,CADe;IAErB6B,IAAI,EAAEhC,kBAAA,CAAUiC,SAAV,CAAoB,CACxBjC,kBAAA,CAAUK,KAAV,CAAgB6B,kBAAA,CAAUpC,SAA1B,CADwB,EAExBE,kBAAA,CAAUK,KAAV,CAAgB8B,kBAAA,CAAUrC,SAA1B,CAFwB,CAApB;EAFe,CAAhB;AAxCS,CAAlB;eAmFeA,S"}
|
|
@@ -97,6 +97,30 @@ declare const BrandCreate: {
|
|
|
97
97
|
logoMobile: PropTypes.Requireable<any>;
|
|
98
98
|
}>>;
|
|
99
99
|
};
|
|
100
|
+
contextTypes: {
|
|
101
|
+
skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
102
|
+
common: PropTypes.Requireable<{
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
}>;
|
|
105
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
106
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
107
|
+
logo: PropTypes.Requireable<any>;
|
|
108
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
109
|
+
login: PropTypes.Requireable<any>;
|
|
110
|
+
}>>;
|
|
111
|
+
icons: PropTypes.Requireable<{
|
|
112
|
+
[x: string]: any;
|
|
113
|
+
}>;
|
|
114
|
+
mod: PropTypes.Requireable<{
|
|
115
|
+
[x: string]: any;
|
|
116
|
+
}>;
|
|
117
|
+
courses: PropTypes.Requireable<any[]>;
|
|
118
|
+
texts: PropTypes.Requireable<{
|
|
119
|
+
[x: string]: any;
|
|
120
|
+
}>;
|
|
121
|
+
}>>;
|
|
122
|
+
translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
123
|
+
};
|
|
100
124
|
};
|
|
101
125
|
import PropTypes from "prop-types";
|
|
102
126
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-create/index.js"],"names":[],"mappings":";AAOA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-create/index.js"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBG"}
|
|
@@ -97,6 +97,30 @@ declare const BrandList: {
|
|
|
97
97
|
logoMobile: PropTypes.Requireable<any>;
|
|
98
98
|
}>>;
|
|
99
99
|
};
|
|
100
|
+
contextTypes: {
|
|
101
|
+
skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
102
|
+
common: PropTypes.Requireable<{
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
}>;
|
|
105
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
106
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
107
|
+
logo: PropTypes.Requireable<any>;
|
|
108
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
109
|
+
login: PropTypes.Requireable<any>;
|
|
110
|
+
}>>;
|
|
111
|
+
icons: PropTypes.Requireable<{
|
|
112
|
+
[x: string]: any;
|
|
113
|
+
}>;
|
|
114
|
+
mod: PropTypes.Requireable<{
|
|
115
|
+
[x: string]: any;
|
|
116
|
+
}>;
|
|
117
|
+
courses: PropTypes.Requireable<any[]>;
|
|
118
|
+
texts: PropTypes.Requireable<{
|
|
119
|
+
[x: string]: any;
|
|
120
|
+
}>;
|
|
121
|
+
}>>;
|
|
122
|
+
translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
123
|
+
};
|
|
100
124
|
};
|
|
101
125
|
import PropTypes from "prop-types";
|
|
102
126
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-list/index.js"],"names":[],"mappings":";AAYA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-list/index.js"],"names":[],"mappings":";AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CG"}
|
|
@@ -96,6 +96,30 @@ declare const _default: {
|
|
|
96
96
|
logoMobile: PropTypes.Requireable<any>;
|
|
97
97
|
}>>;
|
|
98
98
|
};
|
|
99
|
+
contextTypes: {
|
|
100
|
+
skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
101
|
+
common: PropTypes.Requireable<{
|
|
102
|
+
[x: string]: any;
|
|
103
|
+
}>;
|
|
104
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
105
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
106
|
+
logo: PropTypes.Requireable<any>;
|
|
107
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
108
|
+
login: PropTypes.Requireable<any>;
|
|
109
|
+
}>>;
|
|
110
|
+
icons: PropTypes.Requireable<{
|
|
111
|
+
[x: string]: any;
|
|
112
|
+
}>;
|
|
113
|
+
mod: PropTypes.Requireable<{
|
|
114
|
+
[x: string]: any;
|
|
115
|
+
}>;
|
|
116
|
+
courses: PropTypes.Requireable<any[]>;
|
|
117
|
+
texts: PropTypes.Requireable<{
|
|
118
|
+
[x: string]: any;
|
|
119
|
+
}>;
|
|
120
|
+
}>>;
|
|
121
|
+
translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
122
|
+
};
|
|
99
123
|
};
|
|
100
124
|
export default _default;
|
|
101
125
|
import PropTypes from "prop-types";
|
|
@@ -97,6 +97,30 @@ declare function createLayout(Template: any): {
|
|
|
97
97
|
logoMobile: PropTypes.Requireable<any>;
|
|
98
98
|
}>>;
|
|
99
99
|
};
|
|
100
|
+
contextTypes: {
|
|
101
|
+
skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
102
|
+
common: PropTypes.Requireable<{
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
}>;
|
|
105
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
106
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
107
|
+
logo: PropTypes.Requireable<any>;
|
|
108
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
109
|
+
login: PropTypes.Requireable<any>;
|
|
110
|
+
}>>;
|
|
111
|
+
icons: PropTypes.Requireable<{
|
|
112
|
+
[x: string]: any;
|
|
113
|
+
}>;
|
|
114
|
+
mod: PropTypes.Requireable<{
|
|
115
|
+
[x: string]: any;
|
|
116
|
+
}>;
|
|
117
|
+
courses: PropTypes.Requireable<any[]>;
|
|
118
|
+
texts: PropTypes.Requireable<{
|
|
119
|
+
[x: string]: any;
|
|
120
|
+
}>;
|
|
121
|
+
}>>;
|
|
122
|
+
translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
123
|
+
};
|
|
100
124
|
};
|
|
101
125
|
import PropTypes from "prop-types";
|
|
102
126
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/layout/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/layout/index.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBC"}
|
|
@@ -9,6 +9,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
|
|
10
10
|
var _setupHeader = _interopRequireDefault(require("../../../organism/setup-header"));
|
|
11
11
|
|
|
12
|
+
var _provider = _interopRequireDefault(require("../../../atom/provider"));
|
|
13
|
+
|
|
12
14
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -28,6 +30,10 @@ const createLayout = Template => {
|
|
|
28
30
|
Layout.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
29
31
|
header: _propTypes.default.shape(_setupHeader.default.propTypes)
|
|
30
32
|
} : {};
|
|
33
|
+
Layout.contextTypes = {
|
|
34
|
+
skin: _provider.default.childContextTypes.skin,
|
|
35
|
+
translate: _provider.default.childContextTypes.translate
|
|
36
|
+
};
|
|
31
37
|
return Layout;
|
|
32
38
|
};
|
|
33
39
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["createLayout","Template","Layout","props","header","style","contentWrapper","propTypes","PropTypes","shape","Header"],"sources":["../../../../src/template/back-office/layout/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Header from '../../../organism/setup-header';\nimport style from './style.css';\n\nconst createLayout = Template => {\n const Layout = props => {\n const {header} = props;\n return (\n <div>\n <div className={style.header}>\n <Header {...header} />\n </div>\n <div className={style.contentWrapper}>\n <Template {...props} />\n </div>\n </div>\n );\n };\n\n Layout.propTypes = {\n header: PropTypes.shape(Header.propTypes)\n };\n\n return Layout;\n};\n\nexport default createLayout;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,YAAY,GAAGC,QAAQ,IAAI;EAC/B,MAAMC,MAAM,GAAGC,KAAK,IAAI;IACtB,MAAM;MAACC;IAAD,IAAWD,KAAjB;IACA,oBACE,uDACE;MAAK,SAAS,EAAEE,cAAA,CAAMD;IAAtB,gBACE,6BAAC,oBAAD,EAAYA,MAAZ,CADF,CADF,eAIE;MAAK,SAAS,EAAEC,cAAA,CAAMC;IAAtB,gBACE,6BAAC,QAAD,EAAcH,KAAd,CADF,CAJF,CADF;EAUD,CAZD;;EAcAD,MAAM,CAACK,SAAP,2CAAmB;IACjBH,MAAM,EAAEI,kBAAA,CAAUC,KAAV,CAAgBC,oBAAA,CAAOH,SAAvB;EADS,CAAnB;
|
|
1
|
+
{"version":3,"file":"index.js","names":["createLayout","Template","Layout","props","header","style","contentWrapper","propTypes","PropTypes","shape","Header","contextTypes","skin","Provider","childContextTypes","translate"],"sources":["../../../../src/template/back-office/layout/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Header from '../../../organism/setup-header';\nimport Provider from '../../../atom/provider';\nimport style from './style.css';\n\nconst createLayout = Template => {\n const Layout = props => {\n const {header} = props;\n return (\n <div>\n <div className={style.header}>\n <Header {...header} />\n </div>\n <div className={style.contentWrapper}>\n <Template {...props} />\n </div>\n </div>\n );\n };\n\n Layout.propTypes = {\n header: PropTypes.shape(Header.propTypes)\n };\n\n Layout.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n };\n\n return Layout;\n};\n\nexport default createLayout;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,YAAY,GAAGC,QAAQ,IAAI;EAC/B,MAAMC,MAAM,GAAGC,KAAK,IAAI;IACtB,MAAM;MAACC;IAAD,IAAWD,KAAjB;IACA,oBACE,uDACE;MAAK,SAAS,EAAEE,cAAA,CAAMD;IAAtB,gBACE,6BAAC,oBAAD,EAAYA,MAAZ,CADF,CADF,eAIE;MAAK,SAAS,EAAEC,cAAA,CAAMC;IAAtB,gBACE,6BAAC,QAAD,EAAcH,KAAd,CADF,CAJF,CADF;EAUD,CAZD;;EAcAD,MAAM,CAACK,SAAP,2CAAmB;IACjBH,MAAM,EAAEI,kBAAA,CAAUC,KAAV,CAAgBC,oBAAA,CAAOH,SAAvB;EADS,CAAnB;EAIAL,MAAM,CAACS,YAAP,GAAsB;IACpBC,IAAI,EAAEC,iBAAA,CAASC,iBAAT,CAA2BF,IADb;IAEpBG,SAAS,EAAEF,iBAAA,CAASC,iBAAT,CAA2BC;EAFlB,CAAtB;EAKA,OAAOb,MAAP;AACD,CAzBD;;eA2BeF,Y"}
|
|
@@ -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,oDAiDC"}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 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":";;;;;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,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src/template/common/search-page/index.js"],"names":[],"mappings":";AAWA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAWA,mEA2DC"}
|
|
@@ -7,7 +7,7 @@ var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
|
|
|
7
7
|
|
|
8
8
|
var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
|
|
9
9
|
|
|
10
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
@@ -25,6 +25,10 @@ var _cmPopin = _interopRequireDefault(require("../../../molecule/cm-popin"));
|
|
|
25
25
|
|
|
26
26
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
27
27
|
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
|
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
28
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
33
|
|
|
30
34
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -47,6 +51,7 @@ const SearchPage = (props, context) => {
|
|
|
47
51
|
skin
|
|
48
52
|
} = context;
|
|
49
53
|
const defaultColor = (0, _getOr2.default)('#00B0FF', 'common.primary', skin);
|
|
54
|
+
const nodeRef = (0, _react.useRef)(null);
|
|
50
55
|
const recommendationsView = (0, _isEmpty2.default)(recommendations) ? null : /*#__PURE__*/_react.default.createElement(_cardsList.default, recommendations);
|
|
51
56
|
const cardsView = (0, _isEmpty2.default)(cards.list) ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
52
57
|
className: _style.default.noresults
|
|
@@ -72,7 +77,8 @@ const SearchPage = (props, context) => {
|
|
|
72
77
|
className: _style.default.title,
|
|
73
78
|
role: "status"
|
|
74
79
|
}, title), cardsView), popinWithCards ? /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
-
className: _style.default.popinWithCards
|
|
80
|
+
className: _style.default.popinWithCards,
|
|
81
|
+
ref: nodeRef
|
|
76
82
|
}, /*#__PURE__*/_react.default.createElement(_cmPopin.default, popinWithCards)) : null);
|
|
77
83
|
};
|
|
78
84
|
|
|
@@ -1 +1 @@
|
|
|
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
|
|
1
|
+
{"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","skin","defaultColor","nodeRef","useRef","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, {useRef} 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 const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n const nodeRef = useRef(null);\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} ref={nodeRef}>\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;EAaA,MAAM;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AT,CAA2Bf;AADT,CAA1B;AAIAd,UAAU,CAAC8B,SAAX,2CAAuB;EACrBxB,cAAc,EAAEyB,kBAAA,CAAUC,MADL;EAErB7B,KAAK,EAAE4B,kBAAA,CAAUC,MAFI;EAGrB5B,aAAa,EAAE2B,kBAAA,CAAUE,KAAV,CAAgBC,gBAAA,CAAQJ,SAAxB,CAHM;EAIrBzB,KAAK,EAAE0B,kBAAA,CAAUE,KAAV,CAAgBE,kBAAA,CAAUL,SAA1B,CAJc;EAKrBvB,YAAY,EAAEwB,kBAAA,CAAUE,KAAV,CAAgBG,eAAA,CAAON,SAAvB,CALO;EAMrBtB,eAAe,EAAEuB,kBAAA,CAAUE,KAAV,CAAgBI,kBAAA,CAAUP,SAA1B,CANI;EAOrBrB,iBAAiB,EAAEsB,kBAAA,CAAUC,MAPR;EAQrBtB,mBAAmB,EAAEqB,kBAAA,CAAUC,MARV;EASrBrB,oBAAoB,EAAEoB,kBAAA,CAAUC,MATX;EAUrBpB,aAAa,EAAEmB,kBAAA,CAAUC,MAVJ;EAWrBnB,cAAc,EAAEkB,kBAAA,CAAUE,KAAV,CAAgBK,gBAAA,CAAQR,SAAxB;AAXK,CAAvB;eAce9B,U"}
|
|
@@ -101,6 +101,30 @@ declare namespace TeamsDashboard {
|
|
|
101
101
|
}> | null | undefined)[]>;
|
|
102
102
|
const isLoading: PropTypes.Requireable<boolean>;
|
|
103
103
|
}
|
|
104
|
+
namespace contextTypes {
|
|
105
|
+
const translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
106
|
+
const skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
107
|
+
common: PropTypes.Requireable<{
|
|
108
|
+
[x: string]: any;
|
|
109
|
+
}>;
|
|
110
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
111
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
112
|
+
logo: PropTypes.Requireable<any>;
|
|
113
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
114
|
+
login: PropTypes.Requireable<any>;
|
|
115
|
+
}>>;
|
|
116
|
+
icons: PropTypes.Requireable<{
|
|
117
|
+
[x: string]: any;
|
|
118
|
+
}>;
|
|
119
|
+
mod: PropTypes.Requireable<{
|
|
120
|
+
[x: string]: any;
|
|
121
|
+
}>;
|
|
122
|
+
courses: PropTypes.Requireable<any[]>;
|
|
123
|
+
texts: PropTypes.Requireable<{
|
|
124
|
+
[x: string]: any;
|
|
125
|
+
}>;
|
|
126
|
+
}>>;
|
|
127
|
+
}
|
|
104
128
|
}
|
|
105
129
|
import PropTypes from "prop-types";
|
|
106
130
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/teams-dashboard/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/teams-dashboard/index.js"],"names":[],"mappings":";AAUA;;;;;gBAkCC"}
|
|
@@ -17,6 +17,8 @@ var _loader = _interopRequireDefault(require("../../atom/loader"));
|
|
|
17
17
|
|
|
18
18
|
var _cardsList = _interopRequireDefault(require("../../molecule/dashboard/cards-list"));
|
|
19
19
|
|
|
20
|
+
var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
21
|
+
|
|
20
22
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
21
23
|
|
|
22
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -45,10 +47,9 @@ const TeamsDashboard = ({
|
|
|
45
47
|
cap: false
|
|
46
48
|
})(buildSection, sections), [buildSection, sections]);
|
|
47
49
|
return isLoading ? /*#__PURE__*/_react.default.createElement("div", {
|
|
48
|
-
className: _style.default.loader
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(_loader.default, {
|
|
50
|
+
className: _style.default.loader,
|
|
50
51
|
"data-name": "teams-dashboard-loader"
|
|
51
|
-
})) : /*#__PURE__*/_react.default.createElement("div", {
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement(_loader.default, null)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
52
53
|
"data-name": "teams-dashboard",
|
|
53
54
|
className: isShadowed ? _style.default.shadowedTeamsDashboard : _style.default.teamsDashboard
|
|
54
55
|
}, /*#__PURE__*/_react.default.createElement(_moocHeader.default, {
|
|
@@ -69,6 +70,10 @@ TeamsDashboard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
69
70
|
sections: _propTypes.default.arrayOf(_propTypes.default.shape(_cardsList.default.propTypes)),
|
|
70
71
|
isLoading: _propTypes.default.bool
|
|
71
72
|
} : {};
|
|
73
|
+
TeamsDashboard.contextTypes = {
|
|
74
|
+
translate: _provider.default.childContextTypes.translate,
|
|
75
|
+
skin: _provider.default.childContextTypes.skin
|
|
76
|
+
};
|
|
72
77
|
var _default = TeamsDashboard;
|
|
73
78
|
exports.default = _default;
|
|
74
79
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["TeamsDashboard","logo","platformLinks","sections","isLoading","isShadowed","setShadowed","useState","onMenuOpen","useCallback","onMenuClose","buildSection","section","index","title","sectionsList","useMemo","convert","cap","style","loader","shadowedTeamsDashboard","teamsDashboard","sectionsWrapper","propTypes","MoocHeader","PropTypes","arrayOf","shape","Cta","CardsList","bool"],"sources":["../../../src/template/teams-dashboard/index.js"],"sourcesContent":["import React, {useState, useCallback, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport MoocHeader from '../../organism/mooc-header';\nimport Cta from '../../atom/cta';\nimport Loader from '../../atom/loader';\nimport CardsList from '../../molecule/dashboard/cards-list';\nimport style from './style.css';\n\nconst TeamsDashboard = ({logo, platformLinks, sections, isLoading}) => {\n const [isShadowed, setShadowed] = useState(false);\n const onMenuOpen = useCallback(() => setShadowed(true), []);\n const onMenuClose = useCallback(() => setShadowed(false), []);\n\n const buildSection = useCallback((section, index) => {\n return <CardsList {...section} key={section.title + index} />;\n }, []);\n\n const sectionsList = useMemo(\n () => map.convert({cap: false})(buildSection, sections),\n [buildSection, sections]\n );\n
|
|
1
|
+
{"version":3,"file":"index.js","names":["TeamsDashboard","logo","platformLinks","sections","isLoading","isShadowed","setShadowed","useState","onMenuOpen","useCallback","onMenuClose","buildSection","section","index","title","sectionsList","useMemo","convert","cap","style","loader","shadowedTeamsDashboard","teamsDashboard","sectionsWrapper","propTypes","MoocHeader","PropTypes","arrayOf","shape","Cta","CardsList","bool","contextTypes","translate","Provider","childContextTypes","skin"],"sources":["../../../src/template/teams-dashboard/index.js"],"sourcesContent":["import React, {useState, useCallback, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport MoocHeader from '../../organism/mooc-header';\nimport Cta from '../../atom/cta';\nimport Loader from '../../atom/loader';\nimport CardsList from '../../molecule/dashboard/cards-list';\nimport Provider from '../../atom/provider';\nimport style from './style.css';\n\nconst TeamsDashboard = ({logo, platformLinks, sections, isLoading}) => {\n const [isShadowed, setShadowed] = useState(false);\n const onMenuOpen = useCallback(() => setShadowed(true), []);\n const onMenuClose = useCallback(() => setShadowed(false), []);\n\n const buildSection = useCallback((section, index) => {\n return <CardsList {...section} key={section.title + index} />;\n }, []);\n\n const sectionsList = useMemo(\n () => map.convert({cap: false})(buildSection, sections),\n [buildSection, sections]\n );\n return isLoading ? (\n <div className={style.loader} data-name=\"teams-dashboard-loader\">\n <Loader />\n </div>\n ) : (\n <div\n data-name=\"teams-dashboard\"\n className={isShadowed ? style.shadowedTeamsDashboard : style.teamsDashboard}\n >\n <MoocHeader\n data-name=\"teams-dashboard-header\"\n logo={logo}\n links={platformLinks}\n onMenuOpen={onMenuOpen}\n onMenuClose={onMenuClose}\n />\n <div data-name=\"sections-wrapper\" className={isShadowed ? style.sectionsWrapper : null}>\n {sectionsList}\n </div>\n </div>\n );\n};\n\nTeamsDashboard.propTypes = {\n logo: MoocHeader.propTypes.logo,\n platformLinks: PropTypes.arrayOf(PropTypes.shape(Cta.propTypes)),\n sections: PropTypes.arrayOf(PropTypes.shape(CardsList.propTypes)),\n isLoading: PropTypes.bool\n};\n\nTeamsDashboard.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nexport default TeamsDashboard;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,aAAP;EAAsBC,QAAtB;EAAgCC;AAAhC,CAAD,KAAgD;EACrE,MAAM,CAACC,UAAD,EAAaC,WAAb,IAA4B,IAAAC,eAAA,EAAS,KAAT,CAAlC;EACA,MAAMC,UAAU,GAAG,IAAAC,kBAAA,EAAY,MAAMH,WAAW,CAAC,IAAD,CAA7B,EAAqC,EAArC,CAAnB;EACA,MAAMI,WAAW,GAAG,IAAAD,kBAAA,EAAY,MAAMH,WAAW,CAAC,KAAD,CAA7B,EAAsC,EAAtC,CAApB;EAEA,MAAMK,YAAY,GAAG,IAAAF,kBAAA,EAAY,CAACG,OAAD,EAAUC,KAAV,KAAoB;IACnD,oBAAO,6BAAC,kBAAD,eAAeD,OAAf;MAAwB,GAAG,EAAEA,OAAO,CAACE,KAAR,GAAgBD;IAA7C,GAAP;EACD,CAFoB,EAElB,EAFkB,CAArB;EAIA,MAAME,YAAY,GAAG,IAAAC,cAAA,EACnB,MAAM,cAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0BP,YAA1B,EAAwCR,QAAxC,CADa,EAEnB,CAACQ,YAAD,EAAeR,QAAf,CAFmB,CAArB;EAIA,OAAOC,SAAS,gBACd;IAAK,SAAS,EAAEe,cAAA,CAAMC,MAAtB;IAA8B,aAAU;EAAxC,gBACE,6BAAC,eAAD,OADF,CADc,gBAKd;IACE,aAAU,iBADZ;IAEE,SAAS,EAAEf,UAAU,GAAGc,cAAA,CAAME,sBAAT,GAAkCF,cAAA,CAAMG;EAF/D,gBAIE,6BAAC,mBAAD;IACE,aAAU,wBADZ;IAEE,IAAI,EAAErB,IAFR;IAGE,KAAK,EAAEC,aAHT;IAIE,UAAU,EAAEM,UAJd;IAKE,WAAW,EAAEE;EALf,EAJF,eAWE;IAAK,aAAU,kBAAf;IAAkC,SAAS,EAAEL,UAAU,GAAGc,cAAA,CAAMI,eAAT,GAA2B;EAAlF,GACGR,YADH,CAXF,CALF;AAqBD,CAlCD;;AAoCAf,cAAc,CAACwB,SAAf,2CAA2B;EACzBvB,IAAI,EAAEwB,mBAAA,CAAWD,SAAX,CAAqBvB,IADF;EAEzBC,aAAa,EAAEwB,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,YAAA,CAAIL,SAApB,CAAlB,CAFU;EAGzBrB,QAAQ,EAAEuB,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBE,kBAAA,CAAUN,SAA1B,CAAlB,CAHe;EAIzBpB,SAAS,EAAEsB,kBAAA,CAAUK;AAJI,CAA3B;AAOA/B,cAAc,CAACgC,YAAf,GAA8B;EAC5BC,SAAS,EAAEC,iBAAA,CAASC,iBAAT,CAA2BF,SADV;EAE5BG,IAAI,EAAEF,iBAAA,CAASC,iBAAT,CAA2BC;AAFL,CAA9B;eAKepC,c"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-with-context.d.ts","sourceRoot":"","sources":["../../src/util/render-with-context.js"],"names":[],"mappings":"AAOO,
|
|
1
|
+
{"version":3,"file":"render-with-context.d.ts","sourceRoot":"","sources":["../../src/util/render-with-context.js"],"names":[],"mappings":"AAOO,8LA4BN"}
|
|
@@ -44,7 +44,9 @@ const renderWithContext = (component, options = {}) => {
|
|
|
44
44
|
const wrapper = ({
|
|
45
45
|
children
|
|
46
46
|
}) => {
|
|
47
|
-
const hasContextTypes = useLegacyProvider || (0, _has.default)(['type', 'contextTypes'], children);
|
|
47
|
+
const hasContextTypes = useLegacyProvider || (0, _has.default)(['type', 'contextTypes'], children); // eslint-disable-next-line no-console
|
|
48
|
+
|
|
49
|
+
if (!hasContextTypes) console.log('ContextTypes not found, using WebContext');
|
|
48
50
|
return hasContextTypes ? /*#__PURE__*/_react.default.createElement(_provider.default, _extends({}, rest, {
|
|
49
51
|
translate: translate
|
|
50
52
|
}), children) : /*#__PURE__*/_react.default.createElement(_provider.WebContext, _extends({}, rest, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-with-context.js","names":["renderWithContext","component","options","context","useLegacyProvider","renderOptions","translate","mockTranslate","rest","wrapper","children","hasContextTypes","has","propTypes","PropTypes","node","render"],"sources":["../../src/util/render-with-context.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {render} from '@testing-library/react';\nimport has from 'lodash/fp/has';\nimport {mockTranslate} from '@coorpacademy/translate';\nimport Provider, {WebContext} from '../atom/provider';\n\nexport const renderWithContext = (component, options = {}) => {\n const {context = {}, useLegacyProvider = false, ...renderOptions} = options;\n // uses mockTranslate as a default translate function\n const {translate = mockTranslate, ...rest} = context;\n\n const wrapper = ({children}) => {\n const hasContextTypes = useLegacyProvider || has(['type', 'contextTypes'], children);\n return hasContextTypes ? (\n <Provider {...rest} translate={translate}>\n {children}\n </Provider>\n ) : (\n <WebContext {...rest} translate={translate}>\n {children}\n </WebContext>\n );\n };\n\n wrapper.propTypes = {\n children: PropTypes.node\n };\n\n return render(component, {\n ...renderOptions,\n wrapper\n });\n};\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;AAEO,MAAMA,iBAAiB,GAAG,CAACC,SAAD,EAAYC,OAAO,GAAG,EAAtB,KAA6B;EAC5D,MAAM;IAACC,OAAO,GAAG,EAAX;IAAeC,iBAAiB,GAAG;EAAnC,IAA8DF,OAApE;EAAA,MAAmDG,aAAnD,iCAAoEH,OAApE,aAD4D,CAE5D;;;EACA,MAAM;IAACI,SAAS,GAAGC;EAAb,IAAuCJ,OAA7C;EAAA,MAAqCK,IAArC,iCAA6CL,OAA7C;;EAEA,MAAMM,OAAO,GAAG,CAAC;IAACC;EAAD,CAAD,KAAgB;IAC9B,MAAMC,eAAe,GAAGP,iBAAiB,IAAI,IAAAQ,YAAA,EAAI,CAAC,MAAD,EAAS,cAAT,CAAJ,EAA8BF,QAA9B,CAA7C
|
|
1
|
+
{"version":3,"file":"render-with-context.js","names":["renderWithContext","component","options","context","useLegacyProvider","renderOptions","translate","mockTranslate","rest","wrapper","children","hasContextTypes","has","console","log","propTypes","PropTypes","node","render"],"sources":["../../src/util/render-with-context.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {render} from '@testing-library/react';\nimport has from 'lodash/fp/has';\nimport {mockTranslate} from '@coorpacademy/translate';\nimport Provider, {WebContext} from '../atom/provider';\n\nexport const renderWithContext = (component, options = {}) => {\n const {context = {}, useLegacyProvider = false, ...renderOptions} = options;\n // uses mockTranslate as a default translate function\n const {translate = mockTranslate, ...rest} = context;\n\n const wrapper = ({children}) => {\n const hasContextTypes = useLegacyProvider || has(['type', 'contextTypes'], children);\n // eslint-disable-next-line no-console\n if (!hasContextTypes) console.log('ContextTypes not found, using WebContext');\n return hasContextTypes ? (\n <Provider {...rest} translate={translate}>\n {children}\n </Provider>\n ) : (\n <WebContext {...rest} translate={translate}>\n {children}\n </WebContext>\n );\n };\n\n wrapper.propTypes = {\n children: PropTypes.node\n };\n\n return render(component, {\n ...renderOptions,\n wrapper\n });\n};\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;AAEO,MAAMA,iBAAiB,GAAG,CAACC,SAAD,EAAYC,OAAO,GAAG,EAAtB,KAA6B;EAC5D,MAAM;IAACC,OAAO,GAAG,EAAX;IAAeC,iBAAiB,GAAG;EAAnC,IAA8DF,OAApE;EAAA,MAAmDG,aAAnD,iCAAoEH,OAApE,aAD4D,CAE5D;;;EACA,MAAM;IAACI,SAAS,GAAGC;EAAb,IAAuCJ,OAA7C;EAAA,MAAqCK,IAArC,iCAA6CL,OAA7C;;EAEA,MAAMM,OAAO,GAAG,CAAC;IAACC;EAAD,CAAD,KAAgB;IAC9B,MAAMC,eAAe,GAAGP,iBAAiB,IAAI,IAAAQ,YAAA,EAAI,CAAC,MAAD,EAAS,cAAT,CAAJ,EAA8BF,QAA9B,CAA7C,CAD8B,CAE9B;;IACA,IAAI,CAACC,eAAL,EAAsBE,OAAO,CAACC,GAAR,CAAY,0CAAZ;IACtB,OAAOH,eAAe,gBACpB,6BAAC,iBAAD,eAAcH,IAAd;MAAoB,SAAS,EAAEF;IAA/B,IACGI,QADH,CADoB,gBAKpB,6BAAC,oBAAD,eAAgBF,IAAhB;MAAsB,SAAS,EAAEF;IAAjC,IACGI,QADH,CALF;EASD,CAbD;;EAeAD,OAAO,CAACM,SAAR,2CAAoB;IAClBL,QAAQ,EAAEM,kBAAA,CAAUC;EADF,CAApB;EAIA,OAAO,IAAAC,cAAA,EAAOjB,SAAP,eACFI,aADE;IAELI;EAFK,GAAP;AAID,CA5BM"}
|
package/locales/bs/global.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"media_stars_to_win_plural": "Osvoji {{count}} dodatnu zvijezdu u ovom poglavlju prvi put kad vidiš lekciju!",
|
|
31
31
|
"media_stars_to_win": "Osvoji {{count}} dodatnu zvijezdu u ovom poglavlju prvi put kad vidiš lekciju!",
|
|
32
32
|
"More": "Više",
|
|
33
|
-
"More details": "
|
|
33
|
+
"More details": "Više detalja",
|
|
34
34
|
"New media": "Nova lekcija",
|
|
35
35
|
"No Selected Dashboard": "Nema izabrane kontrolne table",
|
|
36
36
|
"No status": "NEMA STATUS",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"Validated": "Provjereno",
|
|
76
76
|
"Video Loading Error": "Pojavila se greška prilikom učitavanja videa. Molimo pokušajte ponovo.",
|
|
77
77
|
"Wait_creation": "Platforma se priprema. Ovo može potrajati nekoliko sekundi, molimo vas sačekajte ...",
|
|
78
|
-
"comment_aria_label": "
|
|
78
|
+
"comment_aria_label": "Dodajte svoj komentar",
|
|
79
79
|
"zuora_discount_code_submit": "Primijeni",
|
|
80
80
|
"zuora_discount_code": "Promotivni kod",
|
|
81
81
|
"mandatory_fields": "* Obavezna polja",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"errors_number": "broj grešaka masovnog uvoza je {{bulkImportErrorsNumber}}",
|
|
90
90
|
"valid_scorm": "scorm datoteka je važeća",
|
|
91
91
|
"invalid_scorm": "scorm datoteka nije važeća",
|
|
92
|
-
"show_errors": "
|
|
92
|
+
"show_errors": "pokazati greške"
|
|
93
93
|
},
|
|
94
94
|
"close_button_ariaLabel": "Zatvorite slajd za recenziju",
|
|
95
95
|
"post_comment_aria_label": "Objavite svoj komentar",
|
package/locales/cs/global.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"media_stars_to_win_plural": "Získejte další hvězdy ({{count}}) v této kapitole při prvním zobrazení lekce!",
|
|
31
31
|
"media_stars_to_win": "Vyhrajte další hvězdu ({{count}}) v této kapitole při prvním zobrazení lekce!",
|
|
32
32
|
"More": "Více",
|
|
33
|
-
"More details": "
|
|
33
|
+
"More details": "Více informací",
|
|
34
34
|
"New media": "Nová lekce",
|
|
35
35
|
"No Selected Dashboard": "Žádný vybraný ovládací panel",
|
|
36
36
|
"No status": "Žádný stav",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"Validated": "Ověřeno",
|
|
76
76
|
"Video Loading Error": "Při načítání videa došlo k chybě, zkuste to znovu.",
|
|
77
77
|
"Wait_creation": "Platforma se vytváří Může to trvat několik sekund. Prosím počkejte...",
|
|
78
|
-
"comment_aria_label": "
|
|
78
|
+
"comment_aria_label": "Přidejte svůj komentář",
|
|
79
79
|
"zuora_discount_code_submit": "Použít",
|
|
80
80
|
"zuora_discount_code": "Propagační kód",
|
|
81
81
|
"mandatory_fields": "*Mandatory fields",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"errors_number": "počet chyb hromadného importu je {{bulkImportErrorsNumber}}",
|
|
90
90
|
"valid_scorm": "soubor scorm je platný",
|
|
91
91
|
"invalid_scorm": "soubor scorm je neplatný",
|
|
92
|
-
"show_errors": "
|
|
92
|
+
"show_errors": "zobrazit chyby"
|
|
93
93
|
},
|
|
94
94
|
"close_button_ariaLabel": "Zavřít snímek recenze",
|
|
95
95
|
"post_comment_aria_label": "Zveřejnit komentář",
|