@coorpacademy/components 11.32.30 → 11.32.31-alpha.16
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/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +2 -1
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/types.d.ts +1 -0
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/icon/index.d.ts.map +1 -1
- package/es/atom/icon/index.js +7 -3
- package/es/atom/icon/index.js.map +1 -1
- package/es/atom/radio-with-title/index.d.ts +2 -1
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +2 -1
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/tag/index.d.ts +4 -2
- package/es/atom/tag/index.d.ts.map +1 -1
- package/es/atom/tag/index.js +27 -7
- package/es/atom/tag/index.js.map +1 -1
- package/es/atom/tag/style.css +7 -0
- package/es/atom/title/index.d.ts +2 -1
- package/es/molecule/bulk-progress-bar/index.d.ts.map +1 -1
- package/es/molecule/bulk-progress-bar/index.js +2 -1
- package/es/molecule/bulk-progress-bar/index.js.map +1 -1
- package/es/molecule/bulk-progress-bar/style.css +0 -4
- package/es/molecule/cm-popin/types.d.ts +2 -1
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/progress-bar/index.d.ts +1 -0
- package/es/molecule/progress-bar/index.d.ts.map +1 -1
- package/es/molecule/progress-bar/index.js +6 -4
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/progress-wrapper/index.d.ts +29 -0
- package/es/molecule/progress-wrapper/index.d.ts.map +1 -0
- package/es/molecule/progress-wrapper/index.js +200 -0
- package/es/molecule/progress-wrapper/index.js.map +1 -0
- package/es/molecule/progress-wrapper/style.css +185 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
- package/es/molecule/title-radio-wrapper/index.d.ts +2 -1
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +2 -1
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/rewards-form/index.d.ts +2 -1
- package/es/organism/select-opponents/index.d.ts +2 -1
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +2 -1
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/title-and-input/index.d.ts +4 -2
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +4 -2
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +2 -1
- package/es/template/activity/progression-item.css +0 -4
- package/es/template/activity/progression-item.d.ts.map +1 -1
- package/es/template/activity/progression-item.js +2 -1
- package/es/template/activity/progression-item.js.map +1 -1
- package/es/template/app-player/loading/index.d.ts +2 -1
- package/es/template/app-player/player/index.d.ts +4 -2
- package/es/template/app-player/player/slides/index.d.ts +2 -1
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +2 -1
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +2 -1
- package/es/template/app-review/index.d.ts +2 -1
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +2 -1
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +2 -1
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +2 -1
- package/es/template/certification-detail/index.d.ts +105 -0
- package/es/template/certification-detail/index.d.ts.map +1 -0
- package/es/template/certification-detail/index.js +157 -0
- package/es/template/certification-detail/index.js.map +1 -0
- package/es/template/certification-detail/style.css +130 -0
- package/es/template/common/dashboard/index.d.ts +4 -2
- package/es/template/common/search-page/index.d.ts +2 -1
- package/es/template/external-course/index.d.ts +2 -1
- package/es/template/playlist-detail/index.d.ts.map +1 -1
- package/es/template/playlist-detail/index.js +4 -2
- package/es/template/playlist-detail/index.js.map +1 -1
- package/es/template/playlist-detail/style.css +5 -0
- package/es/template/skill-detail/all-courses.css +6 -6
- package/es/template/skill-detail/continue-learning.d.ts.map +1 -1
- package/es/template/skill-detail/continue-learning.js +3 -2
- package/es/template/skill-detail/continue-learning.js.map +1 -1
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +2 -1
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/types.d.ts +1 -0
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/icon/index.d.ts.map +1 -1
- package/lib/atom/icon/index.js +7 -3
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/atom/radio-with-title/index.d.ts +2 -1
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +2 -1
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/tag/index.d.ts +4 -2
- package/lib/atom/tag/index.d.ts.map +1 -1
- package/lib/atom/tag/index.js +28 -7
- package/lib/atom/tag/index.js.map +1 -1
- package/lib/atom/tag/style.css +7 -0
- package/lib/atom/title/index.d.ts +2 -1
- package/lib/molecule/bulk-progress-bar/index.d.ts.map +1 -1
- package/lib/molecule/bulk-progress-bar/index.js +2 -1
- package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
- package/lib/molecule/bulk-progress-bar/style.css +0 -4
- package/lib/molecule/cm-popin/types.d.ts +2 -1
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/progress-bar/index.d.ts +1 -0
- package/lib/molecule/progress-bar/index.d.ts.map +1 -1
- package/lib/molecule/progress-bar/index.js +6 -4
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/progress-wrapper/index.d.ts +29 -0
- package/lib/molecule/progress-wrapper/index.d.ts.map +1 -0
- package/lib/molecule/progress-wrapper/index.js +221 -0
- package/lib/molecule/progress-wrapper/index.js.map +1 -0
- package/lib/molecule/progress-wrapper/style.css +185 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
- package/lib/molecule/title-radio-wrapper/index.d.ts +2 -1
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +2 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/rewards-form/index.d.ts +2 -1
- package/lib/organism/select-opponents/index.d.ts +2 -1
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +2 -1
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +4 -2
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +4 -2
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +2 -1
- package/lib/template/activity/progression-item.css +0 -4
- package/lib/template/activity/progression-item.d.ts.map +1 -1
- package/lib/template/activity/progression-item.js +2 -1
- package/lib/template/activity/progression-item.js.map +1 -1
- package/lib/template/app-player/loading/index.d.ts +2 -1
- package/lib/template/app-player/player/index.d.ts +4 -2
- package/lib/template/app-player/player/slides/index.d.ts +2 -1
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +2 -1
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +2 -1
- package/lib/template/app-review/index.d.ts +2 -1
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +2 -1
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +2 -1
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +2 -1
- package/lib/template/certification-detail/index.d.ts +105 -0
- package/lib/template/certification-detail/index.d.ts.map +1 -0
- package/lib/template/certification-detail/index.js +185 -0
- package/lib/template/certification-detail/index.js.map +1 -0
- package/lib/template/certification-detail/style.css +130 -0
- package/lib/template/common/dashboard/index.d.ts +4 -2
- package/lib/template/common/search-page/index.d.ts +2 -1
- package/lib/template/external-course/index.d.ts +2 -1
- package/lib/template/playlist-detail/index.d.ts.map +1 -1
- package/lib/template/playlist-detail/index.js +4 -2
- package/lib/template/playlist-detail/index.js.map +1 -1
- package/lib/template/playlist-detail/style.css +5 -0
- package/lib/template/skill-detail/all-courses.css +6 -6
- package/lib/template/skill-detail/continue-learning.d.ts.map +1 -1
- package/lib/template/skill-detail/continue-learning.js +3 -2
- package/lib/template/skill-detail/continue-learning.js.map +1 -1
- package/locales/en/global.json +8 -0
- package/package.json +2 -2
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import _map from "lodash/fp/map";
|
|
2
|
+
import _lowerCase from "lodash/fp/lowerCase";
|
|
3
|
+
import _isEmpty from "lodash/fp/isEmpty";
|
|
4
|
+
|
|
5
|
+
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); }
|
|
6
|
+
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import Title from '../../atom/title';
|
|
10
|
+
import ProgressBar from '../progress-bar';
|
|
11
|
+
import { COLORS } from '../../variables/colors';
|
|
12
|
+
import Tag from '../../atom/tag';
|
|
13
|
+
import ButtonLink from '../../atom/button-link';
|
|
14
|
+
import Icon from '../../atom/icon';
|
|
15
|
+
import Provider from '../../atom/provider'; // eslint-disable-next-line css-modules/no-unused-class
|
|
16
|
+
|
|
17
|
+
import style from './style.css';
|
|
18
|
+
|
|
19
|
+
const uncappedMap = _map.convert({
|
|
20
|
+
cap: false
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const DetailSection = ({
|
|
24
|
+
index,
|
|
25
|
+
type,
|
|
26
|
+
isLocked,
|
|
27
|
+
badgeUrl,
|
|
28
|
+
onDownload,
|
|
29
|
+
stars
|
|
30
|
+
}, context) => {
|
|
31
|
+
const {
|
|
32
|
+
translate
|
|
33
|
+
} = context;
|
|
34
|
+
const isTypeStars = type === 'stars';
|
|
35
|
+
const DownloadButton = /*#__PURE__*/React.createElement(ButtonLink, {
|
|
36
|
+
label: translate('download'),
|
|
37
|
+
onClick: onDownload,
|
|
38
|
+
"data-name": "download-button",
|
|
39
|
+
"aria-label": "download button",
|
|
40
|
+
customStyle: {
|
|
41
|
+
backgroundColor: '#F1F6FE',
|
|
42
|
+
color: '#0061FF'
|
|
43
|
+
},
|
|
44
|
+
icon: {
|
|
45
|
+
position: 'left',
|
|
46
|
+
faIcon: {
|
|
47
|
+
name: 'download',
|
|
48
|
+
color: '#0061FF',
|
|
49
|
+
size: 14,
|
|
50
|
+
customStyle: {
|
|
51
|
+
padding: 0
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
disabled: isLocked
|
|
56
|
+
});
|
|
57
|
+
const LockedTag = /*#__PURE__*/React.createElement(Tag, {
|
|
58
|
+
label: "Locked",
|
|
59
|
+
size: "S",
|
|
60
|
+
icon: {
|
|
61
|
+
position: 'left',
|
|
62
|
+
iconName: 'lock',
|
|
63
|
+
iconColor: '#515161',
|
|
64
|
+
preset: 's',
|
|
65
|
+
customStyle: {
|
|
66
|
+
padding: 0
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
return isTypeStars ? /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: style[`detailsSection${index}`]
|
|
72
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: style.detailsInfo
|
|
74
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: style.detailsInfoText
|
|
76
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
77
|
+
className: style.detailsTitle
|
|
78
|
+
}, translate('bonus_stars')), isLocked ? LockedTag : null), /*#__PURE__*/React.createElement("div", {
|
|
79
|
+
className: style.stars
|
|
80
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
81
|
+
iconName: "star",
|
|
82
|
+
iconColor: "#FFCE0A",
|
|
83
|
+
backgroundColor: "#FFF9D1",
|
|
84
|
+
preset: "xl"
|
|
85
|
+
}), /*#__PURE__*/React.createElement("span", null, stars)))) : /*#__PURE__*/React.createElement("div", {
|
|
86
|
+
className: style[`detailsSection${index}`]
|
|
87
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
88
|
+
className: style.img,
|
|
89
|
+
src: badgeUrl || 'https://s3.eu-west-1.amazonaws.com/static.coorpacademy.com/assets/images/diploma.svg'
|
|
90
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
className: style.detailsInfo
|
|
92
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: style.detailsInfoText
|
|
94
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
95
|
+
className: style.detailsTitle
|
|
96
|
+
}, type === 'diploma' ? translate('diploma') : translate('badge')), isLocked ? LockedTag : null), /*#__PURE__*/React.createElement("div", {
|
|
97
|
+
className: style.buttonContainer
|
|
98
|
+
}, DownloadButton)));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const ProgressWrapper = ({
|
|
102
|
+
completedCourses,
|
|
103
|
+
completedModules,
|
|
104
|
+
title,
|
|
105
|
+
subtitle,
|
|
106
|
+
progression,
|
|
107
|
+
sections
|
|
108
|
+
}, context) => {
|
|
109
|
+
const {
|
|
110
|
+
translate
|
|
111
|
+
} = context;
|
|
112
|
+
const modulesCompletedLocal = translate('modules_completed');
|
|
113
|
+
const isLocked = progression !== 100;
|
|
114
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
115
|
+
className: style.container
|
|
116
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
117
|
+
className: style.titleContainer
|
|
118
|
+
}, /*#__PURE__*/React.createElement(Title, {
|
|
119
|
+
type: "form-group",
|
|
120
|
+
titleSize: "medium",
|
|
121
|
+
title: title,
|
|
122
|
+
subtitle: subtitle
|
|
123
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
className: style.statscontainer
|
|
125
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: style.stats
|
|
127
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
128
|
+
className: style.statsNumber
|
|
129
|
+
}, completedCourses), _lowerCase(translate('courses_completed'))), /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
className: style.divider
|
|
131
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
132
|
+
className: style.statsModule
|
|
133
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
134
|
+
className: style.statsNumber
|
|
135
|
+
}, completedModules), modulesCompletedLocal)), /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: style.progression
|
|
137
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
138
|
+
className: style.statsNumber
|
|
139
|
+
}, progression, "%"))), /*#__PURE__*/React.createElement(ProgressBar, {
|
|
140
|
+
className: style.customProgressBar,
|
|
141
|
+
style: {
|
|
142
|
+
backgroundColor: COLORS.positive
|
|
143
|
+
},
|
|
144
|
+
displayInfo: false,
|
|
145
|
+
value: progression,
|
|
146
|
+
max: 100
|
|
147
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
148
|
+
className: style.statsMobile
|
|
149
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
150
|
+
className: style.statsModuleMobile
|
|
151
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
152
|
+
className: style.statsNumber
|
|
153
|
+
}, completedModules), modulesCompletedLocal), /*#__PURE__*/React.createElement("div", {
|
|
154
|
+
className: style.statsProgressionMobile
|
|
155
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
156
|
+
className: style.statsNumber
|
|
157
|
+
}, progression, "%"))), _isEmpty(sections) ? null : /*#__PURE__*/React.createElement("div", {
|
|
158
|
+
className: style.details
|
|
159
|
+
}, uncappedMap(({
|
|
160
|
+
type,
|
|
161
|
+
stars,
|
|
162
|
+
badgeUrl,
|
|
163
|
+
onDownload
|
|
164
|
+
}, index) => /*#__PURE__*/React.createElement(DetailSection, {
|
|
165
|
+
type,
|
|
166
|
+
isLocked,
|
|
167
|
+
badgeUrl,
|
|
168
|
+
onDownload,
|
|
169
|
+
stars,
|
|
170
|
+
key: `${type}-${index}`,
|
|
171
|
+
index: index
|
|
172
|
+
}), sections)));
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
const commonDetailSectionPropTypes = process.env.NODE_ENV !== "production" ? {
|
|
176
|
+
type: PropTypes.oneOf(['diploma', 'badge', 'stars']),
|
|
177
|
+
badgeUrl: PropTypes.string,
|
|
178
|
+
onDownload: PropTypes.func,
|
|
179
|
+
stars: PropTypes.number
|
|
180
|
+
} : {};
|
|
181
|
+
DetailSection.contextTypes = {
|
|
182
|
+
translate: Provider.childContextTypes.translate
|
|
183
|
+
};
|
|
184
|
+
DetailSection.propTypes = process.env.NODE_ENV !== "production" ? _extends({
|
|
185
|
+
index: PropTypes.number,
|
|
186
|
+
isLocked: PropTypes.bool
|
|
187
|
+
}, commonDetailSectionPropTypes) : {};
|
|
188
|
+
ProgressWrapper.contextTypes = {
|
|
189
|
+
translate: Provider.childContextTypes.translate
|
|
190
|
+
};
|
|
191
|
+
ProgressWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
192
|
+
title: PropTypes.string,
|
|
193
|
+
subtitle: PropTypes.string,
|
|
194
|
+
completedCourses: PropTypes.number,
|
|
195
|
+
completedModules: PropTypes.number,
|
|
196
|
+
progression: PropTypes.number,
|
|
197
|
+
sections: PropTypes.arrayOf(PropTypes.shape(commonDetailSectionPropTypes))
|
|
198
|
+
} : {};
|
|
199
|
+
export default ProgressWrapper;
|
|
200
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","Title","ProgressBar","COLORS","Tag","ButtonLink","Icon","Provider","style","uncappedMap","convert","cap","DetailSection","index","type","isLocked","badgeUrl","onDownload","stars","context","translate","isTypeStars","DownloadButton","backgroundColor","color","position","faIcon","name","size","customStyle","padding","LockedTag","iconName","iconColor","preset","detailsInfo","detailsInfoText","detailsTitle","img","buttonContainer","ProgressWrapper","completedCourses","completedModules","title","subtitle","progression","sections","modulesCompletedLocal","container","titleContainer","statscontainer","stats","statsNumber","divider","statsModule","customProgressBar","positive","statsMobile","statsModuleMobile","statsProgressionMobile","details","commonDetailSectionPropTypes","oneOf","string","func","number","contextTypes","childContextTypes","propTypes","bool","arrayOf","shape"],"sources":["../../../src/molecule/progress-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, lowerCase, map} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport ProgressBar from '../progress-bar';\nimport {COLORS} from '../../variables/colors';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Icon from '../../atom/icon';\nimport Provider from '../../atom/provider';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst uncappedMap = map.convert({cap: false});\n\nconst DetailSection = ({index, type, isLocked, badgeUrl, onDownload, stars}, context) => {\n const {translate} = context;\n const isTypeStars = type === 'stars';\n\n const DownloadButton = (\n <ButtonLink\n label={translate('download')}\n onClick={onDownload}\n data-name=\"download-button\"\n aria-label=\"download button\"\n customStyle={{backgroundColor: '#F1F6FE', color: '#0061FF'}}\n icon={{\n position: 'left',\n faIcon: {\n name: 'download',\n color: '#0061FF',\n size: 14,\n customStyle: {padding: 0}\n }\n }}\n disabled={isLocked}\n />\n );\n\n const LockedTag = (\n <Tag\n label=\"Locked\"\n size=\"S\"\n icon={{\n position: 'left',\n iconName: 'lock',\n iconColor: '#515161',\n preset: 's',\n customStyle: {padding: 0}\n }}\n />\n );\n\n return isTypeStars ? (\n <div className={style[`detailsSection${index}`]}>\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>{translate('bonus_stars')}</span>\n {isLocked ? LockedTag : null}\n </div>\n <div className={style.stars}>\n <Icon iconName=\"star\" iconColor=\"#FFCE0A\" backgroundColor=\"#FFF9D1\" preset=\"xl\" />\n <span>{stars}</span>\n </div>\n </div>\n </div>\n ) : (\n <div className={style[`detailsSection${index}`]}>\n <img\n className={style.img}\n src={\n badgeUrl ||\n 'https://s3.eu-west-1.amazonaws.com/static.coorpacademy.com/assets/images/diploma.svg'\n }\n />\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>\n {type === 'diploma' ? translate('diploma') : translate('badge')}\n </span>\n {isLocked ? LockedTag : null}\n </div>\n\n <div className={style.buttonContainer}>{DownloadButton}</div>\n </div>\n </div>\n );\n};\n\nconst ProgressWrapper = (\n {completedCourses, completedModules, title, subtitle, progression, sections},\n context\n) => {\n const {translate} = context;\n const modulesCompletedLocal = translate('modules_completed');\n const isLocked = progression !== 100;\n\n return (\n <div className={style.container}>\n <div className={style.titleContainer}>\n <Title type=\"form-group\" titleSize=\"medium\" title={title} subtitle={subtitle} />\n </div>\n <div className={style.statscontainer}>\n <div className={style.stats}>\n <div>\n <span className={style.statsNumber}>{completedCourses}</span>\n {lowerCase(translate('courses_completed'))}\n </div>\n <div className={style.divider} />\n <div className={style.statsModule}>\n <span className={style.statsNumber}>{completedModules}</span>\n {modulesCompletedLocal}\n </div>\n </div>\n <div className={style.progression}>\n <span className={style.statsNumber}>{progression}%</span>\n </div>\n </div>\n <ProgressBar\n className={style.customProgressBar}\n style={{backgroundColor: COLORS.positive}}\n displayInfo={false}\n value={progression}\n max={100}\n />\n <div className={style.statsMobile}>\n <div className={style.statsModuleMobile}>\n <span className={style.statsNumber}>{completedModules}</span>\n {modulesCompletedLocal}\n </div>\n <div className={style.statsProgressionMobile}>\n <span className={style.statsNumber}>{progression}%</span>\n </div>\n </div>\n\n {isEmpty(sections) ? null : (\n <div className={style.details}>\n {uncappedMap(\n ({type, stars, badgeUrl, onDownload}, index) => (\n <DetailSection\n {...{type, isLocked, badgeUrl, onDownload, stars}}\n key={`${type}-${index}`}\n index={index}\n />\n ),\n sections\n )}\n </div>\n )}\n </div>\n );\n};\n\nconst commonDetailSectionPropTypes = {\n type: PropTypes.oneOf(['diploma', 'badge', 'stars']),\n badgeUrl: PropTypes.string,\n onDownload: PropTypes.func,\n stars: PropTypes.number\n};\n\nDetailSection.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nDetailSection.propTypes = {\n index: PropTypes.number,\n isLocked: PropTypes.bool,\n ...commonDetailSectionPropTypes\n};\n\nProgressWrapper.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nProgressWrapper.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n completedCourses: PropTypes.number,\n completedModules: PropTypes.number,\n progression: PropTypes.number,\n sections: PropTypes.arrayOf(PropTypes.shape(commonDetailSectionPropTypes))\n};\n\nexport default ProgressWrapper;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,SAAQC,MAAR,QAAqB,wBAArB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,QAAP,MAAqB,qBAArB,C,CACA;;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG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AAS,CAACsE,OAAV,CAAkBtE,SAAS,CAACuE,KAAV,CAAgBV,4BAAhB,CAAlB;AANgB,CAA5B;AASA,eAAerB,eAAf"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
3
|
+
@value mobile from breakpoints;
|
|
4
|
+
@value tablet from breakpoints;
|
|
5
|
+
@value white from colors;
|
|
6
|
+
@value xtraLightGrey from colors;
|
|
7
|
+
@value cm_grey_100 from colors;
|
|
8
|
+
@value cm_grey_400 from colors;
|
|
9
|
+
@value cm_grey_500 from colors;
|
|
10
|
+
|
|
11
|
+
.container {
|
|
12
|
+
border-radius: 16px;
|
|
13
|
+
font-family: Gilroy;
|
|
14
|
+
background-color: xtraLightGrey;
|
|
15
|
+
padding: 32px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titleContainer {
|
|
19
|
+
padding-bottom: 24px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.statscontainer {
|
|
23
|
+
width: 100%;
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
align-items: center;
|
|
27
|
+
padding-bottom: 16px;
|
|
28
|
+
color: cm_grey_400;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.statsNumber {
|
|
33
|
+
color: cm_grey_500;
|
|
34
|
+
padding-right: 4px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.stats {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
gap: 16px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.divider {
|
|
45
|
+
width: 4px;
|
|
46
|
+
height: 4px;
|
|
47
|
+
background-color: #d7d7da;
|
|
48
|
+
border: solid #d7d7da 1px;
|
|
49
|
+
border-radius: 4px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.progression {
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: end;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.customProgressBar {
|
|
58
|
+
height: 8px;
|
|
59
|
+
background-color: cm_grey_100;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.details {
|
|
63
|
+
display: flex;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
align-items: "center";
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
padding-top: 24px;
|
|
68
|
+
gap: 16px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.detailsSectionCommon {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
border-radius: 20px;
|
|
75
|
+
gap: 20px;
|
|
76
|
+
padding: 16px;
|
|
77
|
+
background-color: white;
|
|
78
|
+
height: 114px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.detailsSection0 {
|
|
82
|
+
composes: detailsSectionCommon;
|
|
83
|
+
flex: 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.detailsSection1 {
|
|
87
|
+
composes: detailsSection0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.detailsSection2 {
|
|
91
|
+
composes: detailsSectionCommon;
|
|
92
|
+
width: 245px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.detailsInfo {
|
|
96
|
+
height: 100%;
|
|
97
|
+
width: 100%;
|
|
98
|
+
background-color: white;
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
justify-content: space-between;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.detailsInfoText {
|
|
105
|
+
display: flex;
|
|
106
|
+
justify-content: space-between;
|
|
107
|
+
width: 100%;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.detailsTitle {
|
|
111
|
+
font-family: Gilroy;
|
|
112
|
+
font-size: 16px;
|
|
113
|
+
font-weight: 600;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.img {
|
|
117
|
+
height: 100%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.buttonContainer {
|
|
121
|
+
width: fit-content;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.stars {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: 16px;
|
|
128
|
+
font-size: 32px;
|
|
129
|
+
font-weight: 700;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.statsMobile {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.statsModuleMobile {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.statsProgressionMobile {
|
|
141
|
+
composes: progression;
|
|
142
|
+
display: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@media mobile, tablet {
|
|
146
|
+
.details {
|
|
147
|
+
flex-wrap: wrap;
|
|
148
|
+
}
|
|
149
|
+
.detailsSection2 {
|
|
150
|
+
flex: 1;
|
|
151
|
+
}
|
|
152
|
+
.detailsSection0 > img {
|
|
153
|
+
width: 120px;
|
|
154
|
+
}
|
|
155
|
+
.detailsSection1 > img {
|
|
156
|
+
width: 80px;
|
|
157
|
+
height: 80px;
|
|
158
|
+
}
|
|
159
|
+
.detailsInfo {
|
|
160
|
+
justify-content: space-around;
|
|
161
|
+
gap: 0;
|
|
162
|
+
}
|
|
163
|
+
.divider {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
.statsModule {
|
|
167
|
+
display: none;
|
|
168
|
+
}
|
|
169
|
+
.progression {
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
172
|
+
.statsProgressionMobile {
|
|
173
|
+
display: block;
|
|
174
|
+
}
|
|
175
|
+
.statsModuleMobile {
|
|
176
|
+
display: block;
|
|
177
|
+
}
|
|
178
|
+
.statsMobile {
|
|
179
|
+
display: flex;
|
|
180
|
+
justify-content: space-between;
|
|
181
|
+
padding-top: 16px;
|
|
182
|
+
color: cm_grey_400;
|
|
183
|
+
font-weight: 600;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
@@ -24,8 +24,9 @@ declare namespace TitleAndCheckBoxWrapper {
|
|
|
24
24
|
type: PropTypes.Requireable<string>;
|
|
25
25
|
size: PropTypes.Requireable<string>;
|
|
26
26
|
customStyle: PropTypes.Requireable<{
|
|
27
|
-
[x: string]: string | null | undefined;
|
|
27
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
28
28
|
}>;
|
|
29
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
29
30
|
}>>;
|
|
30
31
|
}>>;
|
|
31
32
|
const child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
@@ -17,8 +17,9 @@ declare const TitleRadioWrapper: {
|
|
|
17
17
|
type: import("prop-types").Requireable<string>;
|
|
18
18
|
size: import("prop-types").Requireable<string>;
|
|
19
19
|
customStyle: import("prop-types").Requireable<{
|
|
20
|
-
[x: string]: string | null | undefined;
|
|
20
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
21
21
|
}>;
|
|
22
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
|
|
22
23
|
}>>;
|
|
23
24
|
}>>>;
|
|
24
25
|
name: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
|
|
@@ -17,8 +17,9 @@ declare const propTypes: {
|
|
|
17
17
|
type: PropTypes.Requireable<string>;
|
|
18
18
|
size: PropTypes.Requireable<string>;
|
|
19
19
|
customStyle: PropTypes.Requireable<{
|
|
20
|
-
[x: string]: string | null | undefined;
|
|
20
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
21
21
|
}>;
|
|
22
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
22
23
|
}>>;
|
|
23
24
|
}>>>;
|
|
24
25
|
name: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOd,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,cAAc,EAAE,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAO,cAAc,CAAC,SAAS,GAAG,OAAO,kBAAkB,CAAC,SAAS,CAAC;IAC7E,SAAS,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;CACjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -27,8 +27,9 @@ declare namespace RewardsForm {
|
|
|
27
27
|
type: PropTypes.Requireable<string>;
|
|
28
28
|
size: PropTypes.Requireable<string>;
|
|
29
29
|
customStyle: PropTypes.Requireable<{
|
|
30
|
-
[x: string]: string | null | undefined;
|
|
30
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
31
31
|
}>;
|
|
32
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
32
33
|
}>>;
|
|
33
34
|
}>>;
|
|
34
35
|
child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
@@ -26,8 +26,9 @@ declare const SelectOpponents: {
|
|
|
26
26
|
type: import("prop-types").Requireable<string>;
|
|
27
27
|
size: import("prop-types").Requireable<string>;
|
|
28
28
|
customStyle: import("prop-types").Requireable<{
|
|
29
|
-
[x: string]: string | null | undefined;
|
|
29
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
30
30
|
}>;
|
|
31
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
|
|
31
32
|
}>>;
|
|
32
33
|
}>>;
|
|
33
34
|
child: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
|
|
@@ -23,8 +23,9 @@ export declare const propTypes: {
|
|
|
23
23
|
type: PropTypes.Requireable<string>;
|
|
24
24
|
size: PropTypes.Requireable<string>;
|
|
25
25
|
customStyle: PropTypes.Requireable<{
|
|
26
|
-
[x: string]: string | null | undefined;
|
|
26
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
27
27
|
}>;
|
|
28
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
28
29
|
}>>;
|
|
29
30
|
}>>;
|
|
30
31
|
child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
@@ -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;AAGnC,eAAO,MAAM,SAAS
|
|
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"}
|
|
@@ -16,8 +16,9 @@ declare const TitleAndInput: {
|
|
|
16
16
|
type: import("prop-types").Requireable<string>;
|
|
17
17
|
size: import("prop-types").Requireable<string>;
|
|
18
18
|
customStyle: import("prop-types").Requireable<{
|
|
19
|
-
[x: string]: string | null | undefined;
|
|
19
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
20
20
|
}>;
|
|
21
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
|
|
21
22
|
}>>;
|
|
22
23
|
}>>>;
|
|
23
24
|
field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
@@ -80,8 +81,9 @@ declare const TitleAndInput: {
|
|
|
80
81
|
type: import("prop-types").Requireable<string>;
|
|
81
82
|
size: import("prop-types").Requireable<string>;
|
|
82
83
|
customStyle: import("prop-types").Requireable<{
|
|
83
|
-
[x: string]: string | null | undefined;
|
|
84
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
84
85
|
}>;
|
|
86
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
|
|
85
87
|
}>>;
|
|
86
88
|
}>>;
|
|
87
89
|
child: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
@@ -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"}
|
|
@@ -17,8 +17,9 @@ declare const propTypes: {
|
|
|
17
17
|
type: PropTypes.Requireable<string>;
|
|
18
18
|
size: PropTypes.Requireable<string>;
|
|
19
19
|
customStyle: PropTypes.Requireable<{
|
|
20
|
-
[x: string]: string | null | undefined;
|
|
20
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
21
21
|
}>;
|
|
22
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
22
23
|
}>>;
|
|
23
24
|
}>>>;
|
|
24
25
|
field: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
@@ -81,8 +82,9 @@ declare const propTypes: {
|
|
|
81
82
|
type: PropTypes.Requireable<string>;
|
|
82
83
|
size: PropTypes.Requireable<string>;
|
|
83
84
|
customStyle: PropTypes.Requireable<{
|
|
84
|
-
[x: string]: string | null | undefined;
|
|
85
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
85
86
|
}>;
|
|
87
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
86
88
|
}>>;
|
|
87
89
|
}>>;
|
|
88
90
|
child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
@@ -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"}
|
|
@@ -296,8 +296,9 @@ declare namespace WizardContents {
|
|
|
296
296
|
type: PropTypes.Requireable<string>;
|
|
297
297
|
size: PropTypes.Requireable<string>;
|
|
298
298
|
customStyle: PropTypes.Requireable<{
|
|
299
|
-
[x: string]: string | null | undefined;
|
|
299
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
300
300
|
}>;
|
|
301
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
301
302
|
}>>;
|
|
302
303
|
}>>;
|
|
303
304
|
child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progression-item.d.ts","sourceRoot":"","sources":["../../../src/template/activity/progression-item.js"],"names":[],"mappings":";AAmCA,
|
|
1
|
+
{"version":3,"file":"progression-item.d.ts","sourceRoot":"","sources":["../../../src/template/activity/progression-item.js"],"names":[],"mappings":";AAmCA,8EA2FC"}
|
|
@@ -117,7 +117,8 @@ const ProgressionItem = (props, legacyContext) => {
|
|
|
117
117
|
style: {
|
|
118
118
|
backgroundColor: primary,
|
|
119
119
|
borderRadius: 0
|
|
120
|
-
}
|
|
120
|
+
},
|
|
121
|
+
displayInfo: false
|
|
121
122
|
}), /*#__PURE__*/React.createElement("div", {
|
|
122
123
|
className: style.state
|
|
123
124
|
}, link, /*#__PURE__*/React.createElement("span", {
|