@coorpacademy/components 11.30.1 → 11.32.1-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 +1 -0
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +21 -12
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/types.d.ts +11 -1
- 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/chip/index.d.ts +37 -0
- package/es/atom/chip/index.d.ts.map +1 -0
- package/es/atom/chip/index.js +85 -0
- package/es/atom/chip/index.js.map +1 -0
- package/es/atom/chip/style.css +65 -0
- package/es/atom/chips/index.d.ts.map +1 -1
- package/es/atom/chips/index.js +1 -0
- package/es/atom/chips/index.js.map +1 -1
- package/es/atom/icon/index.js +2 -2
- package/es/atom/icon/index.js.map +1 -1
- package/es/molecule/base-modal/index.d.ts +33 -0
- package/es/molecule/base-modal/index.d.ts.map +1 -0
- package/es/molecule/base-modal/index.js +142 -0
- package/es/molecule/base-modal/index.js.map +1 -0
- package/es/molecule/base-modal/style.css +125 -0
- package/es/molecule/bulk-progress-bar/index.d.ts.map +1 -1
- package/es/molecule/bulk-progress-bar/index.js +6 -3
- package/es/molecule/bulk-progress-bar/index.js.map +1 -1
- 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 +23 -0
- package/es/molecule/learner-skill-card/index.d.ts.map +1 -0
- package/es/molecule/learner-skill-card/index.js +164 -0
- package/es/molecule/learner-skill-card/index.js.map +1 -0
- package/es/molecule/learner-skill-card/style.css +119 -0
- 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 +16 -11
- package/es/molecule/learning-profile-radar-chart/index.js.map +1 -1
- 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/questions/template/index.d.ts +1 -1
- package/es/molecule/quick-access-card/index.d.ts.map +1 -1
- package/es/molecule/quick-access-card/index.js +5 -1
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/skill-picker-modal/index.d.ts +23 -0
- package/es/molecule/skill-picker-modal/index.d.ts.map +1 -0
- package/es/molecule/skill-picker-modal/index.js +138 -0
- package/es/molecule/skill-picker-modal/index.js.map +1 -0
- package/es/molecule/skill-picker-modal/style.css +28 -0
- package/es/molecule/skills-chart-side-information-item/index.d.ts +1 -1
- package/es/molecule/skills-chart-side-information-item/index.js +1 -1
- package/es/molecule/skills-chart-side-information-item/index.js.map +1 -1
- package/es/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
- package/es/organism/list-items/index.d.ts +2 -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/mobile-login/welcome/index.native.d.ts.map +1 -1
- package/es/template/mobile-login/welcome/index.native.js +5 -1
- package/es/template/mobile-login/welcome/index.native.js.map +1 -1
- package/es/template/my-learning/index.d.ts +34 -0
- package/es/template/my-learning/index.d.ts.map +1 -0
- package/es/template/my-learning/index.js +354 -0
- package/es/template/my-learning/index.js.map +1 -0
- package/es/template/my-learning/style.css +179 -0
- package/es/variables/colors.d.ts +7 -7
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +2 -1
- package/es/variables/colors.js.map +1 -1
- package/es/variables/theme.native.d.ts.map +1 -1
- package/es/variables/theme.native.js +4 -1
- package/es/variables/theme.native.js.map +1 -1
- 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 +22 -12
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/types.d.ts +11 -1
- 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/chip/index.d.ts +37 -0
- package/lib/atom/chip/index.d.ts.map +1 -0
- package/lib/atom/chip/index.js +109 -0
- package/lib/atom/chip/index.js.map +1 -0
- package/lib/atom/chip/style.css +65 -0
- package/lib/atom/chips/index.d.ts.map +1 -1
- package/lib/atom/chips/index.js +1 -0
- package/lib/atom/chips/index.js.map +1 -1
- package/lib/atom/icon/index.js +2 -2
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/molecule/base-modal/index.d.ts +33 -0
- package/lib/molecule/base-modal/index.d.ts.map +1 -0
- package/lib/molecule/base-modal/index.js +158 -0
- package/lib/molecule/base-modal/index.js.map +1 -0
- package/lib/molecule/base-modal/style.css +125 -0
- package/lib/molecule/bulk-progress-bar/index.d.ts.map +1 -1
- package/lib/molecule/bulk-progress-bar/index.js +7 -3
- package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
- 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 +23 -0
- package/lib/molecule/learner-skill-card/index.d.ts.map +1 -0
- package/lib/molecule/learner-skill-card/index.js +182 -0
- package/lib/molecule/learner-skill-card/index.js.map +1 -0
- package/lib/molecule/learner-skill-card/style.css +119 -0
- 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 +16 -11
- package/lib/molecule/learning-profile-radar-chart/index.js.map +1 -1
- 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/questions/template/index.d.ts +1 -1
- package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
- package/lib/molecule/quick-access-card/index.js +7 -1
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/skill-picker-modal/index.d.ts +23 -0
- package/lib/molecule/skill-picker-modal/index.d.ts.map +1 -0
- package/lib/molecule/skill-picker-modal/index.js +156 -0
- package/lib/molecule/skill-picker-modal/index.js.map +1 -0
- package/lib/molecule/skill-picker-modal/style.css +28 -0
- package/lib/molecule/skills-chart-side-information-item/index.d.ts +1 -1
- package/lib/molecule/skills-chart-side-information-item/index.js +1 -1
- package/lib/molecule/skills-chart-side-information-item/index.js.map +1 -1
- package/lib/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
- package/lib/organism/list-items/index.d.ts +2 -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/mobile-login/welcome/index.native.d.ts.map +1 -1
- package/lib/template/mobile-login/welcome/index.native.js +7 -1
- package/lib/template/mobile-login/welcome/index.native.js.map +1 -1
- package/lib/template/my-learning/index.d.ts +34 -0
- package/lib/template/my-learning/index.d.ts.map +1 -0
- package/lib/template/my-learning/index.js +375 -0
- package/lib/template/my-learning/index.js.map +1 -0
- package/lib/template/my-learning/style.css +179 -0
- package/lib/variables/colors.d.ts +7 -7
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +2 -1
- package/lib/variables/colors.js.map +1 -1
- package/lib/variables/theme.native.d.ts.map +1 -1
- package/lib/variables/theme.native.js +4 -1
- package/lib/variables/theme.native.js.map +1 -1
- package/locales/bs/global.json +7 -1
- package/locales/cs/global.json +7 -1
- package/locales/de/global.json +7 -1
- package/locales/en/global.json +31 -0
- package/locales/es/global.json +6 -0
- package/locales/et/global.json +7 -1
- package/locales/fi/global.json +7 -1
- package/locales/fr/global.json +6 -0
- package/locales/hr/global.json +7 -1
- package/locales/hu/global.json +7 -1
- package/locales/hy/global.json +7 -1
- package/locales/it/global.json +6 -0
- package/locales/ja/global.json +7 -1
- package/locales/ko/global.json +7 -1
- package/locales/nl/global.json +6 -0
- package/locales/pl/global.json +7 -1
- package/locales/pt/global.json +7 -1
- package/locales/ro/global.json +7 -1
- package/locales/ru/global.json +7 -1
- package/locales/sk/global.json +7 -1
- package/locales/sl/global.json +7 -1
- package/locales/sv/global.json +7 -1
- package/locales/tl/global.json +7 -1
- package/locales/tr/global.json +7 -1
- package/locales/uk/global.json +7 -1
- package/locales/vi/global.json +7 -1
- package/locales/zh/global.json +7 -1
- package/locales/zh_TW/global.json +7 -1
- package/package.json +3 -3
|
@@ -22,6 +22,7 @@ declare namespace BrandUpdate {
|
|
|
22
22
|
seeMyPlatform: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
23
|
type: PropTypes.Requireable<string>;
|
|
24
24
|
label: PropTypes.Requireable<string>;
|
|
25
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
25
26
|
'aria-label': PropTypes.Requireable<string>;
|
|
26
27
|
'data-name': PropTypes.Requireable<string>;
|
|
27
28
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -42,6 +43,7 @@ declare namespace BrandUpdate {
|
|
|
42
43
|
logOut: PropTypes.Requireable<PropTypes.InferProps<{
|
|
43
44
|
type: PropTypes.Requireable<string>;
|
|
44
45
|
label: PropTypes.Requireable<string>;
|
|
46
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
45
47
|
'aria-label': PropTypes.Requireable<string>;
|
|
46
48
|
'data-name': PropTypes.Requireable<string>;
|
|
47
49
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -62,6 +64,7 @@ declare namespace BrandUpdate {
|
|
|
62
64
|
globalAnalytics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
63
65
|
type: PropTypes.Requireable<string>;
|
|
64
66
|
label: PropTypes.Requireable<string>;
|
|
67
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
65
68
|
'aria-label': PropTypes.Requireable<string>;
|
|
66
69
|
'data-name': PropTypes.Requireable<string>;
|
|
67
70
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -82,6 +85,7 @@ declare namespace BrandUpdate {
|
|
|
82
85
|
platformList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
83
86
|
type: PropTypes.Requireable<string>;
|
|
84
87
|
label: PropTypes.Requireable<string>;
|
|
88
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
85
89
|
'aria-label': PropTypes.Requireable<string>;
|
|
86
90
|
'data-name': PropTypes.Requireable<string>;
|
|
87
91
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -308,6 +312,7 @@ declare namespace BrandUpdate {
|
|
|
308
312
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
309
313
|
type: PropTypes.Requireable<string>;
|
|
310
314
|
label: PropTypes.Requireable<string>;
|
|
315
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
311
316
|
'aria-label': PropTypes.Requireable<string>;
|
|
312
317
|
'data-name': PropTypes.Requireable<string>;
|
|
313
318
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -439,6 +444,7 @@ declare namespace BrandUpdate {
|
|
|
439
444
|
componentType: PropTypes.Requireable<string>;
|
|
440
445
|
type: PropTypes.Requireable<string>;
|
|
441
446
|
label: PropTypes.Requireable<string>;
|
|
447
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
442
448
|
'aria-label': PropTypes.Requireable<string>;
|
|
443
449
|
'data-name': PropTypes.Requireable<string>;
|
|
444
450
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -546,6 +552,7 @@ declare namespace BrandUpdate {
|
|
|
546
552
|
componentType: PropTypes.Requireable<string>;
|
|
547
553
|
type: PropTypes.Requireable<string>;
|
|
548
554
|
label: PropTypes.Requireable<string>;
|
|
555
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
549
556
|
'aria-label': PropTypes.Requireable<string>;
|
|
550
557
|
'data-name': PropTypes.Requireable<string>;
|
|
551
558
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -605,6 +612,7 @@ declare namespace BrandUpdate {
|
|
|
605
612
|
firstButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
606
613
|
type: PropTypes.Requireable<string>;
|
|
607
614
|
label: PropTypes.Requireable<string>;
|
|
615
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
608
616
|
'aria-label': PropTypes.Requireable<string>;
|
|
609
617
|
'data-name': PropTypes.Requireable<string>;
|
|
610
618
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -625,6 +633,7 @@ declare namespace BrandUpdate {
|
|
|
625
633
|
secondButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
626
634
|
type: PropTypes.Requireable<string>;
|
|
627
635
|
label: PropTypes.Requireable<string>;
|
|
636
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
628
637
|
'aria-label': PropTypes.Requireable<string>;
|
|
629
638
|
'data-name': PropTypes.Requireable<string>;
|
|
630
639
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -785,6 +794,7 @@ declare namespace BrandUpdate {
|
|
|
785
794
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
786
795
|
type: PropTypes.Requireable<string>;
|
|
787
796
|
label: PropTypes.Requireable<string>;
|
|
797
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
788
798
|
'aria-label': PropTypes.Requireable<string>;
|
|
789
799
|
'data-name': PropTypes.Requireable<string>;
|
|
790
800
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -916,6 +926,7 @@ declare namespace BrandUpdate {
|
|
|
916
926
|
componentType: PropTypes.Requireable<string>;
|
|
917
927
|
type: PropTypes.Requireable<string>;
|
|
918
928
|
label: PropTypes.Requireable<string>;
|
|
929
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
919
930
|
'aria-label': PropTypes.Requireable<string>;
|
|
920
931
|
'data-name': PropTypes.Requireable<string>;
|
|
921
932
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -6,6 +6,7 @@ declare const _default: {
|
|
|
6
6
|
seeMyPlatform: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
7
|
type: PropTypes.Requireable<string>;
|
|
8
8
|
label: PropTypes.Requireable<string>;
|
|
9
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
9
10
|
'aria-label': PropTypes.Requireable<string>;
|
|
10
11
|
'data-name': PropTypes.Requireable<string>;
|
|
11
12
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -26,6 +27,7 @@ declare const _default: {
|
|
|
26
27
|
logOut: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
28
|
type: PropTypes.Requireable<string>;
|
|
28
29
|
label: PropTypes.Requireable<string>;
|
|
30
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
29
31
|
'aria-label': PropTypes.Requireable<string>;
|
|
30
32
|
'data-name': PropTypes.Requireable<string>;
|
|
31
33
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -46,6 +48,7 @@ declare const _default: {
|
|
|
46
48
|
globalAnalytics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
47
49
|
type: PropTypes.Requireable<string>;
|
|
48
50
|
label: PropTypes.Requireable<string>;
|
|
51
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
49
52
|
'aria-label': PropTypes.Requireable<string>;
|
|
50
53
|
'data-name': PropTypes.Requireable<string>;
|
|
51
54
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -66,6 +69,7 @@ declare const _default: {
|
|
|
66
69
|
platformList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
67
70
|
type: PropTypes.Requireable<string>;
|
|
68
71
|
label: PropTypes.Requireable<string>;
|
|
72
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
69
73
|
'aria-label': PropTypes.Requireable<string>;
|
|
70
74
|
'data-name': PropTypes.Requireable<string>;
|
|
71
75
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -7,6 +7,7 @@ declare function createLayout(Template: any): {
|
|
|
7
7
|
seeMyPlatform: PropTypes.Requireable<PropTypes.InferProps<{
|
|
8
8
|
type: PropTypes.Requireable<string>;
|
|
9
9
|
label: PropTypes.Requireable<string>;
|
|
10
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
11
|
'aria-label': PropTypes.Requireable<string>;
|
|
11
12
|
'data-name': PropTypes.Requireable<string>;
|
|
12
13
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -27,6 +28,7 @@ declare function createLayout(Template: any): {
|
|
|
27
28
|
logOut: PropTypes.Requireable<PropTypes.InferProps<{
|
|
28
29
|
type: PropTypes.Requireable<string>;
|
|
29
30
|
label: PropTypes.Requireable<string>;
|
|
31
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
30
32
|
'aria-label': PropTypes.Requireable<string>;
|
|
31
33
|
'data-name': PropTypes.Requireable<string>;
|
|
32
34
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -47,6 +49,7 @@ declare function createLayout(Template: any): {
|
|
|
47
49
|
globalAnalytics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
48
50
|
type: PropTypes.Requireable<string>;
|
|
49
51
|
label: PropTypes.Requireable<string>;
|
|
52
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
50
53
|
'aria-label': PropTypes.Requireable<string>;
|
|
51
54
|
'data-name': PropTypes.Requireable<string>;
|
|
52
55
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -67,6 +70,7 @@ declare function createLayout(Template: any): {
|
|
|
67
70
|
platformList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
68
71
|
type: PropTypes.Requireable<string>;
|
|
69
72
|
label: PropTypes.Requireable<string>;
|
|
73
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
70
74
|
'aria-label': PropTypes.Requireable<string>;
|
|
71
75
|
'data-name': PropTypes.Requireable<string>;
|
|
72
76
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/layout/index.js"],"names":[],"mappings":";AAMA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/layout/index.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBC"}
|
|
@@ -82,6 +82,7 @@ declare namespace Dashboard {
|
|
|
82
82
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
83
83
|
type: PropTypes.Requireable<string>;
|
|
84
84
|
label: PropTypes.Requireable<string>;
|
|
85
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
85
86
|
'aria-label': PropTypes.Requireable<string>;
|
|
86
87
|
'data-name': PropTypes.Requireable<string>;
|
|
87
88
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -213,6 +214,7 @@ declare namespace Dashboard {
|
|
|
213
214
|
componentType: PropTypes.Requireable<string>;
|
|
214
215
|
type: PropTypes.Requireable<string>;
|
|
215
216
|
label: PropTypes.Requireable<string>;
|
|
217
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
216
218
|
'aria-label': PropTypes.Requireable<string>;
|
|
217
219
|
'data-name': PropTypes.Requireable<string>;
|
|
218
220
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -352,6 +354,7 @@ declare namespace Dashboard {
|
|
|
352
354
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
353
355
|
type: PropTypes.Requireable<string>;
|
|
354
356
|
label: PropTypes.Requireable<string>;
|
|
357
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
355
358
|
'aria-label': PropTypes.Requireable<string>;
|
|
356
359
|
'data-name': PropTypes.Requireable<string>;
|
|
357
360
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -483,6 +486,7 @@ declare namespace Dashboard {
|
|
|
483
486
|
componentType: PropTypes.Requireable<string>;
|
|
484
487
|
type: PropTypes.Requireable<string>;
|
|
485
488
|
label: PropTypes.Requireable<string>;
|
|
489
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
486
490
|
'aria-label': PropTypes.Requireable<string>;
|
|
487
491
|
'data-name': PropTypes.Requireable<string>;
|
|
488
492
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -254,6 +254,7 @@ declare namespace SearchPage {
|
|
|
254
254
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
255
255
|
type: PropTypes.Requireable<string>;
|
|
256
256
|
label: PropTypes.Requireable<string>;
|
|
257
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
257
258
|
'aria-label': PropTypes.Requireable<string>;
|
|
258
259
|
'data-name': PropTypes.Requireable<string>;
|
|
259
260
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -385,6 +386,7 @@ declare namespace SearchPage {
|
|
|
385
386
|
componentType: PropTypes.Requireable<string>;
|
|
386
387
|
type: PropTypes.Requireable<string>;
|
|
387
388
|
label: PropTypes.Requireable<string>;
|
|
389
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
388
390
|
'aria-label': PropTypes.Requireable<string>;
|
|
389
391
|
'data-name': PropTypes.Requireable<string>;
|
|
390
392
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -99,6 +99,7 @@ declare namespace ExternalCourse {
|
|
|
99
99
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
100
100
|
type: PropTypes.Requireable<string>;
|
|
101
101
|
label: PropTypes.Requireable<string>;
|
|
102
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
102
103
|
'aria-label': PropTypes.Requireable<string>;
|
|
103
104
|
'data-name': PropTypes.Requireable<string>;
|
|
104
105
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -230,6 +231,7 @@ declare namespace ExternalCourse {
|
|
|
230
231
|
componentType: PropTypes.Requireable<string>;
|
|
231
232
|
type: PropTypes.Requireable<string>;
|
|
232
233
|
label: PropTypes.Requireable<string>;
|
|
234
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
233
235
|
'aria-label': PropTypes.Requireable<string>;
|
|
234
236
|
'data-name': PropTypes.Requireable<string>;
|
|
235
237
|
'data-testid': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"names":[],"mappings":";AAiLA,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,yBAAyB,EAAE,MAAM,IAAI,CAAC;IACtC,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,OAAO,UAAW,KAAK,uBAuI5B,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -6,6 +6,10 @@ import { useAnimateProp, useTranslateY } from '@coorpacademy/react-native-animat
|
|
|
6
6
|
import Touchable from '../../../hoc/touchable/index.native';
|
|
7
7
|
import { useTemplateContext } from '../../app-review/template-context';
|
|
8
8
|
import Text from '../../../atom/text/index.native';
|
|
9
|
+
import { COLORS } from '../../../variables/colors';
|
|
10
|
+
const {
|
|
11
|
+
cm_primary_blue
|
|
12
|
+
} = COLORS;
|
|
9
13
|
|
|
10
14
|
const createStyleSheet = theme => StyleSheet.create({
|
|
11
15
|
wrapper: {
|
|
@@ -224,7 +228,7 @@ const Welcome = props => {
|
|
|
224
228
|
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
225
229
|
style: [styleSheet.gradients, translateGradients.animatedStyle]
|
|
226
230
|
}, /*#__PURE__*/React.createElement(LinearGradient, {
|
|
227
|
-
colors: [
|
|
231
|
+
colors: [cm_primary_blue, '#fff'],
|
|
228
232
|
locations: [0, 0.95],
|
|
229
233
|
style: styleSheet.gradient
|
|
230
234
|
}), /*#__PURE__*/React.createElement(LinearGradient, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useEffect","useRef","useState","Animated","StyleSheet","View","LinearGradient","NovaCompositionCoorpacademyLogoCoorp","LogoCoorp","NovaCompositionCoorpacademyQrCode","QrCodeIcon","NovaCompositionCoorpacademyEmail","MailIcon","useAnimateProp","useTranslateY","Touchable","useTemplateContext","Text","createStyleSheet","theme","create","wrapper","top","bottom","left","right","flex","justifyContent","alignItems","paddingHorizontal","content","width","gradients","position","gradient","opacity","transform","rotate","gradient2","animatedLogoWrapper","animatedLogo","height","logo","padding","logoBG","backgroundColor","title","color","fontWeight","fontSize","lineHeight","paddingVertical","description","actions","buttons","button","marginVertical","flexDirection","borderRadius","overflow","ctaQrCode","colors","cta","ctaQrCodeText","marginLeft","qrCodeIcon","fill","ctaReceiveMail","ctaReceiveMailText","mailIcon","help","titleHelp","ctaHelp","textDecorationLine","Welcome","props","locales","onDemoPress","onQRCodeButtonPress","onHelpPress","onReceiveEmailButtonPress","styleSheet","setStylesheet","translateGradients","fromValue","toValue","duration","delay","translateContent","fadeInContent","property","fadeOutStartLogo","fadeInFinalLogo","scaleAnim","Value","current","interpolateScale","interpolate","inputRange","outputRange","_stylesheet","start","animatedScale","timing","useNativeDriver","animatedStyle","scale"],"sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"sourcesContent":["import React, {useEffect, useRef, useState} from 'react';\nimport {Animated, StyleSheet, TextStyle, View, ViewStyle} from 'react-native';\nimport LinearGradient from 'react-native-linear-gradient';\nimport {\n NovaCompositionCoorpacademyLogoCoorp as LogoCoorp,\n NovaCompositionCoorpacademyQrCode as QrCodeIcon,\n NovaCompositionCoorpacademyEmail as MailIcon\n} from '@coorpacademy/nova-icons';\nimport {useAnimateProp, useTranslateY} from '@coorpacademy/react-native-animation';\nimport Touchable from '../../../hoc/touchable/index.native';\nimport {useTemplateContext} from '../../app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\nimport Text from '../../../atom/text/index.native';\n\ntype StyleSheetType = {\n wrapper: ViewStyle;\n animatedLogoWrapper: ViewStyle;\n animatedLogo: ViewStyle;\n logo: ViewStyle;\n logoBG: ViewStyle;\n content: ViewStyle;\n gradients: ViewStyle;\n gradient: ViewStyle;\n gradient2: ViewStyle;\n title: TextStyle;\n description: TextStyle;\n actions: ViewStyle;\n buttons: ViewStyle;\n button: ViewStyle;\n qrCodeIcon: ViewStyle;\n mailIcon: ViewStyle;\n ctaQrCode: ViewStyle;\n ctaQrCodeText: TextStyle;\n ctaReceiveMail: ViewStyle;\n ctaReceiveMailText: TextStyle;\n help: ViewStyle;\n titleHelp: TextStyle;\n ctaHelp: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n wrapper: {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n flex: 1,\n justifyContent: 'space-around',\n alignItems: 'center',\n paddingHorizontal: 24\n },\n content: {\n width: '100%',\n alignItems: 'flex-start'\n },\n gradients: {\n position: 'absolute',\n top: 400,\n bottom: 400,\n left: 0,\n right: 0,\n flex: 1\n },\n gradient: {\n position: 'absolute',\n top: -730,\n bottom: 0,\n left: -380,\n right: -380,\n opacity: 1,\n transform: [{rotate: '35deg'}]\n },\n gradient2: {\n position: 'absolute',\n top: -630,\n bottom: -200,\n left: -300,\n right: -400,\n opacity: 0.6,\n transform: [{rotate: '-35deg'}]\n },\n animatedLogoWrapper: {\n alignItems: 'center'\n },\n animatedLogo: {\n position: 'absolute',\n width: 77,\n height: 100\n },\n logo: {\n padding: 100\n },\n logoBG: {\n backgroundColor: '#fff',\n top: 20,\n width: 60,\n height: 60\n },\n title: {\n color: '#1D1D2B',\n fontWeight: '600',\n fontSize: 28,\n lineHeight: 36,\n paddingVertical: 8\n },\n description: {\n color: '#1D1D2B',\n fontWeight: '400',\n fontSize: 17,\n lineHeight: 24,\n paddingVertical: 8\n },\n actions: {\n width: '100%'\n },\n buttons: {\n paddingVertical: 20,\n alignItems: 'center'\n },\n button: {\n paddingVertical: 12,\n marginVertical: 4,\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n borderRadius: 12,\n alignItems: 'center',\n overflow: 'hidden'\n },\n ctaQrCode: {\n backgroundColor: theme.colors.cta\n },\n ctaQrCodeText: {\n marginLeft: 8,\n color: '#fff',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n qrCodeIcon: {\n fill: '#fff',\n height: 14,\n width: 14\n },\n ctaReceiveMail: {\n backgroundColor: '#eaeaeb'\n },\n ctaReceiveMailText: {\n marginLeft: 8,\n color: '#1D1D2B',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n mailIcon: {\n fill: '#1D1D2B',\n height: 12,\n width: 16\n },\n help: {\n flexDirection: 'row',\n justifyContent: 'center'\n },\n titleHelp: {\n color: '#9999A8'\n },\n ctaHelp: {\n marginLeft: 5,\n textDecorationLine: 'underline',\n color: '#9999A8'\n }\n });\n\nexport type Props = {\n onDemoPress: () => void;\n onHelpPress: () => void;\n onQRCodeButtonPress: () => void;\n onReceiveEmailButtonPress: () => void;\n locales: {\n title: string;\n description: string;\n ctaQrCode: string;\n ctaReceiveMail: string;\n titleHelp: string;\n ctaHelp: string;\n };\n};\n\nconst Welcome = (props: Props) => {\n const {locales, onDemoPress, onQRCodeButtonPress, onHelpPress, onReceiveEmailButtonPress} = props;\n const {theme} = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n\n const translateGradients = useTranslateY({\n fromValue: 0,\n toValue: -200,\n duration: 300,\n delay: 750\n });\n\n const translateContent = useTranslateY({\n fromValue: 170,\n toValue: 0,\n duration: 450,\n delay: 750\n });\n\n const fadeInContent = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 650,\n delay: 750\n });\n\n const fadeOutStartLogo = useAnimateProp({\n property: 'opacity',\n fromValue: 1,\n toValue: 0,\n duration: 450,\n delay: 1000\n });\n\n const fadeInFinalLogo = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 250,\n delay: 900\n });\n\n const scaleAnim = useRef<Animated.Value>(new Animated.Value(0)).current;\n const interpolateScale = scaleAnim.interpolate({\n inputRange: [0, 0.4, 0.5, 0.6, 1],\n outputRange: [1, 1.7, 1.7, 1.7, 1]\n });\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n useEffect(() => {\n fadeInContent.start();\n fadeInFinalLogo.start();\n fadeOutStartLogo.start();\n translateContent.start();\n translateGradients.start();\n\n const animatedScale = Animated.timing(scaleAnim, {\n toValue: 1,\n duration: 1000,\n useNativeDriver: true\n });\n\n animatedScale.start();\n\n // on mount only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!styleSheet) {\n return null;\n }\n return (\n <Animated.View style={[styleSheet.wrapper, translateContent.animatedStyle]} testID=\"welcome\">\n <Animated.View style={[styleSheet.gradients, translateGradients.animatedStyle]}>\n <LinearGradient\n colors={['#0061FF', '#fff']}\n locations={[0, 0.95]}\n style={styleSheet.gradient}\n />\n <LinearGradient\n colors={['#2199AB', '#fff']}\n locations={[0, 0.95]}\n style={styleSheet.gradient2}\n />\n </Animated.View>\n\n <Touchable onLongPress={onDemoPress} style={styleSheet.logo}>\n <Animated.View\n style={[styleSheet.animatedLogoWrapper, {transform: [{scale: interpolateScale}]}]}\n >\n <Animated.View style={[styleSheet.logoBG, fadeInFinalLogo.animatedStyle]} />\n <Animated.View style={[styleSheet.animatedLogo, fadeInFinalLogo.animatedStyle]}>\n <LogoCoorp fill=\"#0061FF\" />\n </Animated.View>\n <Animated.View style={[styleSheet.animatedLogo, fadeOutStartLogo.animatedStyle]}>\n <LogoCoorp fill=\"#fff\" />\n </Animated.View>\n </Animated.View>\n </Touchable>\n <Animated.View style={[styleSheet.content, fadeInContent.animatedStyle]}>\n <Text style={styleSheet.title}>{locales.title}</Text>\n <Text style={styleSheet.description}>{locales.description}</Text>\n\n <View style={styleSheet.actions}>\n <View style={styleSheet.buttons}>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaQrCode]}\n onPress={onQRCodeButtonPress}\n testID=\"qr-code-button\"\n >\n <QrCodeIcon style={styleSheet.qrCodeIcon} />\n <Text style={styleSheet.ctaQrCodeText}>{locales.ctaQrCode}</Text>\n </Touchable>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaReceiveMail]}\n onPress={onReceiveEmailButtonPress}\n testID=\"receive-email-button\"\n >\n <MailIcon style={styleSheet.mailIcon} />\n <Text style={styleSheet.ctaReceiveMailText}>{locales.ctaReceiveMail}</Text>\n </Touchable>\n </View>\n <Touchable onPress={onHelpPress} style={styleSheet.help}>\n <Text style={styleSheet.titleHelp}>{locales.titleHelp}</Text>\n <Text style={styleSheet.ctaHelp}>{locales.ctaHelp}</Text>\n </Touchable>\n </View>\n </Animated.View>\n </Animated.View>\n );\n};\n\nexport default Welcome;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,SAAf,EAA0BC,MAA1B,EAAkCC,QAAlC,QAAiD,OAAjD;AACA,SAAQC,QAAR,EAAkBC,UAAlB,EAAyCC,IAAzC,QAA+D,cAA/D;AACA,OAAOC,cAAP,MAA2B,8BAA3B;AACA,SACEC,oCAAoC,IAAIC,SAD1C,EAEEC,iCAAiC,IAAIC,UAFvC,EAGEC,gCAAgC,IAAIC,QAHtC,QAIO,0BAJP;AAKA,SAAQC,cAAR,EAAwBC,aAAxB,QAA4C,sCAA5C;AACA,OAAOC,SAAP,MAAsB,qCAAtB;AACA,SAAQC,kBAAR,QAAiC,mCAAjC;AAEA,OAAOC,IAAP,MAAiB,iCAAjB;;AA4BA,MAAMC,gBAAgB,GAAIC,KAAD,IACvBf,UAAU,CAACgB,MAAX,CAAkB;EAChBC,OAAO,EAAE;IACPC,GAAG,EAAE,CADE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D,CANF,CATF,CADF,eAmBE,oBAAC,SAAD;IAAW,OAAO,EAAEY,WAApB;IAAiC,KAAK,EAAEE,UAAU,CAACX;EAAnD,gBACE,oBAAC,IAAD;IAAM,KAAK,EAAEW,UAAU,CAACV;EAAxB,GAAoCK,OAAO,CAACL,SAA5C,CADF,eAEE,oBAAC,IAAD;IAAM,KAAK,EAAEU,UAAU,CAACT;EAAxB,GAAkCI,OAAO,CAACJ,OAA1C,CAFF,CAnBF,CAJF,CA3BF,CADF;AA2DD,CAvID;;AAyIA,eAAeE,OAAf"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useEffect","useRef","useState","Animated","StyleSheet","View","LinearGradient","NovaCompositionCoorpacademyLogoCoorp","LogoCoorp","NovaCompositionCoorpacademyQrCode","QrCodeIcon","NovaCompositionCoorpacademyEmail","MailIcon","useAnimateProp","useTranslateY","Touchable","useTemplateContext","Text","COLORS","cm_primary_blue","createStyleSheet","theme","create","wrapper","top","bottom","left","right","flex","justifyContent","alignItems","paddingHorizontal","content","width","gradients","position","gradient","opacity","transform","rotate","gradient2","animatedLogoWrapper","animatedLogo","height","logo","padding","logoBG","backgroundColor","title","color","fontWeight","fontSize","lineHeight","paddingVertical","description","actions","buttons","button","marginVertical","flexDirection","borderRadius","overflow","ctaQrCode","colors","cta","ctaQrCodeText","marginLeft","qrCodeIcon","fill","ctaReceiveMail","ctaReceiveMailText","mailIcon","help","titleHelp","ctaHelp","textDecorationLine","Welcome","props","locales","onDemoPress","onQRCodeButtonPress","onHelpPress","onReceiveEmailButtonPress","styleSheet","setStylesheet","translateGradients","fromValue","toValue","duration","delay","translateContent","fadeInContent","property","fadeOutStartLogo","fadeInFinalLogo","scaleAnim","Value","current","interpolateScale","interpolate","inputRange","outputRange","_stylesheet","start","animatedScale","timing","useNativeDriver","animatedStyle","scale"],"sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"sourcesContent":["import React, {useEffect, useRef, useState} from 'react';\nimport {Animated, StyleSheet, TextStyle, View, ViewStyle} from 'react-native';\nimport LinearGradient from 'react-native-linear-gradient';\nimport {\n NovaCompositionCoorpacademyLogoCoorp as LogoCoorp,\n NovaCompositionCoorpacademyQrCode as QrCodeIcon,\n NovaCompositionCoorpacademyEmail as MailIcon\n} from '@coorpacademy/nova-icons';\nimport {useAnimateProp, useTranslateY} from '@coorpacademy/react-native-animation';\nimport Touchable from '../../../hoc/touchable/index.native';\nimport {useTemplateContext} from '../../app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\nimport Text from '../../../atom/text/index.native';\nimport {COLORS} from '../../../variables/colors';\n\nconst {cm_primary_blue} = COLORS;\n\ntype StyleSheetType = {\n wrapper: ViewStyle;\n animatedLogoWrapper: ViewStyle;\n animatedLogo: ViewStyle;\n logo: ViewStyle;\n logoBG: ViewStyle;\n content: ViewStyle;\n gradients: ViewStyle;\n gradient: ViewStyle;\n gradient2: ViewStyle;\n title: TextStyle;\n description: TextStyle;\n actions: ViewStyle;\n buttons: ViewStyle;\n button: ViewStyle;\n qrCodeIcon: ViewStyle;\n mailIcon: ViewStyle;\n ctaQrCode: ViewStyle;\n ctaQrCodeText: TextStyle;\n ctaReceiveMail: ViewStyle;\n ctaReceiveMailText: TextStyle;\n help: ViewStyle;\n titleHelp: TextStyle;\n ctaHelp: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n wrapper: {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n flex: 1,\n justifyContent: 'space-around',\n alignItems: 'center',\n paddingHorizontal: 24\n },\n content: {\n width: '100%',\n alignItems: 'flex-start'\n },\n gradients: {\n position: 'absolute',\n top: 400,\n bottom: 400,\n left: 0,\n right: 0,\n flex: 1\n },\n gradient: {\n position: 'absolute',\n top: -730,\n bottom: 0,\n left: -380,\n right: -380,\n opacity: 1,\n transform: [{rotate: '35deg'}]\n },\n gradient2: {\n position: 'absolute',\n top: -630,\n bottom: -200,\n left: -300,\n right: -400,\n opacity: 0.6,\n transform: [{rotate: '-35deg'}]\n },\n animatedLogoWrapper: {\n alignItems: 'center'\n },\n animatedLogo: {\n position: 'absolute',\n width: 77,\n height: 100\n },\n logo: {\n padding: 100\n },\n logoBG: {\n backgroundColor: '#fff',\n top: 20,\n width: 60,\n height: 60\n },\n title: {\n color: '#1D1D2B',\n fontWeight: '600',\n fontSize: 28,\n lineHeight: 36,\n paddingVertical: 8\n },\n description: {\n color: '#1D1D2B',\n fontWeight: '400',\n fontSize: 17,\n lineHeight: 24,\n paddingVertical: 8\n },\n actions: {\n width: '100%'\n },\n buttons: {\n paddingVertical: 20,\n alignItems: 'center'\n },\n button: {\n paddingVertical: 12,\n marginVertical: 4,\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n borderRadius: 12,\n alignItems: 'center',\n overflow: 'hidden'\n },\n ctaQrCode: {\n backgroundColor: theme.colors.cta\n },\n ctaQrCodeText: {\n marginLeft: 8,\n color: '#fff',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n qrCodeIcon: {\n fill: '#fff',\n height: 14,\n width: 14\n },\n ctaReceiveMail: {\n backgroundColor: '#eaeaeb'\n },\n ctaReceiveMailText: {\n marginLeft: 8,\n color: '#1D1D2B',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n mailIcon: {\n fill: '#1D1D2B',\n height: 12,\n width: 16\n },\n help: {\n flexDirection: 'row',\n justifyContent: 'center'\n },\n titleHelp: {\n color: '#9999A8'\n },\n ctaHelp: {\n marginLeft: 5,\n textDecorationLine: 'underline',\n color: '#9999A8'\n }\n });\n\nexport type Props = {\n onDemoPress: () => void;\n onHelpPress: () => void;\n onQRCodeButtonPress: () => void;\n onReceiveEmailButtonPress: () => void;\n locales: {\n title: string;\n description: string;\n ctaQrCode: string;\n ctaReceiveMail: string;\n titleHelp: string;\n ctaHelp: string;\n };\n};\n\nconst Welcome = (props: Props) => {\n const {locales, onDemoPress, onQRCodeButtonPress, onHelpPress, onReceiveEmailButtonPress} = props;\n const {theme} = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n\n const translateGradients = useTranslateY({\n fromValue: 0,\n toValue: -200,\n duration: 300,\n delay: 750\n });\n\n const translateContent = useTranslateY({\n fromValue: 170,\n toValue: 0,\n duration: 450,\n delay: 750\n });\n\n const fadeInContent = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 650,\n delay: 750\n });\n\n const fadeOutStartLogo = useAnimateProp({\n property: 'opacity',\n fromValue: 1,\n toValue: 0,\n duration: 450,\n delay: 1000\n });\n\n const fadeInFinalLogo = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 250,\n delay: 900\n });\n\n const scaleAnim = useRef<Animated.Value>(new Animated.Value(0)).current;\n const interpolateScale = scaleAnim.interpolate({\n inputRange: [0, 0.4, 0.5, 0.6, 1],\n outputRange: [1, 1.7, 1.7, 1.7, 1]\n });\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n useEffect(() => {\n fadeInContent.start();\n fadeInFinalLogo.start();\n fadeOutStartLogo.start();\n translateContent.start();\n translateGradients.start();\n\n const animatedScale = Animated.timing(scaleAnim, {\n toValue: 1,\n duration: 1000,\n useNativeDriver: true\n });\n\n animatedScale.start();\n\n // on mount only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!styleSheet) {\n return null;\n }\n return (\n <Animated.View style={[styleSheet.wrapper, translateContent.animatedStyle]} testID=\"welcome\">\n <Animated.View style={[styleSheet.gradients, translateGradients.animatedStyle]}>\n <LinearGradient\n colors={[cm_primary_blue, '#fff']}\n locations={[0, 0.95]}\n style={styleSheet.gradient}\n />\n <LinearGradient\n colors={['#2199AB', '#fff']}\n locations={[0, 0.95]}\n style={styleSheet.gradient2}\n />\n </Animated.View>\n\n <Touchable onLongPress={onDemoPress} style={styleSheet.logo}>\n <Animated.View\n style={[styleSheet.animatedLogoWrapper, {transform: [{scale: interpolateScale}]}]}\n >\n <Animated.View style={[styleSheet.logoBG, fadeInFinalLogo.animatedStyle]} />\n <Animated.View style={[styleSheet.animatedLogo, fadeInFinalLogo.animatedStyle]}>\n <LogoCoorp fill=\"#0061FF\" />\n </Animated.View>\n <Animated.View style={[styleSheet.animatedLogo, fadeOutStartLogo.animatedStyle]}>\n <LogoCoorp fill=\"#fff\" />\n </Animated.View>\n </Animated.View>\n </Touchable>\n <Animated.View style={[styleSheet.content, fadeInContent.animatedStyle]}>\n <Text style={styleSheet.title}>{locales.title}</Text>\n <Text style={styleSheet.description}>{locales.description}</Text>\n\n <View style={styleSheet.actions}>\n <View style={styleSheet.buttons}>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaQrCode]}\n onPress={onQRCodeButtonPress}\n testID=\"qr-code-button\"\n >\n <QrCodeIcon style={styleSheet.qrCodeIcon} />\n <Text style={styleSheet.ctaQrCodeText}>{locales.ctaQrCode}</Text>\n </Touchable>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaReceiveMail]}\n onPress={onReceiveEmailButtonPress}\n testID=\"receive-email-button\"\n >\n <MailIcon style={styleSheet.mailIcon} />\n <Text style={styleSheet.ctaReceiveMailText}>{locales.ctaReceiveMail}</Text>\n </Touchable>\n </View>\n <Touchable onPress={onHelpPress} style={styleSheet.help}>\n <Text style={styleSheet.titleHelp}>{locales.titleHelp}</Text>\n <Text style={styleSheet.ctaHelp}>{locales.ctaHelp}</Text>\n </Touchable>\n </View>\n </Animated.View>\n </Animated.View>\n );\n};\n\nexport default Welcome;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,SAAf,EAA0BC,MAA1B,EAAkCC,QAAlC,QAAiD,OAAjD;AACA,SAAQC,QAAR,EAAkBC,UAAlB,EAAyCC,IAAzC,QAA+D,cAA/D;AACA,OAAOC,cAAP,MAA2B,8BAA3B;AACA,SACEC,oCAAoC,IAAIC,SAD1C,EAEEC,iCAAiC,IAAIC,UAFvC,EAG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AAD;IAAM,KAAK,EAAEgB,UAAU,CAAClB;EAAxB,GAAwCa,OAAO,CAAChB,SAAhD,CANF,CADF,eASE,oBAAC,SAAD;IACE,KAAK,EAAE,CAACqB,UAAU,CAAC1B,MAAZ,EAAoB0B,UAAU,CAACd,cAA/B,CADT;IAEE,OAAO,EAAEa,yBAFX;IAGE,MAAM,EAAC;EAHT,gBAKE,oBAAC,QAAD;IAAU,KAAK,EAAEC,UAAU,CAACZ;EAA5B,EALF,eAME,oBAAC,IAAD;IAAM,KAAK,EAAEY,UAAU,CAACb;EAAxB,GAA6CQ,OAAO,CAACT,cAArD,CANF,CATF,CADF,eAmBE,oBAAC,SAAD;IAAW,OAAO,EAAEY,WAApB;IAAiC,KAAK,EAAEE,UAAU,CAACX;EAAnD,gBACE,oBAAC,IAAD;IAAM,KAAK,EAAEW,UAAU,CAACV;EAAxB,GAAoCK,OAAO,CAACL,SAA5C,CADF,eAEE,oBAAC,IAAD;IAAM,KAAK,EAAEU,UAAU,CAACT;EAAxB,GAAkCI,OAAO,CAACJ,OAA1C,CAFF,CAnBF,CAJF,CA3BF,CADF;AA2DD,CAvID;;AAyIA,eAAeE,OAAf"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default MyLearning;
|
|
2
|
+
declare function MyLearning(props: any, context: any): JSX.Element;
|
|
3
|
+
declare namespace MyLearning {
|
|
4
|
+
namespace contextTypes {
|
|
5
|
+
const translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
|
+
}
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
const skills: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
9
|
+
const selectedSkills: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
10
|
+
const skillsStats: PropTypes.Requireable<{
|
|
11
|
+
[x: string]: PropTypes.InferProps<{
|
|
12
|
+
score: PropTypes.Requireable<number>;
|
|
13
|
+
courses: PropTypes.Requireable<number>;
|
|
14
|
+
coursesCompleted: PropTypes.Requireable<number>;
|
|
15
|
+
questionsAnswered: PropTypes.Requireable<number>;
|
|
16
|
+
learningHours: PropTypes.Requireable<number>;
|
|
17
|
+
}> | null | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
const skillsFilters: PropTypes.Requireable<{
|
|
20
|
+
[x: string]: PropTypes.InferProps<{
|
|
21
|
+
review: any;
|
|
22
|
+
}> | null | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
const skillsLocales: PropTypes.Requireable<{
|
|
25
|
+
[x: string]: string | null | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
const isLoading: PropTypes.Requireable<boolean>;
|
|
28
|
+
const onSkillFocusConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
const onReviewSkill: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
const onExploreSkill: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
import PropTypes from "prop-types";
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/my-learning/index.js"],"names":[],"mappings":";AAuGA,mEAyRC"}
|