@coorpacademy/components 11.38.6-alpha.27 → 11.38.6-alpha.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/input-search/index.d.ts +0 -2
- package/es/atom/input-search/index.d.ts.map +1 -1
- package/es/atom/input-search/index.js +13 -46
- package/es/atom/input-search/index.js.map +1 -1
- package/es/atom/input-search/style.css +0 -96
- package/es/molecule/card/customer.css +0 -3
- package/es/molecule/card/favorite.css +3 -3
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +27 -11
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/notification.css +28 -12
- package/es/molecule/card/notification.d.ts.map +1 -1
- package/es/molecule/card/notification.js +24 -4
- package/es/molecule/card/notification.js.map +1 -1
- package/es/molecule/card/style.css +4 -53
- package/es/molecule/card-content/index.d.ts.map +1 -1
- package/es/molecule/card-content/index.js +59 -37
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/card-content/style.css +27 -72
- package/es/molecule/cm-popin/types.d.ts +0 -2
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/external-content-button/style.css +1 -0
- package/es/molecule/multi-filter-panel/index.d.ts +0 -2
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts +0 -2
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/es/molecule/search-form/index.d.ts +0 -5
- package/es/molecule/search-form/index.d.ts.map +1 -1
- package/es/molecule/search-form/index.js +16 -26
- package/es/molecule/search-form/index.js.map +1 -1
- package/es/molecule/search-form/style.css +6 -21
- package/es/organism/brand-table/index.d.ts +0 -2
- package/es/organism/content-skill-modal/index.d.ts +0 -4
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +0 -4
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts +0 -2
- package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts +0 -2
- package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/es/organism/list-items/index.d.ts +0 -2
- package/es/organism/mooc-header/index.d.ts +0 -14
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +12 -123
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +8 -181
- package/es/template/app-player/loading/index.d.ts +0 -2
- package/es/template/app-player/player/index.d.ts +0 -4
- package/es/template/app-player/player/slides/index.d.ts +0 -2
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +0 -2
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +0 -2
- package/es/template/app-review/index.d.ts +0 -2
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +0 -2
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +0 -2
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +0 -12
- package/es/template/common/dashboard/index.d.ts +0 -4
- package/es/template/common/search-page/index.d.ts +0 -2
- package/es/template/external-course/index.d.ts +0 -2
- package/es/util/check-is-mobile.d.ts +1 -1
- package/es/util/check-is-mobile.d.ts.map +1 -1
- package/es/util/check-is-mobile.js +2 -4
- package/es/util/check-is-mobile.js.map +1 -1
- package/es/util/external-content.d.ts +38 -4
- package/es/util/external-content.d.ts.map +1 -1
- package/es/util/external-content.js +27 -4
- package/es/util/external-content.js.map +1 -1
- package/es/util/icons.d.ts +8 -0
- package/es/util/icons.d.ts.map +1 -0
- package/es/util/icons.js +8 -0
- package/es/util/icons.js.map +1 -0
- package/es/variables/colors.d.ts +5 -0
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +6 -1
- package/es/variables/colors.js.map +1 -1
- package/lib/atom/input-search/index.d.ts +0 -2
- package/lib/atom/input-search/index.d.ts.map +1 -1
- package/lib/atom/input-search/index.js +13 -46
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-search/style.css +0 -96
- package/lib/molecule/card/customer.css +0 -3
- package/lib/molecule/card/favorite.css +3 -3
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +26 -10
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/notification.css +28 -12
- package/lib/molecule/card/notification.d.ts.map +1 -1
- package/lib/molecule/card/notification.js +23 -3
- package/lib/molecule/card/notification.js.map +1 -1
- package/lib/molecule/card/style.css +4 -53
- package/lib/molecule/card-content/index.d.ts.map +1 -1
- package/lib/molecule/card-content/index.js +58 -36
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-content/style.css +27 -72
- package/lib/molecule/cm-popin/types.d.ts +0 -2
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/external-content-button/style.css +1 -0
- package/lib/molecule/multi-filter-panel/index.d.ts +0 -2
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +0 -2
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/lib/molecule/search-form/index.d.ts +0 -5
- package/lib/molecule/search-form/index.d.ts.map +1 -1
- package/lib/molecule/search-form/index.js +17 -27
- package/lib/molecule/search-form/index.js.map +1 -1
- package/lib/molecule/search-form/style.css +6 -21
- package/lib/organism/brand-table/index.d.ts +0 -2
- package/lib/organism/content-skill-modal/index.d.ts +0 -4
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +0 -4
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts +0 -2
- package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts +0 -2
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/lib/organism/list-items/index.d.ts +0 -2
- package/lib/organism/mooc-header/index.d.ts +0 -14
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +12 -123
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +8 -181
- package/lib/template/app-player/loading/index.d.ts +0 -2
- package/lib/template/app-player/player/index.d.ts +0 -4
- package/lib/template/app-player/player/slides/index.d.ts +0 -2
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +0 -2
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +0 -2
- package/lib/template/app-review/index.d.ts +0 -2
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +0 -2
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +0 -2
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +0 -12
- package/lib/template/common/dashboard/index.d.ts +0 -4
- package/lib/template/common/search-page/index.d.ts +0 -2
- package/lib/template/external-course/index.d.ts +0 -2
- package/lib/util/check-is-mobile.d.ts +1 -1
- package/lib/util/check-is-mobile.d.ts.map +1 -1
- package/lib/util/check-is-mobile.js +2 -4
- package/lib/util/check-is-mobile.js.map +1 -1
- package/lib/util/external-content.d.ts +38 -4
- package/lib/util/external-content.d.ts.map +1 -1
- package/lib/util/external-content.js +28 -5
- package/lib/util/external-content.js.map +1 -1
- package/lib/util/icons.d.ts +8 -0
- package/lib/util/icons.d.ts.map +1 -0
- package/lib/util/icons.js +12 -0
- package/lib/util/icons.js.map +1 -0
- package/lib/variables/colors.d.ts +5 -0
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +6 -1
- package/lib/variables/colors.js.map +1 -1
- package/locales/en/global.json +5 -0
- package/locales/lt/global.json +24 -24
- package/package.json +2 -2
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@value colors: "../../variables/colors.css";
|
|
2
|
-
@value cm_grey_500 from colors;
|
|
3
|
-
|
|
4
1
|
.form {
|
|
5
2
|
display: flex;
|
|
6
3
|
justify-content: flex-start;
|
|
@@ -11,7 +8,6 @@
|
|
|
11
8
|
margin: 0;
|
|
12
9
|
width: 100%;
|
|
13
10
|
height: 100%;
|
|
14
|
-
position: relative;
|
|
15
11
|
}
|
|
16
12
|
|
|
17
13
|
.wrapperClear {
|
|
@@ -27,22 +23,11 @@
|
|
|
27
23
|
display: none;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
|
-
.
|
|
31
|
-
|
|
32
|
-
width:
|
|
33
|
-
height:
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.wrapperClearMooc {
|
|
26
|
+
.clear {
|
|
27
|
+
transform: rotate(45deg);
|
|
28
|
+
width: 10px;
|
|
29
|
+
height: 10px;
|
|
37
30
|
position: absolute;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
height: 14px;
|
|
41
|
-
top: 50%;
|
|
42
|
-
transform: translateY(-50%);
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
z-index: 2002;
|
|
31
|
+
top: 0;
|
|
32
|
+
left: 0;
|
|
48
33
|
}
|
|
@@ -9,8 +9,6 @@ declare namespace BrandTable {
|
|
|
9
9
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
10
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
11
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
12
|
theme: PropTypes.Requireable<string>;
|
|
15
13
|
dataTestId: PropTypes.Requireable<string>;
|
|
16
14
|
}>>;
|
|
@@ -493,8 +493,6 @@ declare const ContentSkillModal: {
|
|
|
493
493
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
494
494
|
onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
495
495
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
496
|
-
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
497
|
-
inputRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
498
496
|
theme: import("prop-types").Requireable<string>;
|
|
499
497
|
dataTestId: import("prop-types").Requireable<string>;
|
|
500
498
|
}>>;
|
|
@@ -672,8 +670,6 @@ declare const ContentSkillModal: {
|
|
|
672
670
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
673
671
|
onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
674
672
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
675
|
-
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
676
|
-
inputRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
677
673
|
theme: import("prop-types").Requireable<string>;
|
|
678
674
|
dataTestId: import("prop-types").Requireable<string>;
|
|
679
675
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
|
|
@@ -490,8 +490,6 @@ declare const ContentSkillModalPropTypes: {
|
|
|
490
490
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
491
491
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
492
492
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
493
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
494
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
495
493
|
theme: PropTypes.Requireable<string>;
|
|
496
494
|
dataTestId: PropTypes.Requireable<string>;
|
|
497
495
|
}>>;
|
|
@@ -669,8 +667,6 @@ declare const ContentSkillModalPropTypes: {
|
|
|
669
667
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
670
668
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
671
669
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
672
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
673
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
674
670
|
theme: PropTypes.Requireable<string>;
|
|
675
671
|
dataTestId: PropTypes.Requireable<string>;
|
|
676
672
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAStD,QAAA,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAStD,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACpD,OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
|
|
@@ -21,8 +21,6 @@ declare const FilterCheckboxAndSearch: {
|
|
|
21
21
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
22
22
|
onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
23
23
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
24
|
-
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
|
-
inputRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
26
24
|
theme: import("prop-types").Requireable<string>;
|
|
27
25
|
dataTestId: import("prop-types").Requireable<string>;
|
|
28
26
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;CA+F1B,CAAC;AAQF,eAAe,uBAAuB,CAAC"}
|
|
@@ -17,8 +17,6 @@ declare const propTypes: {
|
|
|
17
17
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
18
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
19
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
20
|
theme: PropTypes.Requireable<string>;
|
|
23
21
|
dataTestId: PropTypes.Requireable<string>;
|
|
24
22
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"props-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;CAcd,CAAC;AAEF,oBAAY,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,aAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,cAAc,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,UAAU,CAAC;IAC1B,OAAO,EAAE,8BAA8B,EAAE,CAAC;CAC3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -499,8 +499,6 @@ declare namespace ListItems {
|
|
|
499
499
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
500
500
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
501
501
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
502
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
503
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
504
502
|
theme: PropTypes.Requireable<string>;
|
|
505
503
|
dataTestId: PropTypes.Requireable<string>;
|
|
506
504
|
}>>;
|
|
@@ -17,8 +17,6 @@ declare class MoocHeader extends React.Component<any, any, any> {
|
|
|
17
17
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
18
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
19
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
20
|
theme: PropTypes.Requireable<string>;
|
|
23
21
|
dataTestId: PropTypes.Requireable<string>;
|
|
24
22
|
}>>;
|
|
@@ -148,14 +146,11 @@ declare class MoocHeader extends React.Component<any, any, any> {
|
|
|
148
146
|
}>>;
|
|
149
147
|
};
|
|
150
148
|
constructor(props: any);
|
|
151
|
-
isMobile: boolean;
|
|
152
149
|
state: {
|
|
153
150
|
isSettingsOpen: boolean;
|
|
154
151
|
isMenuOpen: boolean;
|
|
155
152
|
isFocus: boolean;
|
|
156
153
|
isToolTipOpen: boolean;
|
|
157
|
-
isClosing: boolean;
|
|
158
|
-
isClosingStep2: boolean;
|
|
159
154
|
};
|
|
160
155
|
handleSettingsToggle(): void;
|
|
161
156
|
handleMenuToggle(): void;
|
|
@@ -171,16 +166,7 @@ declare class MoocHeader extends React.Component<any, any, any> {
|
|
|
171
166
|
handleOnMouseOver(): void;
|
|
172
167
|
handleOnMouseLeave(): void;
|
|
173
168
|
handleKeyPress(event: any): void;
|
|
174
|
-
handleSearchKeyDown(event: any): void;
|
|
175
|
-
searchBarRef: any;
|
|
176
|
-
searchInputRef: any;
|
|
177
|
-
setSearchBarRef(ref: any): void;
|
|
178
|
-
setSearchInputRef(ref: any): void;
|
|
179
|
-
handleClickOutside(event: any): void;
|
|
180
|
-
handleTransitionEnd(event: any): void;
|
|
181
|
-
componentDidMount(): void;
|
|
182
169
|
componentDidUpdate(prevProps: any, prevState: any, prevContext: any): void;
|
|
183
|
-
componentWillUnmount(): void;
|
|
184
170
|
menuSettings: any;
|
|
185
171
|
createMenuButtons: (items: any, primaryColor: any) => any;
|
|
186
172
|
render(): JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAuBA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAuBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsGE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAuBC;IArBC;;;;;MAKC;IAgDH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAKC;IAED,0BAKC;IAED,sBAIC;IAED,qBAIC;IAED,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IA7GD,2EASC;IAGC,kBAAsB;IAmGxB,0DAaE;IAEF,6BAufC;CACF"}
|
|
@@ -31,14 +31,11 @@ class MoocHeader extends _react.default.Component {
|
|
|
31
31
|
};
|
|
32
32
|
constructor(props) {
|
|
33
33
|
super(props);
|
|
34
|
-
this.isMobile = (0, _checkIsMobile.isMobile)(navigator?.userAgent, true); // true = inclure les tablettes
|
|
35
34
|
this.state = {
|
|
36
35
|
isSettingsOpen: false,
|
|
37
36
|
isMenuOpen: false,
|
|
38
37
|
isFocus: false,
|
|
39
|
-
isToolTipOpen: false
|
|
40
|
-
isClosing: false,
|
|
41
|
-
isClosingStep2: false
|
|
38
|
+
isToolTipOpen: false
|
|
42
39
|
};
|
|
43
40
|
this.handleSettingsToggle = this.handleSettingsToggle.bind(this);
|
|
44
41
|
this.handleMenuToggle = this.handleMenuToggle.bind(this);
|
|
@@ -54,16 +51,6 @@ class MoocHeader extends _react.default.Component {
|
|
|
54
51
|
this.handleOnMouseOver = this.handleOnMouseOver.bind(this);
|
|
55
52
|
this.handleOnMouseLeave = this.handleOnMouseLeave.bind(this);
|
|
56
53
|
this.handleKeyPress = this.handleKeyPress.bind(this);
|
|
57
|
-
this.handleSearchKeyDown = this.handleSearchKeyDown.bind(this);
|
|
58
|
-
this.searchBarRef = null;
|
|
59
|
-
this.searchInputRef = null;
|
|
60
|
-
this.setSearchBarRef = this.setSearchBarRef.bind(this);
|
|
61
|
-
this.setSearchInputRef = this.setSearchInputRef.bind(this);
|
|
62
|
-
this.handleClickOutside = this.handleClickOutside.bind(this);
|
|
63
|
-
this.handleTransitionEnd = this.handleTransitionEnd.bind(this);
|
|
64
|
-
}
|
|
65
|
-
componentDidMount() {
|
|
66
|
-
document.addEventListener('mousedown', this.handleClickOutside);
|
|
67
54
|
}
|
|
68
55
|
componentDidUpdate(prevProps, prevState, prevContext) {
|
|
69
56
|
const {
|
|
@@ -77,33 +64,6 @@ class MoocHeader extends _react.default.Component {
|
|
|
77
64
|
document.removeEventListener('touchstart', this._checkOnClose);
|
|
78
65
|
}
|
|
79
66
|
}
|
|
80
|
-
componentWillUnmount() {
|
|
81
|
-
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
82
|
-
}
|
|
83
|
-
setSearchBarRef(ref) {
|
|
84
|
-
this.searchBarRef = ref;
|
|
85
|
-
}
|
|
86
|
-
setSearchInputRef(ref) {
|
|
87
|
-
this.searchInputRef = ref;
|
|
88
|
-
}
|
|
89
|
-
handleClickOutside(event) {
|
|
90
|
-
const {
|
|
91
|
-
isFocus
|
|
92
|
-
} = this.state;
|
|
93
|
-
if (isFocus) {
|
|
94
|
-
if (event.target.getAttribute('data-name') === 'mobile-overlay') {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
const resetButton = event.target.getAttribute('data-name') === 'search-form-reset' || event.target.closest('[data-name="search-form-reset"]');
|
|
98
|
-
if (resetButton) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
if (this.searchBarRef && this.searchBarRef.contains(event.target)) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
this.handleOnBlur();
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
67
|
setMenuSettings(el) {
|
|
108
68
|
this.menuSettings = el;
|
|
109
69
|
}
|
|
@@ -139,15 +99,6 @@ class MoocHeader extends _react.default.Component {
|
|
|
139
99
|
const {
|
|
140
100
|
onSubmitSearch
|
|
141
101
|
} = this.props;
|
|
142
|
-
const searchInput = this.searchInputRef || document.querySelector('input[name="search"]');
|
|
143
|
-
if (searchInput) {
|
|
144
|
-
searchInput.blur();
|
|
145
|
-
}
|
|
146
|
-
this.setState({
|
|
147
|
-
isFocus: false,
|
|
148
|
-
isClosing: false,
|
|
149
|
-
isClosingStep2: false
|
|
150
|
-
});
|
|
151
102
|
if (onSubmitSearch) {
|
|
152
103
|
onSubmitSearch();
|
|
153
104
|
}
|
|
@@ -166,33 +117,9 @@ class MoocHeader extends _react.default.Component {
|
|
|
166
117
|
}));
|
|
167
118
|
}
|
|
168
119
|
handleOnBlur() {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
});
|
|
173
|
-
} else {
|
|
174
|
-
this.setState({
|
|
175
|
-
isClosing: true
|
|
176
|
-
});
|
|
177
|
-
requestAnimationFrame(() => {
|
|
178
|
-
this.setState({
|
|
179
|
-
isClosing: false,
|
|
180
|
-
isClosingStep2: true
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
handleTransitionEnd(event) {
|
|
186
|
-
const {
|
|
187
|
-
isClosingStep2
|
|
188
|
-
} = this.state;
|
|
189
|
-
if ((event.propertyName === 'max-width' || event.propertyName === 'width') && isClosingStep2) {
|
|
190
|
-
this.setState({
|
|
191
|
-
isFocus: false,
|
|
192
|
-
isClosing: false,
|
|
193
|
-
isClosingStep2: false
|
|
194
|
-
});
|
|
195
|
-
}
|
|
120
|
+
this.setState(prevState => ({
|
|
121
|
+
isFocus: false
|
|
122
|
+
}));
|
|
196
123
|
}
|
|
197
124
|
handleOnMenuOpen() {
|
|
198
125
|
const {
|
|
@@ -237,12 +164,6 @@ class MoocHeader extends _react.default.Component {
|
|
|
237
164
|
}));
|
|
238
165
|
}
|
|
239
166
|
}
|
|
240
|
-
handleSearchKeyDown(event) {
|
|
241
|
-
if (event.key === 'Enter') {
|
|
242
|
-
event.preventDefault();
|
|
243
|
-
this.handleSubmitSearch();
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
167
|
createMenuButtons = (items, primaryColor) => {
|
|
247
168
|
return items.map(item => ({
|
|
248
169
|
label: item.title,
|
|
@@ -279,15 +200,14 @@ class MoocHeader extends _react.default.Component {
|
|
|
279
200
|
isFocus,
|
|
280
201
|
isSettingsOpen,
|
|
281
202
|
isMenuOpen,
|
|
282
|
-
isToolTipOpen
|
|
283
|
-
isClosing,
|
|
284
|
-
isClosingStep2
|
|
203
|
+
isToolTipOpen
|
|
285
204
|
} = this.state;
|
|
286
205
|
const {
|
|
287
206
|
translate,
|
|
288
207
|
skin
|
|
289
208
|
} = this.context;
|
|
290
|
-
const
|
|
209
|
+
const userAgent = navigator?.userAgent;
|
|
210
|
+
const isMobile = (0, _checkIsMobile.isMobile)(userAgent);
|
|
291
211
|
const {
|
|
292
212
|
'aria-label': logoAriaLabel,
|
|
293
213
|
closeMenuAriaLabel,
|
|
@@ -612,17 +532,14 @@ class MoocHeader extends _react.default.Component {
|
|
|
612
532
|
if (search) {
|
|
613
533
|
searchFormView = /*#__PURE__*/_react.default.createElement("div", {
|
|
614
534
|
"data-name": "Search-Bar",
|
|
615
|
-
className: isMenuOpen
|
|
535
|
+
className: isMenuOpen ? _style.default.hiddenSearchBar : _style.default.searchBar
|
|
616
536
|
}, /*#__PURE__*/_react.default.createElement(_searchForm.default, {
|
|
617
537
|
search: search,
|
|
618
538
|
onSubmit: this.handleSubmitSearch,
|
|
619
539
|
onReset: this.handleResetSearch,
|
|
620
540
|
onSearchFocus: this.handleOnFocus,
|
|
621
541
|
onSearchBlur: this.handleOnBlur,
|
|
622
|
-
|
|
623
|
-
inputRef: this.setSearchInputRef,
|
|
624
|
-
"search-reset-aria-label": searchResetAriaLabel,
|
|
625
|
-
theme: "mooc"
|
|
542
|
+
"search-reset-aria-label": searchResetAriaLabel
|
|
626
543
|
}));
|
|
627
544
|
}
|
|
628
545
|
return /*#__PURE__*/_react.default.createElement("header", {
|
|
@@ -632,7 +549,7 @@ class MoocHeader extends _react.default.Component {
|
|
|
632
549
|
"data-open": isMenuOpen,
|
|
633
550
|
className: isMenuOpen ? _style.default.open : _style.default.header
|
|
634
551
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
635
|
-
className:
|
|
552
|
+
className: _style.default.logoWrapper,
|
|
636
553
|
"aria-label": toolTipText,
|
|
637
554
|
onMouseOver: this.handleOnMouseOver,
|
|
638
555
|
onMouseLeave: this.handleOnMouseLeave
|
|
@@ -697,38 +614,10 @@ class MoocHeader extends _react.default.Component {
|
|
|
697
614
|
style: {
|
|
698
615
|
color: primaryColor
|
|
699
616
|
}
|
|
700
|
-
}))) : null)),
|
|
701
|
-
className: isFocus ? _style.default.mobileSearchContainerFocus : _style.default.mobileSearchContainer,
|
|
702
|
-
ref: this.setSearchBarRef
|
|
703
|
-
}, searchFormView), isFocus ? /*#__PURE__*/_react.default.createElement("div", {
|
|
704
|
-
className: _style.default.mobileSearchOverlay,
|
|
705
|
-
onClick: this.handleOnBlur,
|
|
706
|
-
"data-name": "mobile-overlay"
|
|
707
|
-
}) : null, /*#__PURE__*/_react.default.createElement("nav", {
|
|
708
|
-
className: isMenuOpen ? _style.default.menuWrapper : _style.default.hiddenMenuWrapper,
|
|
709
|
-
"data-name": "menu-wrapper"
|
|
710
|
-
}, pagesView, userView || linksView, settingsView)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
711
|
-
className: (0, _classnames.default)({
|
|
712
|
-
[_style.default.rightZone]: !isFocus && !isClosing && !isClosingStep2
|
|
713
|
-
}, {
|
|
714
|
-
[_style.default.rightZoneFocus]: isFocus || isClosing || isClosingStep2
|
|
715
|
-
}, {
|
|
716
|
-
[_style.default.searchBarActive]: isFocus || isClosing || isClosingStep2
|
|
717
|
-
})
|
|
718
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
719
|
-
className: (0, _classnames.default)(_style.default.floatingSearchBar, {
|
|
720
|
-
[_style.default['floatingSearchBar--expanded']]: isFocus && !isClosing && !isClosingStep2,
|
|
721
|
-
[_style.default['floatingSearchBar--closing']]: isClosing
|
|
722
|
-
}),
|
|
723
|
-
ref: this.setSearchBarRef,
|
|
724
|
-
onTransitionEnd: this.handleTransitionEnd
|
|
725
|
-
}, searchFormView), isFocus || isClosing || isClosingStep2 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
726
|
-
className: _style.default.searchOverlay,
|
|
727
|
-
onClick: this.handleOnBlur
|
|
728
|
-
}) : null, /*#__PURE__*/_react.default.createElement("nav", {
|
|
617
|
+
}))) : null)), searchFormView, /*#__PURE__*/_react.default.createElement("nav", {
|
|
729
618
|
className: isMenuOpen ? _style.default.menuWrapper : _style.default.hiddenMenuWrapper,
|
|
730
619
|
"data-name": "menu-wrapper"
|
|
731
|
-
}, pagesView, userView || linksView, settingsView)))
|
|
620
|
+
}, pagesView, userView || linksView, settingsView)));
|
|
732
621
|
}
|
|
733
622
|
}
|
|
734
623
|
MoocHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|