@coorpacademy/components 11.19.2-alpha.14 → 11.19.2-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/title/style.css +1 -1
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +2 -6
- 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.map +1 -1
- package/es/molecule/cm-popin/index.js +3 -20
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +0 -26
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +46 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.js +15 -3
- package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
- package/es/organism/rewards-form/index.d.ts +46 -0
- package/es/organism/select-opponents/index.d.ts +82 -26
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/index.js +3 -3
- package/es/organism/select-opponents/index.js.map +1 -1
- package/es/organism/select-opponents/style.css +6 -0
- package/es/organism/select-opponents/types.d.ts +90 -28
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/select-opponents/types.js +2 -2
- package/es/organism/select-opponents/types.js.map +1 -1
- package/es/organism/title-and-input/index.d.ts +82 -26
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +82 -26
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +46 -0
- 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/dashboard/style.css +0 -4
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +2 -4
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/common/search-page/style.css +0 -4
- package/lib/atom/title/style.css +1 -1
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +2 -6
- 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.map +1 -1
- package/lib/molecule/cm-popin/index.js +3 -24
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +0 -26
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +46 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.js +17 -3
- package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
- package/lib/organism/rewards-form/index.d.ts +46 -0
- package/lib/organism/select-opponents/index.d.ts +82 -26
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/index.js +3 -3
- package/lib/organism/select-opponents/index.js.map +1 -1
- package/lib/organism/select-opponents/style.css +6 -0
- package/lib/organism/select-opponents/types.d.ts +90 -28
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.js +2 -2
- package/lib/organism/select-opponents/types.js.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +82 -26
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +82 -26
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +46 -0
- 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/dashboard/style.css +0 -4
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +2 -8
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/common/search-page/style.css +0 -4
- package/locales/.mtslconfig.json +1 -0
- package/package.json +2 -2
|
@@ -1,40 +1,78 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import { TitleRadioWrapperProps } from '../../molecule/title-radio-wrapper/types';
|
|
3
2
|
export declare const propTypes: {
|
|
4
3
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
5
|
-
|
|
6
|
-
title: PropTypes.
|
|
7
|
-
title: PropTypes.Requireable<string>;
|
|
8
|
-
subtitle: PropTypes.Requireable<string>;
|
|
9
|
-
type: PropTypes.Requireable<string>;
|
|
10
|
-
'data-name': PropTypes.Requireable<string>;
|
|
11
|
-
titleSize: PropTypes.Requireable<string>;
|
|
12
|
-
subtitleSize: PropTypes.Requireable<string>;
|
|
13
|
-
}>>>;
|
|
4
|
+
checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
5
|
+
title: PropTypes.Requireable<string>;
|
|
14
6
|
name: PropTypes.Requireable<string>;
|
|
15
7
|
checked: PropTypes.Requireable<boolean>;
|
|
16
|
-
onChange: PropTypes.
|
|
8
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
9
|
'aria-label': PropTypes.Requireable<string>;
|
|
18
10
|
'data-name': PropTypes.Requireable<string>;
|
|
19
11
|
}>>;
|
|
20
|
-
|
|
12
|
+
sectionTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
|
+
removeMargin: PropTypes.Requireable<boolean>;
|
|
21
14
|
title: PropTypes.Requireable<string>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
subtitle: PropTypes.Requireable<string>;
|
|
16
|
+
type: PropTypes.Requireable<string>;
|
|
17
|
+
'data-name': PropTypes.Requireable<string>;
|
|
18
|
+
titleSize: PropTypes.Requireable<string>;
|
|
19
|
+
subtitleSize: PropTypes.Requireable<string>;
|
|
20
|
+
}>>;
|
|
21
|
+
child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
22
|
+
childType: PropTypes.Requireable<string>;
|
|
23
|
+
inputText: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
|
+
theme: PropTypes.Requireable<string>;
|
|
25
|
+
size: PropTypes.Requireable<string>;
|
|
26
|
+
autoFocus: PropTypes.Requireable<boolean>;
|
|
27
|
+
title: PropTypes.Requireable<string>;
|
|
28
|
+
placeholder: PropTypes.Requireable<string>;
|
|
29
|
+
defaultValue: PropTypes.Requireable<string>;
|
|
30
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
28
31
|
value: PropTypes.Requireable<string>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
hint: PropTypes.Requireable<string>;
|
|
33
|
+
error: PropTypes.Requireable<string>;
|
|
34
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
|
+
description: PropTypes.Requireable<string>;
|
|
36
|
+
modified: PropTypes.Requireable<boolean>;
|
|
37
|
+
valid: PropTypes.Requireable<boolean>;
|
|
38
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
39
|
+
'data-name': PropTypes.Requireable<string>;
|
|
40
|
+
}>>;
|
|
41
|
+
title: PropTypes.Requireable<string>;
|
|
42
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
43
|
+
'data-name': PropTypes.Requireable<string>;
|
|
44
|
+
}> | PropTypes.InferProps<{
|
|
45
|
+
childType: PropTypes.Requireable<string>;
|
|
46
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
47
|
+
name: PropTypes.Requireable<string>;
|
|
48
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
49
|
+
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
50
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
51
|
+
error: PropTypes.Requireable<string>;
|
|
52
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
53
|
+
errorButtonLabel: PropTypes.Requireable<string>;
|
|
54
|
+
labelLink: PropTypes.Requireable<string>;
|
|
55
|
+
hrefLink: PropTypes.Requireable<string>;
|
|
56
|
+
title: PropTypes.Requireable<string>;
|
|
57
|
+
description: PropTypes.Requireable<string>;
|
|
58
|
+
uploadLabel: PropTypes.Requireable<string>;
|
|
59
|
+
previewLabel: PropTypes.Requireable<string>;
|
|
60
|
+
previewContent: PropTypes.Requireable<PropTypes.InferProps<{
|
|
61
|
+
type: PropTypes.Requireable<string>;
|
|
62
|
+
src: PropTypes.Requireable<string>;
|
|
63
|
+
label: PropTypes.Requireable<string>;
|
|
64
|
+
}>>;
|
|
65
|
+
loading: PropTypes.Requireable<boolean>;
|
|
66
|
+
modified: PropTypes.Requireable<boolean>;
|
|
67
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
68
|
+
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
69
|
+
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
70
|
+
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
71
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
72
|
+
}> | null | undefined)[]>;
|
|
73
|
+
'data-name': PropTypes.Requireable<string>;
|
|
37
74
|
}> | PropTypes.InferProps<{
|
|
75
|
+
childType: PropTypes.Requireable<string>;
|
|
38
76
|
name: PropTypes.Requireable<string>;
|
|
39
77
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
78
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -60,12 +98,36 @@ export declare const propTypes: {
|
|
|
60
98
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
61
99
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
62
100
|
multiple: PropTypes.Requireable<boolean>;
|
|
101
|
+
}> | PropTypes.InferProps<{
|
|
102
|
+
childType: PropTypes.Requireable<string>;
|
|
103
|
+
title: PropTypes.Requireable<string>;
|
|
104
|
+
placeholder: PropTypes.Requireable<string>;
|
|
105
|
+
description: PropTypes.Requireable<string>;
|
|
106
|
+
hint: PropTypes.Requireable<string>;
|
|
107
|
+
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
108
|
+
selected: PropTypes.Validator<boolean>;
|
|
109
|
+
name: PropTypes.Validator<string>;
|
|
110
|
+
value: PropTypes.Requireable<string>;
|
|
111
|
+
}>>[]>;
|
|
112
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
113
|
+
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
114
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
115
|
+
modified: PropTypes.Requireable<boolean>;
|
|
116
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
117
|
+
error: PropTypes.Requireable<string>;
|
|
118
|
+
theme: PropTypes.Requireable<string>;
|
|
63
119
|
}> | null | undefined>>;
|
|
64
|
-
childType: PropTypes.Requireable<string>;
|
|
65
120
|
}> | null | undefined)[]>;
|
|
66
121
|
};
|
|
122
|
+
export declare type TitleAndCheckBoxWrapperProps = {
|
|
123
|
+
child: {
|
|
124
|
+
childType: 'select-multiple' | 'image-upload';
|
|
125
|
+
[x: string]: unknown;
|
|
126
|
+
};
|
|
127
|
+
[x: string]: unknown;
|
|
128
|
+
};
|
|
67
129
|
export declare type SelectOpponentsProps = {
|
|
68
|
-
items:
|
|
130
|
+
items: TitleAndCheckBoxWrapperProps[];
|
|
69
131
|
};
|
|
70
132
|
export default propTypes;
|
|
71
133
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAAC;QAC9C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,4BAA4B,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -5,12 +5,12 @@ exports.propTypes = exports.default = void 0;
|
|
|
5
5
|
|
|
6
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _titleAndCheckboxWrapper = _interopRequireDefault(require("../../molecule/title-and-checkbox-wrapper"));
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
12
|
const propTypes = {
|
|
13
|
-
items: _propTypes.default.arrayOf(_propTypes.default.shape(
|
|
13
|
+
items: _propTypes.default.arrayOf(_propTypes.default.shape(_titleAndCheckboxWrapper.default.propTypes))
|
|
14
14
|
};
|
|
15
15
|
exports.propTypes = propTypes;
|
|
16
16
|
var _default = propTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","items","PropTypes","arrayOf","shape","
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","items","PropTypes","arrayOf","shape","TitleAndCheckBoxWrapper"],"sources":["../../../src/organism/select-opponents/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport TitleAndCheckBoxWrapper from '../../molecule/title-and-checkbox-wrapper';\n\nexport const propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(TitleAndCheckBoxWrapper.propTypes))\n};\n\nexport type TitleAndCheckBoxWrapperProps = {\n child: {\n childType: 'select-multiple' | 'image-upload';\n [x: string]: unknown;\n };\n [x: string]: unknown;\n};\n\nexport type SelectOpponentsProps = {\n items: TitleAndCheckBoxWrapperProps[];\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,gCAAA,CAAwBL,SAAxC,CAAlB;AADgB,CAAlB;;eAgBQA,S"}
|
|
@@ -49,39 +49,78 @@ declare const TitleAndInput: {
|
|
|
49
49
|
onSuggestionSelected: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
50
50
|
}> | import("prop-types").InferProps<{
|
|
51
51
|
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
52
|
-
|
|
53
|
-
title: import("prop-types").
|
|
54
|
-
title: import("prop-types").Requireable<string>;
|
|
55
|
-
subtitle: import("prop-types").Requireable<string>;
|
|
56
|
-
type: import("prop-types").Requireable<string>;
|
|
57
|
-
'data-name': import("prop-types").Requireable<string>;
|
|
58
|
-
titleSize: import("prop-types").Requireable<string>;
|
|
59
|
-
subtitleSize: import("prop-types").Requireable<string>;
|
|
60
|
-
}>>>;
|
|
52
|
+
checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
53
|
+
title: import("prop-types").Requireable<string>;
|
|
61
54
|
name: import("prop-types").Requireable<string>;
|
|
62
55
|
checked: import("prop-types").Requireable<boolean>;
|
|
63
|
-
onChange: import("prop-types").
|
|
56
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
64
57
|
'aria-label': import("prop-types").Requireable<string>;
|
|
65
58
|
'data-name': import("prop-types").Requireable<string>;
|
|
66
59
|
}>>;
|
|
67
|
-
|
|
60
|
+
sectionTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
61
|
+
removeMargin: import("prop-types").Requireable<boolean>;
|
|
68
62
|
title: import("prop-types").Requireable<string>;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
subtitle: import("prop-types").Requireable<string>;
|
|
64
|
+
type: import("prop-types").Requireable<string>;
|
|
65
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
66
|
+
titleSize: import("prop-types").Requireable<string>;
|
|
67
|
+
subtitleSize: import("prop-types").Requireable<string>;
|
|
68
|
+
}>>;
|
|
69
|
+
child: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
70
|
+
childType: import("prop-types").Requireable<string>;
|
|
71
|
+
inputText: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
72
|
+
theme: import("prop-types").Requireable<string>;
|
|
73
|
+
size: import("prop-types").Requireable<string>;
|
|
74
|
+
autoFocus: import("prop-types").Requireable<boolean>;
|
|
75
|
+
title: import("prop-types").Requireable<string>;
|
|
76
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
77
|
+
defaultValue: import("prop-types").Requireable<string>;
|
|
78
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
75
79
|
value: import("prop-types").Requireable<string>;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
hint: import("prop-types").Requireable<string>;
|
|
81
|
+
error: import("prop-types").Requireable<string>;
|
|
82
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
83
|
+
description: import("prop-types").Requireable<string>;
|
|
84
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
85
|
+
valid: import("prop-types").Requireable<boolean>;
|
|
86
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
87
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
88
|
+
}>>;
|
|
89
|
+
title: import("prop-types").Requireable<string>;
|
|
90
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
91
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
92
|
+
}> | import("prop-types").InferProps<{
|
|
93
|
+
childType: import("prop-types").Requireable<string>;
|
|
94
|
+
list: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
95
|
+
name: import("prop-types").Requireable<string>;
|
|
96
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
97
|
+
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
98
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
99
|
+
error: import("prop-types").Requireable<string>;
|
|
100
|
+
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
101
|
+
errorButtonLabel: import("prop-types").Requireable<string>;
|
|
102
|
+
labelLink: import("prop-types").Requireable<string>;
|
|
103
|
+
hrefLink: import("prop-types").Requireable<string>;
|
|
104
|
+
title: import("prop-types").Requireable<string>;
|
|
105
|
+
description: import("prop-types").Requireable<string>;
|
|
106
|
+
uploadLabel: import("prop-types").Requireable<string>;
|
|
107
|
+
previewLabel: import("prop-types").Requireable<string>;
|
|
108
|
+
previewContent: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
109
|
+
type: import("prop-types").Requireable<string>;
|
|
110
|
+
src: import("prop-types").Requireable<string>;
|
|
111
|
+
label: import("prop-types").Requireable<string>;
|
|
112
|
+
}>>;
|
|
113
|
+
loading: import("prop-types").Requireable<boolean>;
|
|
114
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
115
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
116
|
+
children: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
117
|
+
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
118
|
+
pdfButtonAriaLabel: import("prop-types").Requireable<string>;
|
|
119
|
+
multiple: import("prop-types").Requireable<boolean>;
|
|
120
|
+
}> | null | undefined)[]>;
|
|
121
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
84
122
|
}> | import("prop-types").InferProps<{
|
|
123
|
+
childType: import("prop-types").Requireable<string>;
|
|
85
124
|
name: import("prop-types").Requireable<string>;
|
|
86
125
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
87
126
|
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
@@ -107,8 +146,25 @@ declare const TitleAndInput: {
|
|
|
107
146
|
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
108
147
|
pdfButtonAriaLabel: import("prop-types").Requireable<string>;
|
|
109
148
|
multiple: import("prop-types").Requireable<boolean>;
|
|
149
|
+
}> | import("prop-types").InferProps<{
|
|
150
|
+
childType: import("prop-types").Requireable<string>;
|
|
151
|
+
title: import("prop-types").Requireable<string>;
|
|
152
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
153
|
+
description: import("prop-types").Requireable<string>;
|
|
154
|
+
hint: import("prop-types").Requireable<string>;
|
|
155
|
+
options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
156
|
+
selected: import("prop-types").Validator<boolean>;
|
|
157
|
+
name: import("prop-types").Validator<string>;
|
|
158
|
+
value: import("prop-types").Requireable<string>;
|
|
159
|
+
}>>[]>;
|
|
160
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
161
|
+
onError: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
162
|
+
multiple: import("prop-types").Requireable<boolean>;
|
|
163
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
164
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
165
|
+
error: import("prop-types").Requireable<string>;
|
|
166
|
+
theme: import("prop-types").Requireable<string>;
|
|
110
167
|
}> | null | undefined>>;
|
|
111
|
-
childType: import("prop-types").Requireable<string>;
|
|
112
168
|
}> | null | undefined)[]>;
|
|
113
169
|
}> | null | undefined>>;
|
|
114
170
|
childType: import("prop-types").Validator<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiBtD,QAAA,MAAM,aAAa;YAAW,kBAAkB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiBtD,QAAA,MAAM,aAAa;YAAW,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -50,39 +50,78 @@ declare const propTypes: {
|
|
|
50
50
|
onSuggestionSelected: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
51
|
}> | PropTypes.InferProps<{
|
|
52
52
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
53
|
-
|
|
54
|
-
title: PropTypes.
|
|
55
|
-
title: PropTypes.Requireable<string>;
|
|
56
|
-
subtitle: PropTypes.Requireable<string>;
|
|
57
|
-
type: PropTypes.Requireable<string>;
|
|
58
|
-
'data-name': PropTypes.Requireable<string>;
|
|
59
|
-
titleSize: PropTypes.Requireable<string>;
|
|
60
|
-
subtitleSize: PropTypes.Requireable<string>;
|
|
61
|
-
}>>>;
|
|
53
|
+
checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
54
|
+
title: PropTypes.Requireable<string>;
|
|
62
55
|
name: PropTypes.Requireable<string>;
|
|
63
56
|
checked: PropTypes.Requireable<boolean>;
|
|
64
|
-
onChange: PropTypes.
|
|
57
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
65
58
|
'aria-label': PropTypes.Requireable<string>;
|
|
66
59
|
'data-name': PropTypes.Requireable<string>;
|
|
67
60
|
}>>;
|
|
68
|
-
|
|
61
|
+
sectionTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
62
|
+
removeMargin: PropTypes.Requireable<boolean>;
|
|
69
63
|
title: PropTypes.Requireable<string>;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
64
|
+
subtitle: PropTypes.Requireable<string>;
|
|
65
|
+
type: PropTypes.Requireable<string>;
|
|
66
|
+
'data-name': PropTypes.Requireable<string>;
|
|
67
|
+
titleSize: PropTypes.Requireable<string>;
|
|
68
|
+
subtitleSize: PropTypes.Requireable<string>;
|
|
69
|
+
}>>;
|
|
70
|
+
child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
71
|
+
childType: PropTypes.Requireable<string>;
|
|
72
|
+
inputText: PropTypes.Requireable<PropTypes.InferProps<{
|
|
73
|
+
theme: PropTypes.Requireable<string>;
|
|
74
|
+
size: PropTypes.Requireable<string>;
|
|
75
|
+
autoFocus: PropTypes.Requireable<boolean>;
|
|
76
|
+
title: PropTypes.Requireable<string>;
|
|
77
|
+
placeholder: PropTypes.Requireable<string>;
|
|
78
|
+
defaultValue: PropTypes.Requireable<string>;
|
|
79
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
76
80
|
value: PropTypes.Requireable<string>;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
hint: PropTypes.Requireable<string>;
|
|
82
|
+
error: PropTypes.Requireable<string>;
|
|
83
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
84
|
+
description: PropTypes.Requireable<string>;
|
|
85
|
+
modified: PropTypes.Requireable<boolean>;
|
|
86
|
+
valid: PropTypes.Requireable<boolean>;
|
|
87
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
88
|
+
'data-name': PropTypes.Requireable<string>;
|
|
89
|
+
}>>;
|
|
90
|
+
title: PropTypes.Requireable<string>;
|
|
91
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
92
|
+
'data-name': PropTypes.Requireable<string>;
|
|
93
|
+
}> | PropTypes.InferProps<{
|
|
94
|
+
childType: PropTypes.Requireable<string>;
|
|
95
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
96
|
+
name: PropTypes.Requireable<string>;
|
|
97
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
98
|
+
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
99
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
100
|
+
error: PropTypes.Requireable<string>;
|
|
101
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
102
|
+
errorButtonLabel: PropTypes.Requireable<string>;
|
|
103
|
+
labelLink: PropTypes.Requireable<string>;
|
|
104
|
+
hrefLink: PropTypes.Requireable<string>;
|
|
105
|
+
title: PropTypes.Requireable<string>;
|
|
106
|
+
description: PropTypes.Requireable<string>;
|
|
107
|
+
uploadLabel: PropTypes.Requireable<string>;
|
|
108
|
+
previewLabel: PropTypes.Requireable<string>;
|
|
109
|
+
previewContent: PropTypes.Requireable<PropTypes.InferProps<{
|
|
110
|
+
type: PropTypes.Requireable<string>;
|
|
111
|
+
src: PropTypes.Requireable<string>;
|
|
112
|
+
label: PropTypes.Requireable<string>;
|
|
113
|
+
}>>;
|
|
114
|
+
loading: PropTypes.Requireable<boolean>;
|
|
115
|
+
modified: PropTypes.Requireable<boolean>;
|
|
116
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
117
|
+
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
118
|
+
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
119
|
+
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
120
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
121
|
+
}> | null | undefined)[]>;
|
|
122
|
+
'data-name': PropTypes.Requireable<string>;
|
|
85
123
|
}> | PropTypes.InferProps<{
|
|
124
|
+
childType: PropTypes.Requireable<string>;
|
|
86
125
|
name: PropTypes.Requireable<string>;
|
|
87
126
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
88
127
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -108,8 +147,25 @@ declare const propTypes: {
|
|
|
108
147
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
109
148
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
110
149
|
multiple: PropTypes.Requireable<boolean>;
|
|
150
|
+
}> | PropTypes.InferProps<{
|
|
151
|
+
childType: PropTypes.Requireable<string>;
|
|
152
|
+
title: PropTypes.Requireable<string>;
|
|
153
|
+
placeholder: PropTypes.Requireable<string>;
|
|
154
|
+
description: PropTypes.Requireable<string>;
|
|
155
|
+
hint: PropTypes.Requireable<string>;
|
|
156
|
+
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
157
|
+
selected: PropTypes.Validator<boolean>;
|
|
158
|
+
name: PropTypes.Validator<string>;
|
|
159
|
+
value: PropTypes.Requireable<string>;
|
|
160
|
+
}>>[]>;
|
|
161
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
162
|
+
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
163
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
164
|
+
modified: PropTypes.Requireable<boolean>;
|
|
165
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
166
|
+
error: PropTypes.Requireable<string>;
|
|
167
|
+
theme: PropTypes.Requireable<string>;
|
|
111
168
|
}> | null | undefined>>;
|
|
112
|
-
childType: PropTypes.Requireable<string>;
|
|
113
169
|
}> | null | undefined)[]>;
|
|
114
170
|
}> | null | undefined>>;
|
|
115
171
|
childType: PropTypes.Validator<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAE/D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQd,CAAC;AACF,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,EACD,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAC3C,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,GACzC,oBAAoB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -275,6 +275,7 @@ declare namespace WizardContents {
|
|
|
275
275
|
'data-name': PropTypes.Requireable<string>;
|
|
276
276
|
}>>;
|
|
277
277
|
sectionTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
278
|
+
removeMargin: PropTypes.Requireable<boolean>;
|
|
278
279
|
title: PropTypes.Requireable<string>;
|
|
279
280
|
subtitle: PropTypes.Requireable<string>;
|
|
280
281
|
type: PropTypes.Requireable<string>;
|
|
@@ -335,6 +336,51 @@ declare namespace WizardContents {
|
|
|
335
336
|
multiple: PropTypes.Requireable<boolean>;
|
|
336
337
|
}> | null | undefined)[]>;
|
|
337
338
|
'data-name': PropTypes.Requireable<string>;
|
|
339
|
+
}> | PropTypes.InferProps<{
|
|
340
|
+
childType: PropTypes.Requireable<string>;
|
|
341
|
+
name: PropTypes.Requireable<string>;
|
|
342
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
343
|
+
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
344
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
345
|
+
error: PropTypes.Requireable<string>;
|
|
346
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
347
|
+
errorButtonLabel: PropTypes.Requireable<string>;
|
|
348
|
+
labelLink: PropTypes.Requireable<string>;
|
|
349
|
+
hrefLink: PropTypes.Requireable<string>;
|
|
350
|
+
title: PropTypes.Requireable<string>;
|
|
351
|
+
description: PropTypes.Requireable<string>;
|
|
352
|
+
uploadLabel: PropTypes.Requireable<string>;
|
|
353
|
+
previewLabel: PropTypes.Requireable<string>;
|
|
354
|
+
previewContent: PropTypes.Requireable<PropTypes.InferProps<{
|
|
355
|
+
type: PropTypes.Requireable<string>;
|
|
356
|
+
src: PropTypes.Requireable<string>;
|
|
357
|
+
label: PropTypes.Requireable<string>;
|
|
358
|
+
}>>;
|
|
359
|
+
loading: PropTypes.Requireable<boolean>;
|
|
360
|
+
modified: PropTypes.Requireable<boolean>;
|
|
361
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
362
|
+
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
363
|
+
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
364
|
+
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
365
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
366
|
+
}> | PropTypes.InferProps<{
|
|
367
|
+
childType: PropTypes.Requireable<string>;
|
|
368
|
+
title: PropTypes.Requireable<string>;
|
|
369
|
+
placeholder: PropTypes.Requireable<string>;
|
|
370
|
+
description: PropTypes.Requireable<string>;
|
|
371
|
+
hint: PropTypes.Requireable<string>;
|
|
372
|
+
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
373
|
+
selected: PropTypes.Validator<boolean>;
|
|
374
|
+
name: PropTypes.Validator<string>;
|
|
375
|
+
value: PropTypes.Requireable<string>;
|
|
376
|
+
}>>[]>;
|
|
377
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
378
|
+
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
379
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
380
|
+
modified: PropTypes.Requireable<boolean>;
|
|
381
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
382
|
+
error: PropTypes.Requireable<string>;
|
|
383
|
+
theme: PropTypes.Requireable<string>;
|
|
338
384
|
}> | null | undefined>>;
|
|
339
385
|
}> | null | undefined)[]>;
|
|
340
386
|
}> | PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAqBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAqBA,oDAkDC"}
|
|
@@ -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 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,CAASH,SAAzB,CADS;EAEfF,OAAO,EAAEG,kBAAA,CAAUC,KAAV,CAAgBE,cAAA,CAAMJ,SAAtB;AAFM,CAAjB;;AAKA,MAAMK,SAAS,GAAGC,KAAK,IAAI;EACzB,MAAM;IACJC,QAAQ,GAAG,EADP;IAEJV,IAFI;IAGJC,OAHI;IAIJU,MAJI;IAKJC,cALI;IAMJ,qBAAqBC;EANjB,IAOFJ,KAPJ;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["Hero","React","memo","hero","welcome","style","propTypes","PropTypes","shape","HeroCard","Slide","Dashboard","props","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType","BattleRequestList","CardsList","NewsList","StartBattle","ReviewBanner","CMPopin"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../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,mEA4DC"}
|
|
@@ -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 = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
@@ -25,10 +25,6 @@ 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
|
-
|
|
32
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
29
|
|
|
34
30
|
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); }
|
|
@@ -51,7 +47,6 @@ const SearchPage = (props, context) => {
|
|
|
51
47
|
skin
|
|
52
48
|
} = context;
|
|
53
49
|
const defaultColor = (0, _getOr2.default)('#00B0FF', 'common.primary', skin);
|
|
54
|
-
const nodeRef = (0, _react.useRef)(null);
|
|
55
50
|
const recommendationsView = (0, _isEmpty2.default)(recommendations) ? null : /*#__PURE__*/_react.default.createElement(_cardsList.default, recommendations);
|
|
56
51
|
const cardsView = (0, _isEmpty2.default)(cards.list) ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
57
52
|
className: _style.default.noresults
|
|
@@ -77,8 +72,7 @@ const SearchPage = (props, context) => {
|
|
|
77
72
|
className: _style.default.title,
|
|
78
73
|
role: "status"
|
|
79
74
|
}, title), cardsView), popinWithCards ? /*#__PURE__*/_react.default.createElement("div", {
|
|
80
|
-
className: _style.default.popinWithCards
|
|
81
|
-
ref: nodeRef
|
|
75
|
+
className: _style.default.popinWithCards
|
|
82
76
|
}, /*#__PURE__*/_react.default.createElement(_cmPopin.default, popinWithCards)) : null);
|
|
83
77
|
};
|
|
84
78
|
|