@coorpacademy/components 11.11.1-alpha.0 → 11.11.1
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/input-search/index.d.ts.map +1 -1
- package/es/atom/input-search/index.js +1 -0
- package/es/atom/input-search/index.js.map +1 -1
- package/es/atom/input-switch/index.d.ts +2 -0
- package/es/atom/input-switch/index.d.ts.map +1 -1
- package/es/atom/input-switch/index.js +23 -11
- package/es/atom/input-switch/index.js.map +1 -1
- package/es/atom/select/index.d.ts +1 -0
- package/es/atom/select/index.d.ts.map +1 -1
- package/es/atom/select/index.js +13 -8
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/tooltip/index.d.ts +1 -3
- package/es/atom/tooltip/index.d.ts.map +1 -1
- package/es/atom/tooltip/index.js +7 -17
- package/es/atom/tooltip/index.js.map +1 -1
- package/es/atom/tooltip/style.css +2 -10
- package/es/globals.d.js.map +1 -1
- package/es/molecule/brand-form-group/index.d.ts +8 -0
- package/es/molecule/cm-popin/types.d.ts +2 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/draggable-list/index.d.ts +2 -0
- package/es/molecule/filters/filters-wrapper.d.ts.map +1 -1
- package/es/molecule/filters/filters-wrapper.js +4 -1
- package/es/molecule/filters/filters-wrapper.js.map +1 -1
- package/es/molecule/filters/index.d.ts +2 -0
- package/es/molecule/filters/index.d.ts.map +1 -1
- package/es/molecule/filters/index.js +10 -3
- package/es/molecule/filters/index.js.map +1 -1
- package/es/molecule/setup-section/index.d.ts +2 -0
- package/es/molecule/setup-section/index.d.ts.map +1 -1
- package/es/molecule/setup-sections/index.d.ts +2 -0
- package/es/molecule/setup-slide/index.d.ts +3 -0
- package/es/molecule/setup-slider/index.d.ts +3 -0
- package/es/organism/brand-form/index.d.ts +8 -0
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +4 -1
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/user-preferences/index.d.ts +2 -0
- package/es/organism/wizard-contents/index.d.ts +8 -0
- package/es/template/activity/index.d.ts +12 -11
- package/es/template/activity/index.d.ts.map +1 -1
- package/es/template/activity/index.js +6 -3
- package/es/template/activity/index.js.map +1 -1
- package/es/template/app-player/loading/index.d.ts +2 -0
- package/es/template/app-player/player/index.d.ts +4 -0
- package/es/template/app-player/player/slides/index.d.ts +2 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +2 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +2 -0
- package/es/template/app-review/index.d.ts +2 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +2 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +2 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +18 -0
- package/es/template/common/dashboard/index.d.ts +2 -0
- package/es/template/common/search-page/index.d.ts +3 -0
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +6 -3
- package/es/template/common/search-page/index.js.map +1 -1
- package/lib/atom/input-search/index.d.ts.map +1 -1
- package/lib/atom/input-search/index.js +1 -0
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-switch/index.d.ts +2 -0
- package/lib/atom/input-switch/index.d.ts.map +1 -1
- package/lib/atom/input-switch/index.js +22 -11
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/select/index.d.ts +1 -0
- package/lib/atom/select/index.d.ts.map +1 -1
- package/lib/atom/select/index.js +13 -8
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/tooltip/index.d.ts +1 -3
- package/lib/atom/tooltip/index.d.ts.map +1 -1
- package/lib/atom/tooltip/index.js +7 -18
- package/lib/atom/tooltip/index.js.map +1 -1
- package/lib/atom/tooltip/style.css +2 -10
- package/lib/globals.d.js.map +1 -1
- package/lib/molecule/brand-form-group/index.d.ts +8 -0
- package/lib/molecule/cm-popin/types.d.ts +2 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/draggable-list/index.d.ts +2 -0
- package/lib/molecule/filters/filters-wrapper.d.ts.map +1 -1
- package/lib/molecule/filters/filters-wrapper.js +4 -1
- package/lib/molecule/filters/filters-wrapper.js.map +1 -1
- package/lib/molecule/filters/index.d.ts +2 -0
- package/lib/molecule/filters/index.d.ts.map +1 -1
- package/lib/molecule/filters/index.js +9 -3
- package/lib/molecule/filters/index.js.map +1 -1
- package/lib/molecule/setup-section/index.d.ts +2 -0
- package/lib/molecule/setup-section/index.d.ts.map +1 -1
- package/lib/molecule/setup-sections/index.d.ts +2 -0
- package/lib/molecule/setup-slide/index.d.ts +3 -0
- package/lib/molecule/setup-slider/index.d.ts +3 -0
- package/lib/organism/brand-form/index.d.ts +8 -0
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +4 -1
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/user-preferences/index.d.ts +2 -0
- package/lib/organism/wizard-contents/index.d.ts +8 -0
- package/lib/template/activity/index.d.ts +12 -11
- package/lib/template/activity/index.d.ts.map +1 -1
- package/lib/template/activity/index.js +6 -3
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/app-player/loading/index.d.ts +2 -0
- package/lib/template/app-player/player/index.d.ts +4 -0
- package/lib/template/app-player/player/slides/index.d.ts +2 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +2 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +2 -0
- package/lib/template/app-review/index.d.ts +2 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +2 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +2 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +18 -0
- package/lib/template/common/dashboard/index.d.ts +2 -0
- package/lib/template/common/search-page/index.d.ts +3 -0
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +6 -3
- package/lib/template/common/search-page/index.js.map +1 -1
- package/package.json +2 -2
- package/es/atom/battle-opponent/index.d.ts +0 -19
- package/es/atom/battle-opponent/index.d.ts.map +0 -1
- package/es/atom/battle-opponent/index.js +0 -52
- package/es/atom/battle-opponent/index.js.map +0 -1
- package/es/atom/battle-opponent/prop-types.d.ts +0 -19
- package/es/atom/battle-opponent/prop-types.d.ts.map +0 -1
- package/es/atom/battle-opponent/prop-types.js +0 -11
- package/es/atom/battle-opponent/prop-types.js.map +0 -1
- package/es/atom/battle-opponent/style.css +0 -126
- package/lib/atom/battle-opponent/index.d.ts +0 -19
- package/lib/atom/battle-opponent/index.d.ts.map +0 -1
- package/lib/atom/battle-opponent/index.js +0 -70
- package/lib/atom/battle-opponent/index.js.map +0 -1
- package/lib/atom/battle-opponent/prop-types.d.ts +0 -19
- package/lib/atom/battle-opponent/prop-types.d.ts.map +0 -1
- package/lib/atom/battle-opponent/prop-types.js +0 -20
- package/lib/atom/battle-opponent/prop-types.js.map +0 -1
- package/lib/atom/battle-opponent/style.css +0 -126
|
@@ -46,6 +46,8 @@ declare namespace PlayerLoading {
|
|
|
46
46
|
disabled: PropTypes.Requireable<boolean>;
|
|
47
47
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
48
|
description: PropTypes.Requireable<string>;
|
|
49
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
50
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
49
51
|
modified: PropTypes.Requireable<boolean>;
|
|
50
52
|
titlePosition: PropTypes.Requireable<string>;
|
|
51
53
|
theme: PropTypes.Requireable<string>;
|
|
@@ -95,6 +95,8 @@ declare namespace SlidePlayer {
|
|
|
95
95
|
disabled: PropTypes.Requireable<boolean>;
|
|
96
96
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
97
97
|
description: PropTypes.Requireable<string>;
|
|
98
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
99
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
98
100
|
modified: PropTypes.Requireable<boolean>;
|
|
99
101
|
titlePosition: PropTypes.Requireable<string>;
|
|
100
102
|
theme: PropTypes.Requireable<string>;
|
|
@@ -146,6 +148,8 @@ declare namespace SlidePlayer {
|
|
|
146
148
|
disabled: PropTypes.Requireable<boolean>;
|
|
147
149
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
148
150
|
description: PropTypes.Requireable<string>;
|
|
151
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
152
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
149
153
|
modified: PropTypes.Requireable<boolean>;
|
|
150
154
|
titlePosition: PropTypes.Requireable<string>;
|
|
151
155
|
theme: PropTypes.Requireable<string>;
|
|
@@ -103,6 +103,8 @@ declare namespace SlidesPlayer {
|
|
|
103
103
|
disabled: PropTypes.Requireable<boolean>;
|
|
104
104
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
105
105
|
description: PropTypes.Requireable<string>;
|
|
106
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
107
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
106
108
|
modified: PropTypes.Requireable<boolean>;
|
|
107
109
|
titlePosition: PropTypes.Requireable<string>;
|
|
108
110
|
theme: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AAgZA,qEAkBC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AAgZA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1HD;;uBAUC;;;;;;;;;;;;;;;;;;;;;;;AAnOD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;gBAAoF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhHpF,oEAQC;;;;;;;;;AA6MD;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
|
|
@@ -129,6 +129,8 @@ declare class PopinCorrection extends React.Component<any, any, any> {
|
|
|
129
129
|
disabled: PropTypes.Requireable<boolean>;
|
|
130
130
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
131
131
|
description: PropTypes.Requireable<string>;
|
|
132
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
133
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
132
134
|
modified: PropTypes.Requireable<boolean>;
|
|
133
135
|
titlePosition: PropTypes.Requireable<string>;
|
|
134
136
|
theme: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
|
|
@@ -170,6 +170,8 @@ declare namespace PopinEnd {
|
|
|
170
170
|
disabled: PropTypes.Requireable<boolean>;
|
|
171
171
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
172
172
|
description: PropTypes.Requireable<string>;
|
|
173
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
174
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
173
175
|
modified: PropTypes.Requireable<boolean>;
|
|
174
176
|
titlePosition: PropTypes.Requireable<string>;
|
|
175
177
|
theme: PropTypes.Requireable<string>;
|
|
@@ -548,6 +548,8 @@ declare const AppReview: {
|
|
|
548
548
|
disabled: import("prop-types").Requireable<boolean>;
|
|
549
549
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
550
550
|
description: import("prop-types").Requireable<string>;
|
|
551
|
+
'aria-labelledby': import("prop-types").Requireable<string>;
|
|
552
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
551
553
|
modified: import("prop-types").Requireable<boolean>;
|
|
552
554
|
titlePosition: import("prop-types").Requireable<string>;
|
|
553
555
|
theme: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpD,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -548,6 +548,8 @@ declare const propTypes: {
|
|
|
548
548
|
disabled: PropTypes.Requireable<boolean>;
|
|
549
549
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
550
550
|
description: PropTypes.Requireable<string>;
|
|
551
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
552
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
551
553
|
modified: PropTypes.Requireable<boolean>;
|
|
552
554
|
titlePosition: PropTypes.Requireable<string>;
|
|
553
555
|
theme: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,iBAAiB,GAAG;IAC9B,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,gBAAgB,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B,CAAC"}
|
|
@@ -552,6 +552,8 @@ declare const propTypes: {
|
|
|
552
552
|
disabled: PropTypes.Requireable<boolean>;
|
|
553
553
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
554
554
|
description: PropTypes.Requireable<string>;
|
|
555
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
556
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
555
557
|
modified: PropTypes.Requireable<boolean>;
|
|
556
558
|
titlePosition: PropTypes.Requireable<string>;
|
|
557
559
|
theme: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -188,6 +188,8 @@ declare namespace BrandUpdate {
|
|
|
188
188
|
disabled: PropTypes.Requireable<boolean>;
|
|
189
189
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
190
190
|
description: PropTypes.Requireable<string>;
|
|
191
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
192
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
191
193
|
modified: PropTypes.Requireable<boolean>;
|
|
192
194
|
titlePosition: PropTypes.Requireable<string>;
|
|
193
195
|
theme: PropTypes.Requireable<string>;
|
|
@@ -241,6 +243,7 @@ declare namespace BrandUpdate {
|
|
|
241
243
|
modified: PropTypes.Requireable<boolean>;
|
|
242
244
|
error: PropTypes.Requireable<boolean>;
|
|
243
245
|
'aria-label': PropTypes.Requireable<string>;
|
|
246
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
244
247
|
}> | PropTypes.InferProps<{
|
|
245
248
|
type: PropTypes.Requireable<string>;
|
|
246
249
|
title: PropTypes.Validator<string>;
|
|
@@ -320,6 +323,8 @@ declare namespace BrandUpdate {
|
|
|
320
323
|
disabled: PropTypes.Requireable<boolean>;
|
|
321
324
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
322
325
|
description: PropTypes.Requireable<string>;
|
|
326
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
327
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
323
328
|
modified: PropTypes.Requireable<boolean>;
|
|
324
329
|
titlePosition: PropTypes.Requireable<string>;
|
|
325
330
|
theme: PropTypes.Requireable<string>;
|
|
@@ -356,6 +361,7 @@ declare namespace BrandUpdate {
|
|
|
356
361
|
modified: PropTypes.Requireable<boolean>;
|
|
357
362
|
error: PropTypes.Requireable<boolean>;
|
|
358
363
|
'aria-label': PropTypes.Requireable<string>;
|
|
364
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
359
365
|
}> | PropTypes.InferProps<{
|
|
360
366
|
type: PropTypes.Requireable<string>;
|
|
361
367
|
title: PropTypes.Validator<string>;
|
|
@@ -460,6 +466,8 @@ declare namespace BrandUpdate {
|
|
|
460
466
|
disabled: PropTypes.Requireable<boolean>;
|
|
461
467
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
462
468
|
description: PropTypes.Requireable<string>;
|
|
469
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
470
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
463
471
|
modified: PropTypes.Requireable<boolean>;
|
|
464
472
|
titlePosition: PropTypes.Requireable<string>;
|
|
465
473
|
theme: PropTypes.Requireable<string>;
|
|
@@ -834,6 +842,8 @@ declare namespace BrandUpdate {
|
|
|
834
842
|
disabled: PropTypes.Requireable<boolean>;
|
|
835
843
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
836
844
|
description: PropTypes.Requireable<string>;
|
|
845
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
846
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
837
847
|
modified: PropTypes.Requireable<boolean>;
|
|
838
848
|
titlePosition: PropTypes.Requireable<string>;
|
|
839
849
|
theme: PropTypes.Requireable<string>;
|
|
@@ -887,6 +897,7 @@ declare namespace BrandUpdate {
|
|
|
887
897
|
modified: PropTypes.Requireable<boolean>;
|
|
888
898
|
error: PropTypes.Requireable<boolean>;
|
|
889
899
|
'aria-label': PropTypes.Requireable<string>;
|
|
900
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
890
901
|
}> | PropTypes.InferProps<{
|
|
891
902
|
type: PropTypes.Requireable<string>;
|
|
892
903
|
title: PropTypes.Validator<string>;
|
|
@@ -966,6 +977,8 @@ declare namespace BrandUpdate {
|
|
|
966
977
|
disabled: PropTypes.Requireable<boolean>;
|
|
967
978
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
968
979
|
description: PropTypes.Requireable<string>;
|
|
980
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
981
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
969
982
|
modified: PropTypes.Requireable<boolean>;
|
|
970
983
|
titlePosition: PropTypes.Requireable<string>;
|
|
971
984
|
theme: PropTypes.Requireable<string>;
|
|
@@ -1002,6 +1015,7 @@ declare namespace BrandUpdate {
|
|
|
1002
1015
|
modified: PropTypes.Requireable<boolean>;
|
|
1003
1016
|
error: PropTypes.Requireable<boolean>;
|
|
1004
1017
|
'aria-label': PropTypes.Requireable<string>;
|
|
1018
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
1005
1019
|
}> | PropTypes.InferProps<{
|
|
1006
1020
|
type: PropTypes.Requireable<string>;
|
|
1007
1021
|
title: PropTypes.Validator<string>;
|
|
@@ -1106,6 +1120,8 @@ declare namespace BrandUpdate {
|
|
|
1106
1120
|
disabled: PropTypes.Requireable<boolean>;
|
|
1107
1121
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1108
1122
|
description: PropTypes.Requireable<string>;
|
|
1123
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
1124
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
1109
1125
|
modified: PropTypes.Requireable<boolean>;
|
|
1110
1126
|
titlePosition: PropTypes.Requireable<string>;
|
|
1111
1127
|
theme: PropTypes.Requireable<string>;
|
|
@@ -1590,6 +1606,8 @@ declare namespace BrandUpdate {
|
|
|
1590
1606
|
disabled: PropTypes.Requireable<boolean>;
|
|
1591
1607
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1592
1608
|
description: PropTypes.Requireable<string>;
|
|
1609
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
1610
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
1593
1611
|
modified: PropTypes.Requireable<boolean>;
|
|
1594
1612
|
titlePosition: PropTypes.Requireable<string>;
|
|
1595
1613
|
theme: PropTypes.Requireable<string>;
|
|
@@ -47,6 +47,8 @@ declare namespace Dashboard {
|
|
|
47
47
|
disabled: PropTypes.Requireable<boolean>;
|
|
48
48
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
49
49
|
description: PropTypes.Requireable<string>;
|
|
50
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
51
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
50
52
|
modified: PropTypes.Requireable<boolean>;
|
|
51
53
|
titlePosition: PropTypes.Requireable<string>;
|
|
52
54
|
theme: PropTypes.Requireable<string>;
|
|
@@ -67,6 +67,7 @@ declare namespace SearchPage {
|
|
|
67
67
|
modified: PropTypes.Requireable<boolean>;
|
|
68
68
|
error: PropTypes.Requireable<boolean>;
|
|
69
69
|
'aria-label': PropTypes.Requireable<string>;
|
|
70
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
70
71
|
}>>;
|
|
71
72
|
onSearch: PropTypes.Requireable<(...args: any[]) => any>;
|
|
72
73
|
onToggleFilters: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -74,6 +75,7 @@ declare namespace SearchPage {
|
|
|
74
75
|
moreSortAriaLabel: PropTypes.Requireable<string>;
|
|
75
76
|
moreFilterAriaLabel: PropTypes.Requireable<string>;
|
|
76
77
|
filterGroupAriaLabel: PropTypes.Requireable<string>;
|
|
78
|
+
sortAriaLabel: PropTypes.Requireable<string>;
|
|
77
79
|
}>>;
|
|
78
80
|
const cards: PropTypes.Requireable<PropTypes.InferProps<{
|
|
79
81
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
@@ -111,6 +113,7 @@ declare namespace SearchPage {
|
|
|
111
113
|
const moreSortAriaLabel: PropTypes.Requireable<string>;
|
|
112
114
|
const moreFilterAriaLabel: PropTypes.Requireable<string>;
|
|
113
115
|
const filterGroupAriaLabel: PropTypes.Requireable<string>;
|
|
116
|
+
const sortAriaLabel: PropTypes.Requireable<string>;
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAUA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAUA,mEAsDC"}
|
|
@@ -37,7 +37,8 @@ const SearchPage = (props, context) => {
|
|
|
37
37
|
recommendations,
|
|
38
38
|
moreSortAriaLabel,
|
|
39
39
|
moreFilterAriaLabel,
|
|
40
|
-
filterGroupAriaLabel
|
|
40
|
+
filterGroupAriaLabel,
|
|
41
|
+
sortAriaLabel
|
|
41
42
|
} = props;
|
|
42
43
|
const {
|
|
43
44
|
skin
|
|
@@ -59,7 +60,8 @@ const SearchPage = (props, context) => {
|
|
|
59
60
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_filters.default, _extends({}, searchFilters, {
|
|
60
61
|
moreSortAriaLabel: moreSortAriaLabel,
|
|
61
62
|
moreFilterAriaLabel: moreFilterAriaLabel,
|
|
62
|
-
filterGroupAriaLabel: filterGroupAriaLabel
|
|
63
|
+
filterGroupAriaLabel: filterGroupAriaLabel,
|
|
64
|
+
sortAriaLabel: sortAriaLabel
|
|
63
65
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
64
66
|
"data-name": "searchResult",
|
|
65
67
|
className: _style.default.cardsWrapper
|
|
@@ -81,7 +83,8 @@ SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
81
83
|
recommendations: _propTypes.default.shape(_cardsList.default.propTypes),
|
|
82
84
|
moreSortAriaLabel: _propTypes.default.string,
|
|
83
85
|
moreFilterAriaLabel: _propTypes.default.string,
|
|
84
|
-
filterGroupAriaLabel: _propTypes.default.string
|
|
86
|
+
filterGroupAriaLabel: _propTypes.default.string,
|
|
87
|
+
sortAriaLabel: _propTypes.default.string
|
|
85
88
|
} : {};
|
|
86
89
|
var _default = SearchPage;
|
|
87
90
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","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 } = 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 />\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};\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;
|
|
1
|
+
{"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","style","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","shape","Filters","CardsGrid","Button","CardsList"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,KADI;IAEJC,aAFI;IAGJC,KAHI;IAIJC,cAJI;IAKJC,YALI;IAMJC,eANI;IAOJC,iBAPI;IAQJC,mBARI;IASJC,oBATI;IAUJC;EAVI,IAWFX,KAXJ;EAaA,MAAM;IAACY;EAAD,IAASX,OAAf;EACA,MAAMY,YAAY,GAAG,qBAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;EAEA,MAAME,mBAAmB,GAAG,uBAAQP,eAAR,IAA2B,IAA3B,gBAAkC,6BAAC,kBAAD,EAAeA,eAAf,CAA9D;EAEA,MAAMQ,SAAS,GAAG,uBAAQX,KAAK,CAACY,IAAd,iBAChB,uDACE;IAAK,SAAS,EAAEC,cAAA,CAAMC;EAAtB,gBACE;IAA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rBnB,mBAAmB,EAAEkB,kBAAA,CAAUC,MARV;EASrBlB,oBAAoB,EAAEiB,kBAAA,CAAUC,MATX;EAUrBjB,aAAa,EAAEgB,kBAAA,CAAUC;AAVJ,CAAvB;eAae7B,U"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.11.1
|
|
3
|
+
"version": "11.11.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -162,5 +162,5 @@
|
|
|
162
162
|
"last 2 versions",
|
|
163
163
|
"IE 11"
|
|
164
164
|
],
|
|
165
|
-
"gitHead": "
|
|
165
|
+
"gitHead": "3c136e031dad5e7b1b4f2e40a7a3de5971e88472"
|
|
166
166
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { WebContextValues } from '../provider/web-context';
|
|
3
|
-
import { BattleOpponentProps } from './prop-types';
|
|
4
|
-
declare const BattleOpponent: {
|
|
5
|
-
({ isAlreadyEngaged, isRandom, userAvatarSrc, onClick, displayName, tooltipText }: BattleOpponentProps, legacyContext: WebContextValues): JSX.Element;
|
|
6
|
-
propTypes: {
|
|
7
|
-
isAlreadyEngaged: import("prop-types").Requireable<boolean>;
|
|
8
|
-
isRandom: import("prop-types").Requireable<boolean>;
|
|
9
|
-
userAvatarSrc: import("prop-types").Requireable<string>;
|
|
10
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
11
|
-
displayName: import("prop-types").Requireable<string>;
|
|
12
|
-
tooltipText: import("prop-types").Requireable<string>;
|
|
13
|
-
};
|
|
14
|
-
contextTypes: {
|
|
15
|
-
translate: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default BattleOpponent;
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/battle-opponent/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAkB,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AAG5D,QAAA,MAAM,cAAc;uFAQf,mBAAmB,iBACP,gBAAgB;;;;;;;;;;;;CAsChC,CAAC;AAQF,eAAe,cAAc,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
|
|
3
|
-
import React, { useMemo } from 'react';
|
|
4
|
-
import classnames from 'classnames';
|
|
5
|
-
import { NovaCompositionNavigationArrowRight as ArrowRight } from '@coorpacademy/nova-icons';
|
|
6
|
-
import ToolTip from '../tooltip';
|
|
7
|
-
import Provider, { GetTranslateFromContext } from '../provider';
|
|
8
|
-
import propTypes from './prop-types';
|
|
9
|
-
import style from './style.css';
|
|
10
|
-
|
|
11
|
-
const BattleOpponent = ({
|
|
12
|
-
isAlreadyEngaged,
|
|
13
|
-
isRandom,
|
|
14
|
-
userAvatarSrc,
|
|
15
|
-
onClick,
|
|
16
|
-
displayName,
|
|
17
|
-
tooltipText
|
|
18
|
-
}, legacyContext) => {
|
|
19
|
-
const translate = GetTranslateFromContext(legacyContext);
|
|
20
|
-
const wrapperClassnames = useMemo(() => classnames(style.card, style['opponent-card'], isRandom ? style.random : null), [isRandom]);
|
|
21
|
-
const displayNameClassnames = useMemo(() => classnames(style.name, isAlreadyEngaged ? style.alreadyEngaged : null), [isAlreadyEngaged]);
|
|
22
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, !isAlreadyEngaged && {
|
|
23
|
-
onClick
|
|
24
|
-
}, {
|
|
25
|
-
className: wrapperClassnames,
|
|
26
|
-
"data-testid": "battle-opponent-wrapper"
|
|
27
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
className: style.avatar
|
|
29
|
-
}, isRandom ? null : /*#__PURE__*/React.createElement("img", {
|
|
30
|
-
src: userAvatarSrc,
|
|
31
|
-
"aria-hidden": "true"
|
|
32
|
-
})), /*#__PURE__*/React.createElement("p", {
|
|
33
|
-
className: displayNameClassnames
|
|
34
|
-
}, " ", displayName), isAlreadyEngaged ? /*#__PURE__*/React.createElement(ToolTip, {
|
|
35
|
-
fontSize: 12,
|
|
36
|
-
iconSize: "big",
|
|
37
|
-
TooltipContent: tooltipText,
|
|
38
|
-
closeToolTipInformationTextAriaLabel: translate('Press the escape key to close the information text'),
|
|
39
|
-
iconContainerClassName: style.infoIconTooltip
|
|
40
|
-
}) : /*#__PURE__*/React.createElement(ArrowRight, {
|
|
41
|
-
className: style.rightArrow,
|
|
42
|
-
width: 16,
|
|
43
|
-
height: 16
|
|
44
|
-
}));
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
BattleOpponent.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
48
|
-
BattleOpponent.contextTypes = {
|
|
49
|
-
translate: Provider.childContextTypes.translate
|
|
50
|
-
};
|
|
51
|
-
export default BattleOpponent;
|
|
52
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","classnames","NovaCompositionNavigationArrowRight","ArrowRight","ToolTip","Provider","GetTranslateFromContext","propTypes","style","BattleOpponent","isAlreadyEngaged","isRandom","userAvatarSrc","onClick","displayName","tooltipText","legacyContext","translate","wrapperClassnames","card","random","displayNameClassnames","name","alreadyEngaged","avatar","infoIconTooltip","rightArrow","contextTypes","childContextTypes"],"sources":["../../../src/atom/battle-opponent/index.tsx"],"sourcesContent":["import React, {useMemo} from 'react';\nimport classnames from 'classnames';\nimport {NovaCompositionNavigationArrowRight as ArrowRight} from '@coorpacademy/nova-icons';\nimport ToolTip from '../tooltip';\nimport Provider, {GetTranslateFromContext} from '../provider';\nimport {WebContextValues} from '../provider/web-context';\nimport propTypes, {BattleOpponentProps} from './prop-types';\nimport style from './style.css';\n\nconst BattleOpponent = (\n {\n isAlreadyEngaged,\n isRandom,\n userAvatarSrc,\n onClick,\n displayName,\n tooltipText\n }: BattleOpponentProps,\n legacyContext: WebContextValues\n) => {\n const translate: Required<WebContextValues>['translate'] = GetTranslateFromContext(legacyContext);\n const wrapperClassnames = useMemo(\n () => classnames(style.card, style['opponent-card'], isRandom ? style.random : null),\n [isRandom]\n );\n\n const displayNameClassnames = useMemo(\n () => classnames(style.name, isAlreadyEngaged ? style.alreadyEngaged : null),\n [isAlreadyEngaged]\n );\n\n return (\n <div\n {...(!isAlreadyEngaged && {onClick})}\n className={wrapperClassnames}\n data-testid=\"battle-opponent-wrapper\"\n >\n <div className={style.avatar}>\n {isRandom ? null : <img src={userAvatarSrc} aria-hidden=\"true\" />}\n </div>\n <p className={displayNameClassnames}> {displayName}</p>\n {isAlreadyEngaged ? (\n <ToolTip\n fontSize={12}\n iconSize=\"big\"\n TooltipContent={tooltipText}\n closeToolTipInformationTextAriaLabel={translate(\n 'Press the escape key to close the information text'\n )}\n iconContainerClassName={style.infoIconTooltip}\n />\n ) : (\n <ArrowRight className={style.rightArrow} width={16} height={16} />\n )}\n </div>\n );\n};\n\nBattleOpponent.propTypes = propTypes;\n\nBattleOpponent.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default BattleOpponent;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAAQC,mCAAmC,IAAIC,UAA/C,QAAgE,0BAAhE;AACA,OAAOC,OAAP,MAAoB,YAApB;AACA,OAAOC,QAAP,IAAkBC,uBAAlB,QAAgD,aAAhD;A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AE;EAA5D,EApBJ,CADF;AAyBD,CA/CD;;AAiDAjB,cAAc,CAACF,SAAf,2CAA2BA,SAA3B;AAEAE,cAAc,CAACkB,YAAf,GAA8B;EAC5BV,SAAS,EAAEZ,QAAQ,CAACuB,iBAAT,CAA2BX;AADV,CAA9B;AAIA,eAAeR,cAAf"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
isAlreadyEngaged: PropTypes.Requireable<boolean>;
|
|
4
|
-
isRandom: PropTypes.Requireable<boolean>;
|
|
5
|
-
userAvatarSrc: PropTypes.Requireable<string>;
|
|
6
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
7
|
-
displayName: PropTypes.Requireable<string>;
|
|
8
|
-
tooltipText: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
|
-
export declare type BattleOpponentProps = {
|
|
11
|
-
isAlreadyEngaged?: boolean;
|
|
12
|
-
isRandom?: boolean;
|
|
13
|
-
userAvatarSrc?: string;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
displayName: string;
|
|
16
|
-
tooltipText?: string;
|
|
17
|
-
};
|
|
18
|
-
export default propTypes;
|
|
19
|
-
//# sourceMappingURL=prop-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/atom/battle-opponent/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;CAOd,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
const propTypes = {
|
|
3
|
-
isAlreadyEngaged: PropTypes.bool,
|
|
4
|
-
isRandom: PropTypes.bool,
|
|
5
|
-
userAvatarSrc: PropTypes.string,
|
|
6
|
-
onClick: PropTypes.func,
|
|
7
|
-
displayName: PropTypes.string,
|
|
8
|
-
tooltipText: PropTypes.string
|
|
9
|
-
};
|
|
10
|
-
export default propTypes;
|
|
11
|
-
//# sourceMappingURL=prop-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","isAlreadyEngaged","bool","isRandom","userAvatarSrc","string","onClick","func","displayName","tooltipText"],"sources":["../../../src/atom/battle-opponent/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n isAlreadyEngaged: PropTypes.bool,\n isRandom: PropTypes.bool,\n userAvatarSrc: PropTypes.string,\n onClick: PropTypes.func,\n displayName: PropTypes.string,\n tooltipText: PropTypes.string\n};\n\nexport type BattleOpponentProps = {\n isAlreadyEngaged?: boolean;\n isRandom?: boolean;\n userAvatarSrc?: string;\n onClick?: () => void;\n displayName: string;\n tooltipText?: string;\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,MAAMC,SAAS,GAAG;EAChBC,gBAAgB,EAAEF,SAAS,CAACG,IADZ;EAEhBC,QAAQ,EAAEJ,SAAS,CAACG,IAFJ;EAGhBE,aAAa,EAAEL,SAAS,CAACM,MAHT;EAIhBC,OAAO,EAAEP,SAAS,CAACQ,IAJH;EAKhBC,WAAW,EAAET,SAAS,CAACM,MALP;EAMhBI,WAAW,EAAEV,SAAS,CAACM;AANP,CAAlB;AAkBA,eAAeL,SAAf"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
@value breakpoints: "../../variables/breakpoints.css";
|
|
2
|
-
@value mobile from breakpoints;
|
|
3
|
-
@value colors: "../../variables/colors.css";
|
|
4
|
-
@value white from colors;
|
|
5
|
-
@value dark from colors;
|
|
6
|
-
@value black from colors;
|
|
7
|
-
@value cm_grey_75 from colors;
|
|
8
|
-
@value medium from colors;
|
|
9
|
-
@value light from colors;
|
|
10
|
-
@value brand from colors;
|
|
11
|
-
|
|
12
|
-
.rightArrow {
|
|
13
|
-
position: flex;
|
|
14
|
-
padding: 9px;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
opacity: 1;
|
|
17
|
-
user-select: none;
|
|
18
|
-
text-align: right;
|
|
19
|
-
color: dark;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.card {
|
|
23
|
-
margin: 5px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.opponent-card {
|
|
27
|
-
flex: 1 1 350px;
|
|
28
|
-
height: 80px;
|
|
29
|
-
background-color: white;
|
|
30
|
-
box-shadow: 0 0 4px 1px rgba(0,0,0,0.10);
|
|
31
|
-
border-radius: 3px;
|
|
32
|
-
padding: 20px;
|
|
33
|
-
box-sizing: border-box;
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: space-between;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.opponent-card .name {
|
|
41
|
-
font-family: 'Gilroy';
|
|
42
|
-
font-size: 15px;
|
|
43
|
-
font-weight: 700;
|
|
44
|
-
color: black;
|
|
45
|
-
flex-grow: 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
.opponent-card .rightArrow {
|
|
50
|
-
margin-left: 20px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* div:not(.random) */
|
|
54
|
-
.avatar {
|
|
55
|
-
width: 50px;
|
|
56
|
-
height: 50px;
|
|
57
|
-
border-radius: 50%;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
background-color: light;
|
|
60
|
-
margin-right: 20px;
|
|
61
|
-
flex-shrink: 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.avatar img {
|
|
65
|
-
width: 100%;
|
|
66
|
-
height: auto;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
.random {
|
|
71
|
-
color: medium;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.alreadyEngaged.name,
|
|
75
|
-
.random .name {
|
|
76
|
-
color: medium;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.random .avatar {
|
|
80
|
-
background-color: brand;
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.random .avatar:before {
|
|
87
|
-
content: '?';
|
|
88
|
-
font-family: 'Gilroy';
|
|
89
|
-
font-size: 32px;
|
|
90
|
-
font-weight: 600;
|
|
91
|
-
color: white;
|
|
92
|
-
text-align: center;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.random .avatar img {
|
|
96
|
-
display: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.opponent-card:hover {
|
|
100
|
-
background-color: cm_grey_75;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.card .infoIconTooltip {
|
|
104
|
-
background: transparent;
|
|
105
|
-
/* height: 100%; */
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@media mobile {
|
|
109
|
-
.opponent-card {
|
|
110
|
-
width: 100%;
|
|
111
|
-
padding: 10px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.opponent-card .avatar {
|
|
115
|
-
margin-right: 10px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.opponent-card .rightArrow {
|
|
119
|
-
margin-left: 10px;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.card {
|
|
123
|
-
margin: 0 0 10px;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { WebContextValues } from '../provider/web-context';
|
|
3
|
-
import { BattleOpponentProps } from './prop-types';
|
|
4
|
-
declare const BattleOpponent: {
|
|
5
|
-
({ isAlreadyEngaged, isRandom, userAvatarSrc, onClick, displayName, tooltipText }: BattleOpponentProps, legacyContext: WebContextValues): JSX.Element;
|
|
6
|
-
propTypes: {
|
|
7
|
-
isAlreadyEngaged: import("prop-types").Requireable<boolean>;
|
|
8
|
-
isRandom: import("prop-types").Requireable<boolean>;
|
|
9
|
-
userAvatarSrc: import("prop-types").Requireable<string>;
|
|
10
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
11
|
-
displayName: import("prop-types").Requireable<string>;
|
|
12
|
-
tooltipText: import("prop-types").Requireable<string>;
|
|
13
|
-
};
|
|
14
|
-
contextTypes: {
|
|
15
|
-
translate: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default BattleOpponent;
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/battle-opponent/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAkB,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AAG5D,QAAA,MAAM,cAAc;uFAQf,mBAAmB,iBACP,gBAAgB;;;;;;;;;;;;CAsChC,CAAC;AAQF,eAAe,cAAc,CAAC"}
|