@coorpacademy/components 11.32.1 → 11.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/button-link/index.d.ts +1 -0
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +6 -5
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/types.d.ts +3 -0
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js +1 -0
- 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 +3 -0
- package/es/atom/icon/index.js.map +1 -1
- package/es/atom/input-search/style.css +1 -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/expandible-actionable-table/index.d.ts +1 -0
- package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/types.d.ts +1 -0
- package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/es/molecule/learner-skill-card/index.d.ts +2 -0
- package/es/molecule/learner-skill-card/index.d.ts.map +1 -1
- package/es/molecule/learner-skill-card/index.js +7 -2
- package/es/molecule/learner-skill-card/index.js.map +1 -1
- package/es/molecule/learning-profile-radar-chart/index.d.ts +1 -1
- package/es/molecule/learning-profile-radar-chart/index.d.ts.map +1 -1
- package/es/molecule/learning-profile-radar-chart/index.js +27 -13
- package/es/molecule/learning-profile-radar-chart/index.js.map +1 -1
- package/es/molecule/learning-profile-radar-chart/style.css +43 -40
- package/es/molecule/learning-profile-radar-chart/types.d.ts +7 -1
- package/es/molecule/learning-profile-radar-chart/types.d.ts.map +1 -1
- package/es/molecule/learning-profile-radar-chart/types.js.map +1 -1
- package/es/molecule/skill-picker-modal/index.d.ts.map +1 -1
- package/es/molecule/skill-picker-modal/index.js +1 -1
- package/es/molecule/skill-picker-modal/index.js.map +1 -1
- package/es/molecule/skills-chart-side-information-panel/style.css +25 -9
- package/es/organism/list-items/index.d.ts +2 -0
- package/es/organism/review-no-skills/index.d.ts +2 -1
- package/es/organism/review-no-skills/index.d.ts.map +1 -1
- package/es/organism/review-no-skills/index.js +8 -4
- package/es/organism/review-no-skills/index.js.map +1 -1
- package/es/organism/review-no-skills/prop-types.d.ts +2 -0
- package/es/organism/review-no-skills/prop-types.d.ts.map +1 -1
- package/es/organism/review-no-skills/prop-types.js +2 -1
- package/es/organism/review-no-skills/prop-types.js.map +1 -1
- package/es/organism/review-no-skills/style.css +6 -0
- package/es/organism/setup-header/index.d.ts +4 -0
- package/es/organism/wizard-contents/index.d.ts +3 -0
- 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-create/index.d.ts +4 -0
- package/es/template/back-office/brand-create/index.d.ts.map +1 -1
- package/es/template/back-office/brand-list/index.d.ts +4 -0
- package/es/template/back-office/brand-list/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +11 -0
- package/es/template/back-office/dashboard-preview/index.d.ts +4 -0
- package/es/template/back-office/layout/index.d.ts +4 -0
- package/es/template/back-office/layout/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +4 -0
- package/es/template/common/search-page/index.d.ts +2 -0
- package/es/template/external-course/index.d.ts +2 -0
- package/es/template/my-learning/index.d.ts +33 -0
- package/es/template/my-learning/index.d.ts.map +1 -0
- package/es/template/my-learning/index.js +393 -0
- package/es/template/my-learning/index.js.map +1 -0
- package/es/template/my-learning/style.css +269 -0
- package/es/util/search-value-included.d.ts +3 -0
- package/es/util/search-value-included.d.ts.map +1 -0
- package/es/util/search-value-included.js +10 -0
- package/es/util/search-value-included.js.map +1 -0
- package/lib/atom/button-link/index.d.ts +1 -0
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +6 -5
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/types.d.ts +3 -0
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js +1 -0
- 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 +3 -0
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/atom/input-search/style.css +1 -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/expandible-actionable-table/index.d.ts +1 -0
- package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.d.ts +1 -0
- package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/lib/molecule/learner-skill-card/index.d.ts +2 -0
- package/lib/molecule/learner-skill-card/index.d.ts.map +1 -1
- package/lib/molecule/learner-skill-card/index.js +7 -2
- package/lib/molecule/learner-skill-card/index.js.map +1 -1
- package/lib/molecule/learning-profile-radar-chart/index.d.ts +1 -1
- package/lib/molecule/learning-profile-radar-chart/index.d.ts.map +1 -1
- package/lib/molecule/learning-profile-radar-chart/index.js +27 -13
- package/lib/molecule/learning-profile-radar-chart/index.js.map +1 -1
- package/lib/molecule/learning-profile-radar-chart/style.css +43 -40
- package/lib/molecule/learning-profile-radar-chart/types.d.ts +7 -1
- package/lib/molecule/learning-profile-radar-chart/types.d.ts.map +1 -1
- package/lib/molecule/learning-profile-radar-chart/types.js.map +1 -1
- package/lib/molecule/skill-picker-modal/index.d.ts.map +1 -1
- package/lib/molecule/skill-picker-modal/index.js +1 -1
- package/lib/molecule/skill-picker-modal/index.js.map +1 -1
- package/lib/molecule/skills-chart-side-information-panel/style.css +25 -9
- package/lib/organism/list-items/index.d.ts +2 -0
- package/lib/organism/review-no-skills/index.d.ts +2 -1
- package/lib/organism/review-no-skills/index.d.ts.map +1 -1
- package/lib/organism/review-no-skills/index.js +8 -4
- package/lib/organism/review-no-skills/index.js.map +1 -1
- package/lib/organism/review-no-skills/prop-types.d.ts +2 -0
- package/lib/organism/review-no-skills/prop-types.d.ts.map +1 -1
- package/lib/organism/review-no-skills/prop-types.js +2 -1
- package/lib/organism/review-no-skills/prop-types.js.map +1 -1
- package/lib/organism/review-no-skills/style.css +6 -0
- package/lib/organism/setup-header/index.d.ts +4 -0
- package/lib/organism/wizard-contents/index.d.ts +3 -0
- 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-create/index.d.ts +4 -0
- package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-list/index.d.ts +4 -0
- package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +11 -0
- package/lib/template/back-office/dashboard-preview/index.d.ts +4 -0
- package/lib/template/back-office/layout/index.d.ts +4 -0
- package/lib/template/back-office/layout/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +4 -0
- package/lib/template/common/search-page/index.d.ts +2 -0
- package/lib/template/external-course/index.d.ts +2 -0
- package/lib/template/my-learning/index.d.ts +33 -0
- package/lib/template/my-learning/index.d.ts.map +1 -0
- package/lib/template/my-learning/index.js +422 -0
- package/lib/template/my-learning/index.js.map +1 -0
- package/lib/template/my-learning/style.css +269 -0
- package/lib/util/search-value-included.d.ts +3 -0
- package/lib/util/search-value-included.d.ts.map +1 -0
- package/lib/util/search-value-included.js +20 -0
- package/lib/util/search-value-included.js.map +1 -0
- package/locales/cs/global.json +38 -6
- package/locales/de/global.json +38 -6
- package/locales/en/global.json +27 -1
- package/locales/es/global.json +38 -6
- package/locales/fi/global.json +38 -6
- package/locales/fr/global.json +37 -5
- package/locales/hr/global.json +38 -6
- package/locales/hu/global.json +38 -6
- package/locales/it/global.json +38 -6
- package/locales/ja/global.json +38 -6
- package/locales/ko/global.json +38 -6
- package/locales/nl/global.json +37 -5
- package/locales/pl/global.json +38 -6
- package/locales/pt/global.json +38 -6
- package/locales/ro/global.json +38 -6
- package/locales/ru/global.json +38 -6
- package/locales/sk/global.json +38 -6
- package/locales/sl/global.json +38 -6
- package/locales/sv/global.json +38 -6
- package/locales/tl/global.json +38 -6
- package/locales/tr/global.json +38 -6
- package/locales/uk/global.json +38 -6
- package/locales/vi/global.json +38 -6
- package/locales/zh/global.json +38 -6
- package/locales/zh_TW/global.json +38 -6
- package/package.json +2 -2
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
3
|
+
@value tablet from breakpoints;
|
|
4
|
+
@value mobile from breakpoints;
|
|
5
|
+
@value white from colors;
|
|
6
|
+
@value cm_grey_100 from colors;
|
|
7
|
+
@value cm_grey_500 from colors;
|
|
8
|
+
|
|
9
|
+
.backgroundContainer {
|
|
10
|
+
background-color: white;
|
|
11
|
+
min-height: 100%;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.container {
|
|
16
|
+
background-color: white;
|
|
17
|
+
font-family: "Gilroy";
|
|
18
|
+
font-style: normal;
|
|
19
|
+
margin-top: 48px;
|
|
20
|
+
margin-bottom: 48px;
|
|
21
|
+
margin-left: auto;
|
|
22
|
+
margin-right: auto;
|
|
23
|
+
position: relative;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
min-height: 100%;
|
|
26
|
+
width: 100%;
|
|
27
|
+
max-width: 1080px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.skillFocusContainer {
|
|
31
|
+
border-radius: 16px;
|
|
32
|
+
border: 1px solid cm_grey_100;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
margin-bottom: 40px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.skillFocusHeader,
|
|
38
|
+
.skillListHeader {
|
|
39
|
+
padding: 24px;
|
|
40
|
+
display: flex;
|
|
41
|
+
position: relative;
|
|
42
|
+
border-bottom: 1px solid cm_grey_100;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.skillFocusHeaderIcon,
|
|
46
|
+
.skillListHeaderIcon {
|
|
47
|
+
border-radius: 12px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
margin-right: 12px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.skillFocusHeaderWrapper {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex: 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.skillFocusHeaderContent,
|
|
58
|
+
.skillListHeaderContent {
|
|
59
|
+
flex: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.skillFocusHeaderContent {
|
|
63
|
+
margin-right: 16px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.skillFocusHeaderTitle,
|
|
67
|
+
.skillListHeaderTitle {
|
|
68
|
+
font-size: 18px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
line-height: 24px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.skillFocusHeaderDescription,
|
|
74
|
+
.skillListHeaderDescription {
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
line-height: 20px;
|
|
78
|
+
color: cm_grey_500;
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.skillFocusEmpty {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
padding: 72px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.skillFocusEmptyTitle {
|
|
92
|
+
font-size: 20px;
|
|
93
|
+
font-weight: 700;
|
|
94
|
+
line-height: 28px;
|
|
95
|
+
margin-bottom: 8px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.skillFocusEmptyDescription {
|
|
99
|
+
width: 502px;
|
|
100
|
+
text-align: center;
|
|
101
|
+
font-size: 16px;
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
line-height: 22px;
|
|
104
|
+
margin-bottom: 32px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.img {
|
|
108
|
+
width: 204px;
|
|
109
|
+
height: 200px;
|
|
110
|
+
margin-bottom: 32px;
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.skillFocusContent {
|
|
115
|
+
display: flex;
|
|
116
|
+
padding: 24px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.radarContainer {
|
|
120
|
+
width: 700px;
|
|
121
|
+
height: 444px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.toolBarContainer {
|
|
125
|
+
display: flex;
|
|
126
|
+
justify-content: space-between;
|
|
127
|
+
margin-bottom: 32px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.skillFilterContainer {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
gap: 8px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.skillFilterNumber,
|
|
137
|
+
.skillFilterNumberInActive {
|
|
138
|
+
border-radius: 50%;
|
|
139
|
+
background-color: #D6E6FF;
|
|
140
|
+
color: #0061FF;
|
|
141
|
+
padding: 2px 4px;
|
|
142
|
+
margin-left: 8px;
|
|
143
|
+
font-size: 10px;
|
|
144
|
+
font-weight: 600;
|
|
145
|
+
line-height: 12px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.skillFilterNumberInActive {
|
|
149
|
+
background-color: #EAEAEB;
|
|
150
|
+
color: #515161;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.searchWrapper {
|
|
154
|
+
border-radius: 12px;
|
|
155
|
+
width: 190px;
|
|
156
|
+
background-color: cm_grey_100;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.infoIconTooltip {
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.tooltip {
|
|
164
|
+
padding: 8px 12px;
|
|
165
|
+
width: 238px;
|
|
166
|
+
color: #FFF;
|
|
167
|
+
font-size: 12px;
|
|
168
|
+
font-style: normal;
|
|
169
|
+
line-height: 16px;
|
|
170
|
+
right: -100px;
|
|
171
|
+
|
|
172
|
+
ol {
|
|
173
|
+
padding: 14px;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.skillListHeader {
|
|
178
|
+
padding: 24px 0;
|
|
179
|
+
border: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.skillListContainer {
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-wrap: wrap;
|
|
185
|
+
gap: 16px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.skillListEmptyContainer {
|
|
189
|
+
display: flex;
|
|
190
|
+
width: 100%;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.emptySearchResultContainer {
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
align-items: center;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.emptySearchResultTitle {
|
|
201
|
+
font-size: 20px;
|
|
202
|
+
font-weight: 700;
|
|
203
|
+
line-height: 28px;
|
|
204
|
+
margin-bottom: 8px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.emptySearchResultDescription {
|
|
208
|
+
font-size: 16px;
|
|
209
|
+
font-weight: 500;
|
|
210
|
+
line-height: 22px;
|
|
211
|
+
margin-bottom: 16px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.emptySearchResultClearSearch {
|
|
215
|
+
color: #0061FF;
|
|
216
|
+
font-size: 14px;
|
|
217
|
+
font-style: normal;
|
|
218
|
+
font-weight: 600;
|
|
219
|
+
line-height: 20px;
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.emptySearchResultClearSearch:hover {
|
|
224
|
+
text-decoration: underline;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@media mobile {
|
|
228
|
+
.skillFocusHeaderWrapper {
|
|
229
|
+
margin-bottom: 16px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.skillFocusHeader{
|
|
233
|
+
flex-direction: column;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.skillFocusContent {
|
|
237
|
+
flex-direction: column;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.radarContainer {
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 280px;
|
|
243
|
+
margin-bottom:48px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.toolBarContainer {
|
|
247
|
+
flex-direction: column;
|
|
248
|
+
gap: 16px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.searchWrapper {
|
|
252
|
+
width: 100%;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.skillFilterContainer {
|
|
256
|
+
overflow-x: auto;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.skillListContainer {
|
|
260
|
+
align-items: center;
|
|
261
|
+
justify-content: center;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@media tablet {
|
|
266
|
+
.skillFocusContent {
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-value-included.d.ts","sourceRoot":"","sources":["../../src/util/search-value-included.js"],"names":[],"mappings":";AAEA,sEAEC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _pipe from "lodash/fp/pipe";
|
|
2
|
+
import _toLower from "lodash/fp/toLower";
|
|
3
|
+
import _includes from "lodash/fp/includes";
|
|
4
|
+
|
|
5
|
+
const searchValueIncluded = (skill, value) => {
|
|
6
|
+
return _pipe(_toLower, _includes(_toLower(value)))(skill);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default searchValueIncluded;
|
|
10
|
+
//# sourceMappingURL=search-value-included.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-value-included.js","names":["searchValueIncluded","skill","value"],"sources":["../../src/util/search-value-included.js"],"sourcesContent":["import {includes, toLower, pipe} from 'lodash/fp';\n\nconst searchValueIncluded = (skill, value) => {\n return pipe(toLower, includes(toLower(value)))(skill);\n};\n\nexport default searchValueIncluded;\n"],"mappings":";;;;AAEA,MAAMA,mBAAmB,GAAG,CAACC,KAAD,EAAQC,KAAR,KAAkB;EAC5C,OAAO,gBAAc,UAAS,SAAQA,KAAR,CAAT,CAAd,EAAwCD,KAAxC,CAAP;AACD,CAFD;;AAIA,eAAeD,mBAAf"}
|
|
@@ -5,6 +5,7 @@ declare const ButtonLink: {
|
|
|
5
5
|
propTypes: {
|
|
6
6
|
type: import("prop-types").Requireable<string>;
|
|
7
7
|
label: import("prop-types").Requireable<string>;
|
|
8
|
+
content: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
8
9
|
'aria-label': import("prop-types").Requireable<string>;
|
|
9
10
|
'data-name': import("prop-types").Requireable<string>;
|
|
10
11
|
'data-testid': import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/index.tsx"],"names":[],"mappings":";AAMA,OAAkB,EAAC,eAAe,EAAW,MAAM,SAAS,CAAC;AAwC7D,QAAA,MAAM,UAAU;YAAW,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/index.tsx"],"names":[],"mappings":";AAMA,OAAkB,EAAC,eAAe,EAAW,MAAM,SAAS,CAAC;AAwC7D,QAAA,MAAM,UAAU;YAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;CAsEzC,CAAC;AAIF,eAAe,UAAU,CAAC"}
|
|
@@ -27,7 +27,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
27
27
|
|
|
28
28
|
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); }
|
|
29
29
|
|
|
30
|
-
const getButtonContent = (icon,
|
|
30
|
+
const getButtonContent = (icon, content) => {
|
|
31
31
|
const {
|
|
32
32
|
type,
|
|
33
33
|
faIcon,
|
|
@@ -43,7 +43,7 @@ const getButtonContent = (icon, label) => {
|
|
|
43
43
|
className: _style.default.buttonContent
|
|
44
44
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
45
45
|
className: _style.default.label
|
|
46
|
-
},
|
|
46
|
+
}, content));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const iconComponent = faIcon ? /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
@@ -60,15 +60,16 @@ const getButtonContent = (icon, label) => {
|
|
|
60
60
|
});
|
|
61
61
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
62
62
|
className: _style.default.buttonContent
|
|
63
|
-
}, position === 'left' ? iconComponent : null,
|
|
63
|
+
}, position === 'left' ? iconComponent : null, content ? /*#__PURE__*/_react.default.createElement("span", {
|
|
64
64
|
className: _style.default.label
|
|
65
|
-
},
|
|
65
|
+
}, content) : null, position === 'right' ? iconComponent : null);
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
const ButtonLink = props => {
|
|
69
69
|
const {
|
|
70
70
|
type,
|
|
71
71
|
label,
|
|
72
|
+
content,
|
|
72
73
|
disabled,
|
|
73
74
|
icon,
|
|
74
75
|
'data-name': dataName,
|
|
@@ -81,7 +82,7 @@ const ButtonLink = props => {
|
|
|
81
82
|
customStyle,
|
|
82
83
|
useTitle = true
|
|
83
84
|
} = props;
|
|
84
|
-
const contentView = getButtonContent(icon, label);
|
|
85
|
+
const contentView = getButtonContent(icon, content ?? label);
|
|
85
86
|
const styleButton = (0, _classnames.default)(className, _style.default.button, type === 'primary' && _style.default.primary, type === 'secondary' && _style.default.secondary, type === 'tertiary' && _style.default.tertiary, type === 'text' && _style.default.text, type === 'dangerous' && _style.default.dangerous, link && _style.default.link, disabled && _style.default.disabled);
|
|
86
87
|
const handleOnClick = (0, _react.useCallback)(() => onClick(), [onClick]);
|
|
87
88
|
const handleOnKeyDown = (0, _react.useCallback)(event => onKeyDown(event), [onKeyDown]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["getButtonContent","icon","
|
|
1
|
+
{"version":3,"file":"index.js","names":["getButtonContent","icon","content","type","faIcon","position","Icon","ICONS","style","buttonContent","label","iconComponent","iconName","name","iconColor","color","backgroundColor","size","faSize","wrapperSize","ButtonLink","props","disabled","dataName","dataTestId","ariaLabel","link","onClick","onKeyDown","className","customStyle","useTitle","contentView","styleButton","classnames","button","primary","secondary","tertiary","text","dangerous","handleOnClick","useCallback","handleOnKeyDown","event","title","propTypes"],"sources":["../../../src/atom/button-link/index.tsx"],"sourcesContent":["import React, {useCallback} from 'react';\nimport {noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport FaIcon from '../icon';\nimport {ICONS} from '../../util/button-icons';\nimport propTypes, {ButtonLinkProps, IconType} from './types';\nimport style from './style.css';\n\nconst getButtonContent = (icon?: IconType, content?: string | React.ReactNode) => {\n const {type, faIcon, position} = icon || {type: '', position: ''};\n const Icon = type && ICONS[type];\n\n if (!Icon && !faIcon) {\n return (\n <div className={style.buttonContent}>\n <span className={style.label}>{content}</span>\n </div>\n );\n }\n\n const iconComponent = faIcon ? (\n <FaIcon\n {...{\n iconName: faIcon.name,\n iconColor: faIcon.color,\n backgroundColor: faIcon.backgroundColor,\n size: {\n faSize: faIcon.size,\n wrapperSize: faIcon.size\n }\n }}\n />\n ) : (\n <Icon className={style.icon} theme=\"coorpmanager\" />\n );\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? iconComponent : null}\n {content ? <span className={style.label}>{content}</span> : null}\n {position === 'right' ? iconComponent : null}\n </div>\n );\n};\n\nconst ButtonLink = (props: ButtonLinkProps) => {\n const {\n type,\n label,\n content,\n disabled,\n icon,\n 'data-name': dataName,\n 'data-testid': dataTestId = 'button-link',\n 'aria-label': ariaLabel,\n link,\n onClick = noop,\n onKeyDown = noop,\n className,\n customStyle,\n useTitle = true\n } = props;\n const contentView = getButtonContent(icon, content ?? label);\n const styleButton = classnames(\n className,\n style.button,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n link && style.link,\n disabled && style.disabled\n );\n\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n const handleOnKeyDown = useCallback(event => onKeyDown(event), [onKeyDown]);\n\n if (link) {\n return (\n <Link\n {...link}\n {...(useTitle && {\n title: ariaLabel || label\n })}\n style={customStyle}\n className={styleButton}\n data-name={dataName}\n data-testid={dataTestId}\n aria-label={ariaLabel || label}\n >\n {contentView}\n </Link>\n );\n }\n\n return (\n <button\n {...(useTitle && {\n title: ariaLabel || label\n })}\n type=\"button\"\n aria-label={ariaLabel || label}\n data-name={dataName}\n data-testid={dataTestId}\n style={customStyle}\n className={styleButton}\n onClick={handleOnClick}\n onKeyDown={handleOnKeyDown}\n tabIndex={0}\n >\n {contentView}\n </button>\n );\n};\n\nButtonLink.propTypes = propTypes;\n\nexport default ButtonLink;\n"],"mappings":"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"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
import { ICONS } from '../../util/button-icons';
|
|
3
4
|
declare const propTypes: {
|
|
4
5
|
type: PropTypes.Requireable<string>;
|
|
5
6
|
label: PropTypes.Requireable<string>;
|
|
7
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
6
8
|
'aria-label': PropTypes.Requireable<string>;
|
|
7
9
|
'data-name': PropTypes.Requireable<string>;
|
|
8
10
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -34,6 +36,7 @@ export declare type IconType = {
|
|
|
34
36
|
export declare type ButtonLinkProps = {
|
|
35
37
|
type?: 'primary' | 'secondary' | 'tertiary' | 'text' | 'dangerous';
|
|
36
38
|
label?: string;
|
|
39
|
+
content?: React.ReactNode;
|
|
37
40
|
'aria-label'?: string;
|
|
38
41
|
'data-name'?: string;
|
|
39
42
|
'data-testid'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAE9C,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAE9C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAoBd,CAAC;AAEF,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACrB,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC;IAC1B,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,CAAC;AACF,oBAAY,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,CAAC;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;KAClD,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,OAAO,GAAG;IAAC,KAAK,EAAE,eAAe,CAAA;CAAC,CAAC;AAE/C,eAAe,SAAS,CAAC"}
|
|
@@ -14,6 +14,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
14
14
|
const propTypes = {
|
|
15
15
|
type: _propTypes.default.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),
|
|
16
16
|
label: _propTypes.default.string,
|
|
17
|
+
content: _propTypes.default.node,
|
|
17
18
|
'aria-label': _propTypes.default.string,
|
|
18
19
|
'data-name': _propTypes.default.string,
|
|
19
20
|
'data-testid': _propTypes.default.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","type","PropTypes","oneOf","label","string","icon","shape","position","ICONS","onClick","func","link","href","download","bool","target","disabled","className","customStyle"],"sources":["../../../src/atom/button-link/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport {ICONS} from '../../util/button-icons';\n\nconst propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n 'data-testid': PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS))\n }),\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool,\n className: PropTypes.string,\n customStyle: PropTypes.shape({})\n};\n\nexport type FaIcontype = {\n name: string;\n color?: string;\n backgroundColor?: string;\n size?: number;\n};\n\nexport type IconType = {\n position: 'right' | 'left';\n type?: keyof typeof ICONS;\n faIcon?: FaIcontype;\n};\nexport type ButtonLinkProps = {\n type?: 'primary' | 'secondary' | 'tertiary' | 'text' | 'dangerous';\n label?: string;\n 'aria-label'?: string;\n 'data-name'?: string;\n 'data-testid'?: string;\n icon?: IconType;\n onClick?: () => void;\n onKeyDown?: () => void;\n link?: {\n href?: string;\n download?: boolean;\n target?: '_self' | '_blank' | '_parent' | '_top';\n };\n disabled?: boolean;\n className?: string;\n customStyle?: Record<string, unknown>;\n useTitle?: boolean;\n};\n\nexport type Fixture = {props: ButtonLinkProps};\n\nexport default propTypes;\n"],"mappings":";;;;;;;AAAA;;AAEA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,IAAI,EAAEC,kBAAA,CAAUC,KAAV,CAAgB,CAAC,SAAD,EAAY,WAAZ,EAAyB,UAAzB,EAAqC,MAArC,EAA6C,WAA7C,CAAhB,CADU;EAEhBC,KAAK,EAAEF,kBAAA,CAAUG,MAFD;
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","type","PropTypes","oneOf","label","string","content","node","icon","shape","position","ICONS","onClick","func","link","href","download","bool","target","disabled","className","customStyle"],"sources":["../../../src/atom/button-link/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport {ICONS} from '../../util/button-icons';\n\nconst propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n label: PropTypes.string,\n content: PropTypes.node,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n 'data-testid': PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS))\n }),\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool,\n className: PropTypes.string,\n customStyle: PropTypes.shape({})\n};\n\nexport type FaIcontype = {\n name: string;\n color?: string;\n backgroundColor?: string;\n size?: number;\n};\n\nexport type IconType = {\n position: 'right' | 'left';\n type?: keyof typeof ICONS;\n faIcon?: FaIcontype;\n};\nexport type ButtonLinkProps = {\n type?: 'primary' | 'secondary' | 'tertiary' | 'text' | 'dangerous';\n label?: string;\n content?: React.ReactNode;\n 'aria-label'?: string;\n 'data-name'?: string;\n 'data-testid'?: string;\n icon?: IconType;\n onClick?: () => void;\n onKeyDown?: () => void;\n link?: {\n href?: string;\n download?: boolean;\n target?: '_self' | '_blank' | '_parent' | '_top';\n };\n disabled?: boolean;\n className?: string;\n customStyle?: Record<string, unknown>;\n useTitle?: boolean;\n};\n\nexport type Fixture = {props: ButtonLinkProps};\n\nexport default propTypes;\n"],"mappings":";;;;;;;AAAA;;AAEA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,IAAI,EAAEC,kBAAA,CAAUC,KAAV,CAAgB,CAAC,SAAD,EAAY,WAAZ,EAAyB,UAAzB,EAAqC,MAArC,EAA6C,WAA7C,CAAhB,CADU;EAEhBC,KAAK,EAAEF,kBAAA,CAAUG,MAFD;EAGhBC,OAAO,EAAEJ,kBAAA,CAAUK,IAHH;EAIhB,cAAcL,kBAAA,CAAUG,MAJR;EAKhB,aAAaH,kBAAA,CAAUG,MALP;EAMhB,eAAeH,kBAAA,CAAUG,MANT;EAOhBG,IAAI,EAAEN,kBAAA,CAAUO,KAAV,CAAgB;IACpBC,QAAQ,EAAER,kBAAA,CAAUC,KAAV,CAAgB,CAAC,OAAD,EAAU,MAAV,CAAhB,CADU;IAEpBF,IAAI,EAAEC,kBAAA,CAAUC,KAAV,CAAgB,oBAAKQ,kBAAL,CAAhB;EAFc,CAAhB,CAPU;EAWhBC,OAAO,EAAEV,kBAAA,CAAUW,IAXH;EAYhBC,IAAI,EAAEZ,kBAAA,CAAUO,KAAV,CAAgB;IACpBM,IAAI,EAAEb,kBAAA,CAAUG,MADI;IAEpBW,QAAQ,EAAEd,kBAAA,CAAUe,IAFA;IAGpBC,MAAM,EAAEhB,kBAAA,CAAUC,KAAV,CAAgB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,MAA/B,CAAhB;EAHY,CAAhB,CAZU;EAiBhBgB,QAAQ,EAAEjB,kBAAA,CAAUe,IAjBJ;EAkBhBG,SAAS,EAAElB,kBAAA,CAAUG,MAlBL;EAmBhBgB,WAAW,EAAEnB,kBAAA,CAAUO,KAAV,CAAgB,EAAhB;AAnBG,CAAlB;eAyDeT,S"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/icon/index.js"],"names":[],"mappings":"AAiBA,mDAAoD;AAiB7C,8DAC8D;;AAGrE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/icon/index.js"],"names":[],"mappings":"AAiBA,mDAAoD;AAiB7C,8DAC8D;;AAGrE,uDAkCG"}
|
package/lib/atom/icon/index.js
CHANGED
|
@@ -61,6 +61,7 @@ const Icon = /*#__PURE__*/_react.default.memo(function Icon({
|
|
|
61
61
|
iconName,
|
|
62
62
|
iconColor,
|
|
63
63
|
backgroundColor,
|
|
64
|
+
borderRadius,
|
|
64
65
|
preset = DEFAULT_PRESET,
|
|
65
66
|
size
|
|
66
67
|
}) {
|
|
@@ -69,6 +70,7 @@ const Icon = /*#__PURE__*/_react.default.memo(function Icon({
|
|
|
69
70
|
const wrapperSize = effectiveSize.wrapperSize - ICON_PADDING * 2;
|
|
70
71
|
const iconWrapperStyle = {
|
|
71
72
|
backgroundColor,
|
|
73
|
+
borderRadius,
|
|
72
74
|
width: wrapperSize,
|
|
73
75
|
height: wrapperSize,
|
|
74
76
|
padding: ICON_PADDING
|
|
@@ -87,6 +89,7 @@ Icon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
87
89
|
iconName: _propTypes.default.string.isRequired,
|
|
88
90
|
iconColor: _propTypes.default.string,
|
|
89
91
|
backgroundColor: _propTypes.default.string,
|
|
92
|
+
borderRadius: _propTypes.default.string,
|
|
90
93
|
preset: _propTypes.default.oneOf(['s', 'm', 'xl']),
|
|
91
94
|
size: _propTypes.default.shape({
|
|
92
95
|
faSize: _propTypes.number,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["library","add","fas","DEFAULT_PRESET","ICON_LUMINOSITY","DEFAULT_WRAPPER_SIZE","ICON_PADDING","DEFAULT_ICON_COLOR","SIZE_CONFIGS","s","faSize","wrapperSize","m","xl","getForegroundColor","backgroundColor","convert","Icon","React","memo","iconName","iconColor","preset","size","effectiveIconColor","effectiveSize","merge","getOr","toLower","iconWrapperStyle","width","height","padding","style","iconWrapper","propTypes","PropTypes","string","isRequired","oneOf","shape","number"],"sources":["../../../src/atom/icon/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes, {number} from 'prop-types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {fas} from '@fortawesome/pro-solid-svg-icons';\nimport {library} from '@fortawesome/fontawesome-svg-core';\nimport toLower from 'lodash/fp/toLower';\nimport merge from 'lodash/fp/merge';\nimport getOr from 'lodash/fp/getOr';\nimport {convert} from 'css-color-function';\nimport style from './style.css';\n\nlibrary.add(fas);\n\nconst DEFAULT_PRESET = 'm';\nconst ICON_LUMINOSITY = 32;\nconst DEFAULT_WRAPPER_SIZE = 40;\nconst ICON_PADDING = 8;\nexport const DEFAULT_ICON_COLOR = 'hsl(0, 0%, 32%)';\n\nconst SIZE_CONFIGS = {\n s: {\n faSize: 12,\n wrapperSize: 32\n },\n m: {\n faSize: 16,\n wrapperSize: DEFAULT_WRAPPER_SIZE\n },\n xl: {\n faSize: 20,\n wrapperSize: 48\n }\n};\n\nexport const getForegroundColor = backgroundColor =>\n convert(`color(${backgroundColor} lightness(${ICON_LUMINOSITY}%))`);\n// set lightness to 32%\n\nconst Icon = React.memo(function Icon({\n iconName,\n iconColor,\n backgroundColor,\n preset = DEFAULT_PRESET,\n size\n}) {\n const effectiveIconColor =\n iconColor || (backgroundColor ? getForegroundColor(backgroundColor) : DEFAULT_ICON_COLOR);\n\n const effectiveSize = size\n ? merge(SIZE_CONFIGS[DEFAULT_PRESET], size)\n : getOr(SIZE_CONFIGS[DEFAULT_PRESET], toLower(preset), SIZE_CONFIGS);\n\n const wrapperSize = effectiveSize.wrapperSize - ICON_PADDING * 2;\n\n const iconWrapperStyle = {\n backgroundColor,\n width: wrapperSize,\n height: wrapperSize,\n padding: ICON_PADDING\n };\n\n return (\n <div className={style.iconWrapper} style={iconWrapperStyle}>\n <FontAwesomeIcon\n icon={`fa-${iconName}`}\n color={effectiveIconColor}\n fontSize={effectiveSize.faSize}\n />\n </div>\n );\n});\n\nIcon.propTypes = {\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string,\n backgroundColor: PropTypes.string,\n preset: PropTypes.oneOf(['s', 'm', 'xl']),\n size: PropTypes.shape({\n faSize: number,\n wrapperSize: PropTypes.number\n })\n};\n\nexport default Icon;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEAA,2BAAA,CAAQC,GAAR,CAAYC,qBAAZ;;AAEA,MAAMC,cAAc,GAAG,GAAvB;AACA,MAAMC,eAAe,GAAG,EAAxB;AACA,MAAMC,oBAAoB,GAAG,EAA7B;AACA,MAAMC,YAAY,GAAG,CAArB;AACO,MAAMC,kBAAkB,GAAG,iBAA3B;;AAEP,MAAMC,YAAY,GAAG;EACnBC,CAAC,EAAE;IACDC,MAAM,EAAE,EADP;IAEDC,WAAW,EAAE;EAFZ,CADgB;EAKnBC,CAAC,EAAE;IACDF,MAAM,EAAE,EADP;IAEDC,WAAW,EAAEN;EAFZ,CALgB;EASnBQ,EAAE,EAAE;IACFH,MAAM,EAAE,EADN;IAEFC,WAAW,EAAE;EAFX;AATe,CAArB;;AAeO,MAAMG,kBAAkB,GAAGC,eAAe,IAC/C,IAAAC,yBAAA,EAAS,SAAQD,eAAgB,cAAaX,eAAgB,KAA9D,CADK,C,CAEP;;;;;AAEA,MAAMa,IAAI,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,IAAT,CAAc;EACpCG,QADoC;EAEpCC,SAFoC;EAGpCN,eAHoC;EAIpCO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","names":["library","add","fas","DEFAULT_PRESET","ICON_LUMINOSITY","DEFAULT_WRAPPER_SIZE","ICON_PADDING","DEFAULT_ICON_COLOR","SIZE_CONFIGS","s","faSize","wrapperSize","m","xl","getForegroundColor","backgroundColor","convert","Icon","React","memo","iconName","iconColor","borderRadius","preset","size","effectiveIconColor","effectiveSize","merge","getOr","toLower","iconWrapperStyle","width","height","padding","style","iconWrapper","propTypes","PropTypes","string","isRequired","oneOf","shape","number"],"sources":["../../../src/atom/icon/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes, {number} from 'prop-types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {fas} from '@fortawesome/pro-solid-svg-icons';\nimport {library} from '@fortawesome/fontawesome-svg-core';\nimport toLower from 'lodash/fp/toLower';\nimport merge from 'lodash/fp/merge';\nimport getOr from 'lodash/fp/getOr';\nimport {convert} from 'css-color-function';\nimport style from './style.css';\n\nlibrary.add(fas);\n\nconst DEFAULT_PRESET = 'm';\nconst ICON_LUMINOSITY = 32;\nconst DEFAULT_WRAPPER_SIZE = 40;\nconst ICON_PADDING = 8;\nexport const DEFAULT_ICON_COLOR = 'hsl(0, 0%, 32%)';\n\nconst SIZE_CONFIGS = {\n s: {\n faSize: 12,\n wrapperSize: 32\n },\n m: {\n faSize: 16,\n wrapperSize: DEFAULT_WRAPPER_SIZE\n },\n xl: {\n faSize: 20,\n wrapperSize: 48\n }\n};\n\nexport const getForegroundColor = backgroundColor =>\n convert(`color(${backgroundColor} lightness(${ICON_LUMINOSITY}%))`);\n// set lightness to 32%\n\nconst Icon = React.memo(function Icon({\n iconName,\n iconColor,\n backgroundColor,\n borderRadius,\n preset = DEFAULT_PRESET,\n size\n}) {\n const effectiveIconColor =\n iconColor || (backgroundColor ? getForegroundColor(backgroundColor) : DEFAULT_ICON_COLOR);\n\n const effectiveSize = size\n ? merge(SIZE_CONFIGS[DEFAULT_PRESET], size)\n : getOr(SIZE_CONFIGS[DEFAULT_PRESET], toLower(preset), SIZE_CONFIGS);\n\n const wrapperSize = effectiveSize.wrapperSize - ICON_PADDING * 2;\n\n const iconWrapperStyle = {\n backgroundColor,\n borderRadius,\n width: wrapperSize,\n height: wrapperSize,\n padding: ICON_PADDING\n };\n\n return (\n <div className={style.iconWrapper} style={iconWrapperStyle}>\n <FontAwesomeIcon\n icon={`fa-${iconName}`}\n color={effectiveIconColor}\n fontSize={effectiveSize.faSize}\n />\n </div>\n );\n});\n\nIcon.propTypes = {\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string,\n backgroundColor: PropTypes.string,\n borderRadius: PropTypes.string,\n preset: PropTypes.oneOf(['s', 'm', 'xl']),\n size: PropTypes.shape({\n faSize: number,\n wrapperSize: PropTypes.number\n })\n};\n\nexport default Icon;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEAA,2BAAA,CAAQC,GAAR,CAAYC,qBAAZ;;AAEA,MAAMC,cAAc,GAAG,GAAvB;AACA,MAAMC,eAAe,GAAG,EAAxB;AACA,MAAMC,oBAAoB,GAAG,EAA7B;AACA,MAAMC,YAAY,GAAG,CAArB;AACO,MAAMC,kBAAkB,GAAG,iBAA3B;;AAEP,MAAMC,YAAY,GAAG;EACnBC,CAAC,EAAE;IACDC,MAAM,EAAE,EADP;IAEDC,WAAW,EAAE;EAFZ,CADgB;EAKnBC,CAAC,EAAE;IACDF,MAAM,EAAE,EADP;IAEDC,WAAW,EAAEN;EAFZ,CALgB;EASnBQ,EAAE,EAAE;IACFH,MAAM,EAAE,EADN;IAEFC,WAAW,EAAE;EAFX;AATe,CAArB;;AAeO,MAAMG,kBAAkB,GAAGC,eAAe,IAC/C,IAAAC,yBAAA,EAAS,SAAQD,eAAgB,cAAaX,eAAgB,KAA9D,CADK,C,CAEP;;;;;AAEA,MAAMa,IAAI,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,IAAT,CAAc;EACpCG,QADoC;EAEpCC,SAFoC;EAGpCN,eAHoC;EAIpCO,YAJoC;EAKpCC,MAAM,GAAGpB,cAL2B;EAMpCqB;AANoC,CAAd,EAOrB;EACD,MAAMC,kBAAkB,GACtBJ,SAAS,KAAKN,eAAe,GAAGD,kBAAkB,CAACC,eAAD,CAArB,GAAyCR,kBAA7D,CADX;EAGA,MAAMmB,aAAa,GAAGF,IAAI,GACtB,IAAAG,cAAA,EAAMnB,YAAY,CAACL,cAAD,CAAlB,EAAoCqB,IAApC,CADsB,GAEtB,IAAAI,cAAA,EAAMpB,YAAY,CAACL,cAAD,CAAlB,EAAoC,IAAA0B,gBAAA,EAAQN,MAAR,CAApC,EAAqDf,YAArD,CAFJ;EAIA,MAAMG,WAAW,GAAGe,aAAa,CAACf,WAAd,GAA4BL,YAAY,GAAG,CAA/D;EAEA,MAAMwB,gBAAgB,GAAG;IACvBf,eADuB;IAEvBO,YAFuB;IAGvBS,KAAK,EAAEpB,WAHgB;IAIvBqB,MAAM,EAAErB,WAJe;IAKvBsB,OAAO,EAAE3B;EALc,CAAzB;EAQA,oBACE;IAAK,SAAS,EAAE4B,cAAA,CAAMC,WAAtB;IAAmC,KAAK,EAAEL;EAA1C,gBACE,6BAAC,iCAAD;IACE,IAAI,EAAG,MAAKV,QAAS,EADvB;IAEE,KAAK,EAAEK,kBAFT;IAGE,QAAQ,EAAEC,aAAa,CAAChB;EAH1B,EADF,CADF;AASD,CAlCY,CAAb;;AAoCAO,IAAI,CAACmB,SAAL,2CAAiB;EACfhB,QAAQ,EAAEiB,kBAAA,CAAUC,MAAV,CAAiBC,UADZ;EAEflB,SAAS,EAAEgB,kBAAA,CAAUC,MAFN;EAGfvB,eAAe,EAAEsB,kBAAA,CAAUC,MAHZ;EAIfhB,YAAY,EAAEe,kBAAA,CAAUC,MAJT;EAKff,MAAM,EAAEc,kBAAA,CAAUG,KAAV,CAAgB,CAAC,GAAD,EAAM,GAAN,EAAW,IAAX,CAAhB,CALO;EAMfhB,IAAI,EAAEa,kBAAA,CAAUI,KAAV,CAAgB;IACpB/B,MAAM,EAAEgC,iBADY;IAEpB/B,WAAW,EAAE0B,kBAAA,CAAUK;EAFH,CAAhB;AANS,CAAjB;eAYezB,I"}
|
|
@@ -80,6 +80,7 @@ declare const propTypes: {
|
|
|
80
80
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
81
81
|
type: PropTypes.Requireable<string>;
|
|
82
82
|
label: PropTypes.Requireable<string>;
|
|
83
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
83
84
|
'aria-label': PropTypes.Requireable<string>;
|
|
84
85
|
'data-name': PropTypes.Requireable<string>;
|
|
85
86
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -211,6 +212,7 @@ declare const propTypes: {
|
|
|
211
212
|
componentType: PropTypes.Requireable<string>;
|
|
212
213
|
type: PropTypes.Requireable<string>;
|
|
213
214
|
label: PropTypes.Requireable<string>;
|
|
215
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
214
216
|
'aria-label': PropTypes.Requireable<string>;
|
|
215
217
|
'data-name': PropTypes.Requireable<string>;
|
|
216
218
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAGlD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAGlD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDd,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;QACzB,IAAI,EACA,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,GAChD,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -65,6 +65,7 @@ declare const ActionableExpandableTable: {
|
|
|
65
65
|
componentType: import("prop-types").Requireable<string>;
|
|
66
66
|
type: import("prop-types").Requireable<string>;
|
|
67
67
|
label: import("prop-types").Requireable<string>;
|
|
68
|
+
content: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
68
69
|
'aria-label': import("prop-types").Requireable<string>;
|
|
69
70
|
'data-name': import("prop-types").Requireable<string>;
|
|
70
71
|
'data-testid': import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAOjE,OAAO,EAA2C,KAAK,EAAY,MAAM,SAAS,CAAC;AAqCnF,QAAA,MAAM,yBAAyB;YAAW,KAAK,iBAAiB,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAOjE,OAAO,EAA2C,KAAK,EAAY,MAAM,SAAS,CAAC;AAqCnF,QAAA,MAAM,yBAAyB;YAAW,KAAK,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoL/E,CAAC;AASF,eAAe,yBAAyB,CAAC"}
|
|
@@ -42,6 +42,7 @@ export declare const propTypes: {
|
|
|
42
42
|
componentType: PropTypes.Requireable<string>;
|
|
43
43
|
type: PropTypes.Requireable<string>;
|
|
44
44
|
label: PropTypes.Requireable<string>;
|
|
45
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
45
46
|
'aria-label': PropTypes.Requireable<string>;
|
|
46
47
|
'data-name': PropTypes.Requireable<string>;
|
|
47
48
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAC,0BAA0B,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,KAAK,IAAI,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAC,KAAK,IAAI,oBAAoB,EAAC,MAAM,4BAA4B,CAAC;AA0BzE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAC,0BAA0B,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,KAAK,IAAI,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAC,KAAK,IAAI,oBAAoB,EAAC,MAAM,4BAA4B,CAAC;AA0BzE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBrB,CAAC;AAEF,oBAAY,KAAK,GACb,MAAM,GACN,CAAC,eAAe,GAAG;IACjB,aAAa,EAAE,QAAQ,CAAC;CACzB,CAAC,GACF,CAAC,oBAAoB,GAAG;IACtB,aAAa,EAAE,cAAc,CAAC;CAC/B,CAAC,CAAC;AAEP,oBAAY,SAAS,GACjB,CAAC,eAAe,GAAG;IACjB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC,GACF,CAAC,0BAA0B,GAAG;IAC5B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEP,oBAAY,SAAS,GACjB,CAAC,gBAAgB,GAAG;IAClB,aAAa,EAAE,cAAc,CAAC;CAC/B,CAAC,GACF,CAAC,KAAK,GAAG;IACP,aAAa,EAAE,yBAAyB,CAAC;CAC1C,CAAC,CAAC;AAEP,oBAAY,MAAM,GAAG;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;AACrC,oBAAY,GAAG,GAAG;IAChB,MAAM,EAAE,KAAK,EAAE,CAAC;IAEhB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AACF,oBAAY,OAAO,GAAG,MAAM,EAAE,CAAC;AAC/B,oBAAY,IAAI,GAAG,GAAG,EAAE,CAAC;AAEzB,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,GAAG,MAAM,GAAG,IAAI,GAAG,GAAG,EAAE,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,oBAAY,WAAW,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAC,CAAC"}
|
|
@@ -8,11 +8,13 @@ declare namespace LearnerSkillCard {
|
|
|
8
8
|
'aria-label': PropTypes.Requireable<string>;
|
|
9
9
|
skillTitle: PropTypes.Requireable<string>;
|
|
10
10
|
skillAriaLabel: PropTypes.Requireable<string>;
|
|
11
|
+
focus: PropTypes.Requireable<boolean>;
|
|
11
12
|
metrics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
13
|
skillCourses: PropTypes.Requireable<number>;
|
|
13
14
|
skillQuestions: PropTypes.Requireable<number>;
|
|
14
15
|
completedCourses: PropTypes.Requireable<number>;
|
|
15
16
|
}>>;
|
|
17
|
+
review: PropTypes.Requireable<boolean>;
|
|
16
18
|
onReviewClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
19
|
onExploreClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/learner-skill-card/index.js"],"names":[],"mappings":";AASA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/learner-skill-card/index.js"],"names":[],"mappings":";AASA,yEA2JC"}
|
|
@@ -32,7 +32,9 @@ const LearnerSkillCard = (props, context) => {
|
|
|
32
32
|
'aria-label': ariaLabel,
|
|
33
33
|
skillTitle,
|
|
34
34
|
skillAriaLabel,
|
|
35
|
+
focus = false,
|
|
35
36
|
metrics,
|
|
37
|
+
review = false,
|
|
36
38
|
onReviewClick,
|
|
37
39
|
onExploreClick
|
|
38
40
|
} = props;
|
|
@@ -60,6 +62,7 @@ const LearnerSkillCard = (props, context) => {
|
|
|
60
62
|
backgroundColor: '#FFF',
|
|
61
63
|
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
62
64
|
},
|
|
65
|
+
disabled: !review,
|
|
63
66
|
onClick: onReviewClick,
|
|
64
67
|
'aria-label': `${skillTitle}, ${reviewLocale}`,
|
|
65
68
|
label: reviewLocale,
|
|
@@ -125,7 +128,7 @@ const LearnerSkillCard = (props, context) => {
|
|
|
125
128
|
"data-name": "skill-title",
|
|
126
129
|
className: _style.default.skillTitle,
|
|
127
130
|
"aria-label": skillAriaLabel || skillTitle
|
|
128
|
-
}, skillTitle), /*#__PURE__*/_react.default.createElement("div", {
|
|
131
|
+
}, skillTitle), focus ? /*#__PURE__*/_react.default.createElement("div", {
|
|
129
132
|
className: _style.default.skillFocusBadge
|
|
130
133
|
}, /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
131
134
|
iconName: "bullseye-arrow",
|
|
@@ -134,7 +137,7 @@ const LearnerSkillCard = (props, context) => {
|
|
|
134
137
|
faSize: 10,
|
|
135
138
|
wrapperSize: 16
|
|
136
139
|
}
|
|
137
|
-
}), skillFocusLocale)), /*#__PURE__*/_react.default.createElement(ProgressBar, null), /*#__PURE__*/_react.default.createElement("div", {
|
|
140
|
+
}), skillFocusLocale) : null), /*#__PURE__*/_react.default.createElement(ProgressBar, null), /*#__PURE__*/_react.default.createElement("div", {
|
|
138
141
|
className: _style.default.progressInformations
|
|
139
142
|
}, skillCourses && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
140
143
|
className: _style.default.progressInformation,
|
|
@@ -164,11 +167,13 @@ LearnerSkillCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
164
167
|
'aria-label': _propTypes.default.string,
|
|
165
168
|
skillTitle: _propTypes.default.string,
|
|
166
169
|
skillAriaLabel: _propTypes.default.string,
|
|
170
|
+
focus: _propTypes.default.bool,
|
|
167
171
|
metrics: _propTypes.default.shape({
|
|
168
172
|
skillCourses: _propTypes.default.number,
|
|
169
173
|
skillQuestions: _propTypes.default.number,
|
|
170
174
|
completedCourses: _propTypes.default.number
|
|
171
175
|
}),
|
|
176
|
+
review: _propTypes.default.bool,
|
|
172
177
|
onReviewClick: _propTypes.default.func,
|
|
173
178
|
onExploreClick: _propTypes.default.func
|
|
174
179
|
} : {};
|