@coorpacademy/components 11.40.14 → 11.40.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/style.css +2 -2
- package/es/atom/button-menu/utils.d.ts +1 -1
- package/es/atom/checkbox-with-title/index.d.ts +25 -1
- package/es/atom/checkbox-with-title/index.d.ts.map +1 -1
- package/es/atom/checkbox-with-title/index.js +19 -2
- package/es/atom/checkbox-with-title/index.js.map +1 -1
- package/es/atom/chip/index.d.ts.map +1 -1
- package/es/atom/chip/index.js +4 -4
- package/es/atom/chip/index.js.map +1 -1
- package/es/atom/content-badge/style.css +2 -2
- package/es/atom/input-html/index.d.ts.map +1 -1
- package/es/atom/input-html/index.js +2 -1
- package/es/atom/input-html/index.js.map +1 -1
- package/es/atom/input-switch/index.d.ts +24 -1
- package/es/atom/input-switch/index.d.ts.map +1 -1
- package/es/atom/input-switch/index.js +18 -4
- package/es/atom/input-switch/index.js.map +1 -1
- package/es/atom/input-switch/style.css +3 -0
- package/es/atom/range/index.d.ts +35 -3
- package/es/atom/range/index.d.ts.map +1 -1
- package/es/atom/range/index.js +95 -20
- package/es/atom/range/index.js.map +1 -1
- package/es/atom/range/style.css +40 -2
- package/es/atom/resource-miniature/style.css +3 -3
- package/es/atom/status-item/index.native.js +1 -1
- package/es/atom/status-item/index.native.js.map +1 -1
- package/es/molecule/base-modal/index.d.ts.map +1 -1
- package/es/molecule/base-modal/index.js +11 -5
- package/es/molecule/base-modal/index.js.map +1 -1
- package/es/molecule/card/favorite.d.ts.map +1 -1
- package/es/molecule/card/favorite.js +15 -16
- package/es/molecule/card/favorite.js.map +1 -1
- package/es/molecule/card/notification.css +0 -6
- package/es/molecule/card/notification.d.ts.map +1 -1
- package/es/molecule/card/notification.js +12 -14
- package/es/molecule/card/notification.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/coorpmanager-base-banner/style.css +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts +9 -0
- package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +5 -1
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/style.css +1 -1
- package/es/molecule/draggable-list/index.d.ts +1 -0
- package/es/molecule/go1-banner/style.css +3 -3
- package/es/molecule/learning-priority-modal/index.js +1 -1
- package/es/molecule/learning-priority-modal/index.js.map +1 -1
- package/es/molecule/modal/style.css +3 -3
- package/es/molecule/multi-filter-panel/index.d.ts +42 -0
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/index.js +28 -15
- package/es/molecule/multi-filter-panel/index.js.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts +32 -5
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.js +4 -0
- package/es/molecule/multi-filter-panel/prop-types.js.map +1 -1
- package/es/molecule/questions/question-range/index.d.ts +6 -1
- package/es/molecule/quick-filters/index.js +3 -1
- package/es/molecule/quick-filters/index.js.map +1 -1
- package/es/molecule/quick-filters/style.css +7 -2
- package/es/molecule/tabs/index.d.ts +39 -0
- package/es/molecule/tabs/index.d.ts.map +1 -0
- package/es/molecule/tabs/index.js +69 -0
- package/es/molecule/tabs/index.js.map +1 -0
- package/es/molecule/tabs/style.css +28 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
- package/es/organism/brand-analytics/style.css +1 -1
- package/es/organism/brand-learning-priorities/index.d.ts +1 -0
- package/es/organism/content-skill-modal/index.d.ts +23 -0
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +23 -0
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts +22 -0
- package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.js +21 -4
- package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts +3 -0
- package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.js +1 -0
- package/es/organism/filter-checkbox-and-search/props-types.js.map +1 -1
- package/es/organism/filter-chip/index.d.ts +21 -0
- package/es/organism/filter-chip/index.d.ts.map +1 -1
- package/es/organism/filter-chip/index.js +14 -2
- package/es/organism/filter-chip/index.js.map +1 -1
- package/es/organism/filter-range/index.d.ts +28 -0
- package/es/organism/filter-range/index.d.ts.map +1 -0
- package/es/organism/filter-range/index.js +101 -0
- package/es/organism/filter-range/index.js.map +1 -0
- package/es/organism/filter-range/prop-types.d.ts +40 -0
- package/es/organism/filter-range/prop-types.d.ts.map +1 -0
- package/es/organism/filter-range/prop-types.js +20 -0
- package/es/organism/filter-range/prop-types.js.map +1 -0
- package/es/organism/filter-range/style.css +15 -0
- package/es/organism/filter-switch/index.d.ts +22 -0
- package/es/organism/filter-switch/index.d.ts.map +1 -1
- package/es/organism/filter-switch/index.js +18 -3
- package/es/organism/filter-switch/index.js.map +1 -1
- package/es/organism/filter-switch/prop-types.d.ts +2 -0
- package/es/organism/filter-switch/prop-types.d.ts.map +1 -1
- package/es/organism/filter-switch/prop-types.js +2 -1
- package/es/organism/filter-switch/prop-types.js.map +1 -1
- package/es/organism/list-item/index.d.ts +1 -0
- package/es/organism/list-items/index.d.ts +2 -0
- package/es/organism/list-items/style.css +1 -1
- package/es/organism/mooc-footer/style.css +2 -2
- package/es/organism/rewards-form/index.d.ts +1 -0
- package/es/organism/select-opponents/index.d.ts +1 -0
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +1 -0
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/sidebar/style.css +3 -3
- package/es/organism/title-and-input/index.d.ts +1 -0
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +1 -0
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +1 -0
- package/es/template/activity/stars-summary.css +2 -2
- 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 +11 -0
- package/es/template/app-player/popin-end/summary.d.ts +9 -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-update/index.d.ts +28 -0
- package/es/template/back-office/brand-update/utils.d.ts +1 -1
- package/es/template/common/dashboard/index.d.ts +4 -0
- package/es/template/common/search-page/index.d.ts +106 -21
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +76 -21
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/common/search-page/style.css +52 -4
- package/es/template/external-course/index.d.ts +2 -0
- package/es/template/my-learning/index.d.ts +9 -0
- package/es/template/teams-dashboard/index.d.ts +9 -0
- package/es/util/external-content.js +2 -2
- package/es/util/external-content.js.map +1 -1
- package/es/variables/colors.css +6 -6
- package/es/variables/colors.d.ts +5 -4
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +5 -4
- package/es/variables/colors.js.map +1 -1
- package/lib/atom/button/style.css +2 -2
- package/lib/atom/button-menu/utils.d.ts +1 -1
- package/lib/atom/checkbox-with-title/index.d.ts +25 -1
- package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
- package/lib/atom/checkbox-with-title/index.js +19 -2
- package/lib/atom/checkbox-with-title/index.js.map +1 -1
- package/lib/atom/chip/index.d.ts.map +1 -1
- package/lib/atom/chip/index.js +4 -4
- package/lib/atom/chip/index.js.map +1 -1
- package/lib/atom/content-badge/style.css +2 -2
- package/lib/atom/input-html/index.d.ts.map +1 -1
- package/lib/atom/input-html/index.js +2 -1
- package/lib/atom/input-html/index.js.map +1 -1
- package/lib/atom/input-switch/index.d.ts +24 -1
- package/lib/atom/input-switch/index.d.ts.map +1 -1
- package/lib/atom/input-switch/index.js +18 -4
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/input-switch/style.css +3 -0
- package/lib/atom/range/index.d.ts +35 -3
- package/lib/atom/range/index.d.ts.map +1 -1
- package/lib/atom/range/index.js +95 -20
- package/lib/atom/range/index.js.map +1 -1
- package/lib/atom/range/style.css +40 -2
- package/lib/atom/resource-miniature/style.css +3 -3
- package/lib/atom/status-item/index.native.js +1 -1
- package/lib/atom/status-item/index.native.js.map +1 -1
- package/lib/molecule/base-modal/index.d.ts.map +1 -1
- package/lib/molecule/base-modal/index.js +11 -5
- package/lib/molecule/base-modal/index.js.map +1 -1
- package/lib/molecule/card/favorite.d.ts.map +1 -1
- package/lib/molecule/card/favorite.js +15 -16
- package/lib/molecule/card/favorite.js.map +1 -1
- package/lib/molecule/card/notification.css +0 -6
- package/lib/molecule/card/notification.d.ts.map +1 -1
- package/lib/molecule/card/notification.js +12 -14
- package/lib/molecule/card/notification.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/coorpmanager-base-banner/style.css +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts +9 -0
- package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +5 -1
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/style.css +1 -1
- package/lib/molecule/draggable-list/index.d.ts +1 -0
- package/lib/molecule/go1-banner/style.css +3 -3
- package/lib/molecule/learning-priority-modal/index.js +1 -1
- package/lib/molecule/learning-priority-modal/index.js.map +1 -1
- package/lib/molecule/modal/style.css +3 -3
- package/lib/molecule/multi-filter-panel/index.d.ts +42 -0
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/index.js +28 -15
- package/lib/molecule/multi-filter-panel/index.js.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +32 -5
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.js +4 -0
- package/lib/molecule/multi-filter-panel/prop-types.js.map +1 -1
- package/lib/molecule/questions/question-range/index.d.ts +6 -1
- package/lib/molecule/quick-filters/index.js +3 -1
- package/lib/molecule/quick-filters/index.js.map +1 -1
- package/lib/molecule/quick-filters/style.css +7 -2
- package/lib/molecule/tabs/index.d.ts +39 -0
- package/lib/molecule/tabs/index.d.ts.map +1 -0
- package/lib/molecule/tabs/index.js +74 -0
- package/lib/molecule/tabs/index.js.map +1 -0
- package/lib/molecule/tabs/style.css +28 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
- package/lib/organism/brand-analytics/style.css +1 -1
- package/lib/organism/brand-learning-priorities/index.d.ts +1 -0
- package/lib/organism/content-skill-modal/index.d.ts +23 -0
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +23 -0
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts +22 -0
- package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.js +21 -4
- package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts +3 -0
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.js +1 -0
- package/lib/organism/filter-checkbox-and-search/props-types.js.map +1 -1
- package/lib/organism/filter-chip/index.d.ts +21 -0
- package/lib/organism/filter-chip/index.d.ts.map +1 -1
- package/lib/organism/filter-chip/index.js +14 -2
- package/lib/organism/filter-chip/index.js.map +1 -1
- package/lib/organism/filter-range/index.d.ts +28 -0
- package/lib/organism/filter-range/index.d.ts.map +1 -0
- package/lib/organism/filter-range/index.js +108 -0
- package/lib/organism/filter-range/index.js.map +1 -0
- package/lib/organism/filter-range/prop-types.d.ts +40 -0
- package/lib/organism/filter-range/prop-types.d.ts.map +1 -0
- package/lib/organism/filter-range/prop-types.js +25 -0
- package/lib/organism/filter-range/prop-types.js.map +1 -0
- package/lib/organism/filter-range/style.css +15 -0
- package/lib/organism/filter-switch/index.d.ts +22 -0
- package/lib/organism/filter-switch/index.d.ts.map +1 -1
- package/lib/organism/filter-switch/index.js +18 -3
- package/lib/organism/filter-switch/index.js.map +1 -1
- package/lib/organism/filter-switch/prop-types.d.ts +2 -0
- package/lib/organism/filter-switch/prop-types.d.ts.map +1 -1
- package/lib/organism/filter-switch/prop-types.js +2 -1
- package/lib/organism/filter-switch/prop-types.js.map +1 -1
- package/lib/organism/list-item/index.d.ts +1 -0
- package/lib/organism/list-items/index.d.ts +2 -0
- package/lib/organism/list-items/style.css +1 -1
- package/lib/organism/mooc-footer/style.css +2 -2
- package/lib/organism/rewards-form/index.d.ts +1 -0
- package/lib/organism/select-opponents/index.d.ts +1 -0
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +1 -0
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/sidebar/style.css +3 -3
- package/lib/organism/title-and-input/index.d.ts +1 -0
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +1 -0
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +1 -0
- package/lib/template/activity/stars-summary.css +2 -2
- 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 +11 -0
- package/lib/template/app-player/popin-end/summary.d.ts +9 -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-update/index.d.ts +28 -0
- package/lib/template/back-office/brand-update/utils.d.ts +1 -1
- package/lib/template/common/dashboard/index.d.ts +4 -0
- package/lib/template/common/search-page/index.d.ts +106 -21
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +75 -20
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/common/search-page/style.css +52 -4
- package/lib/template/external-course/index.d.ts +2 -0
- package/lib/template/my-learning/index.d.ts +9 -0
- package/lib/template/teams-dashboard/index.d.ts +9 -0
- package/lib/util/external-content.js +2 -2
- package/lib/util/external-content.js.map +1 -1
- package/lib/variables/colors.css +6 -6
- package/lib/variables/colors.d.ts +5 -4
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +5 -4
- package/lib/variables/colors.js.map +1 -1
- package/locales/cs/global.json +1 -1
- package/locales/de/global.json +1 -1
- package/locales/et/global.json +1 -1
- package/locales/fi/global.json +1 -1
- package/locales/fr/global.json +1 -1
- package/locales/hu/global.json +1 -1
- package/locales/hy/global.json +1 -1
- package/locales/ja/global.json +1 -1
- package/locales/ko/global.json +1 -1
- package/locales/lt/global.json +1 -1
- package/locales/pl/global.json +1 -1
- package/locales/ro/global.json +1 -1
- package/locales/ru/global.json +1 -1
- package/locales/sk/global.json +1 -1
- package/locales/sv/global.json +1 -1
- package/locales/uk/global.json +1 -1
- package/locales/vi/global.json +1 -1
- package/locales/zh/global.json +1 -1
- package/locales/zh_TW/global.json +1 -1
- package/package.json +4 -2
|
@@ -25,7 +25,10 @@ declare namespace SearchPage {
|
|
|
25
25
|
}>>;
|
|
26
26
|
}
|
|
27
27
|
namespace propTypes {
|
|
28
|
+
const newVersion: PropTypes.Requireable<boolean>;
|
|
29
|
+
const searchMessage: PropTypes.Requireable<string>;
|
|
28
30
|
const noresultsfound: PropTypes.Requireable<string>;
|
|
31
|
+
const noresultsfoundDescription: PropTypes.Requireable<string>;
|
|
29
32
|
const title: PropTypes.Requireable<string>;
|
|
30
33
|
const searchFilters: PropTypes.Requireable<PropTypes.InferProps<{
|
|
31
34
|
filterCTALabel: PropTypes.Requireable<string>;
|
|
@@ -152,31 +155,50 @@ declare namespace SearchPage {
|
|
|
152
155
|
}>>;
|
|
153
156
|
const count: PropTypes.Requireable<number>;
|
|
154
157
|
const clearFilters: PropTypes.Requireable<PropTypes.InferProps<{
|
|
155
|
-
color: any;
|
|
156
|
-
submitValue: PropTypes.Requireable<string>;
|
|
157
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
158
|
-
href: PropTypes.Requireable<string>;
|
|
159
|
-
download: PropTypes.Requireable<boolean>;
|
|
160
|
-
target: PropTypes.Requireable<string>;
|
|
161
158
|
type: PropTypes.Requireable<string>;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
'data-name': PropTypes.Requireable<string>;
|
|
159
|
+
usage: PropTypes.Requireable<string>;
|
|
160
|
+
label: PropTypes.Requireable<string>;
|
|
161
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
166
162
|
'aria-label': PropTypes.Requireable<string>;
|
|
163
|
+
tooltipText: PropTypes.Requireable<string>;
|
|
164
|
+
tooltipPlacement: PropTypes.Requireable<string>;
|
|
165
|
+
'data-name': PropTypes.Requireable<string>;
|
|
167
166
|
'data-testid': PropTypes.Requireable<string>;
|
|
168
|
-
|
|
167
|
+
icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
168
|
+
position: PropTypes.Requireable<string>;
|
|
169
|
+
type: PropTypes.Requireable<string>;
|
|
170
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
171
|
+
name: PropTypes.Validator<string>;
|
|
172
|
+
color: PropTypes.Requireable<string>;
|
|
173
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
174
|
+
size: PropTypes.Requireable<number>;
|
|
175
|
+
customStyle: PropTypes.Requireable<object>;
|
|
176
|
+
}>>;
|
|
177
|
+
}> | (PropTypes.InferProps<{
|
|
178
|
+
position: PropTypes.Requireable<string>;
|
|
179
|
+
type: PropTypes.Requireable<string>;
|
|
180
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
181
|
+
name: PropTypes.Validator<string>;
|
|
182
|
+
color: PropTypes.Requireable<string>;
|
|
183
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
184
|
+
size: PropTypes.Requireable<number>;
|
|
185
|
+
customStyle: PropTypes.Requireable<object>;
|
|
186
|
+
}>>;
|
|
187
|
+
}> | null | undefined)[] | null | undefined>>;
|
|
169
188
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
189
|
+
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
190
|
+
href: PropTypes.Requireable<string>;
|
|
191
|
+
download: PropTypes.Requireable<boolean>;
|
|
192
|
+
target: PropTypes.Requireable<string>;
|
|
193
|
+
}>>;
|
|
194
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
195
|
+
hoverColor: PropTypes.Requireable<string>;
|
|
196
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
197
|
+
className: PropTypes.Requireable<string>;
|
|
198
|
+
customStyle: PropTypes.Requireable<object>;
|
|
199
|
+
contentCustomStyle: PropTypes.Requireable<object>;
|
|
200
|
+
useTitle: PropTypes.Requireable<boolean>;
|
|
201
|
+
customLabelClassName: PropTypes.Requireable<string>;
|
|
180
202
|
}>>;
|
|
181
203
|
const recommendations: PropTypes.Requireable<PropTypes.InferProps<{
|
|
182
204
|
contentType: PropTypes.Requireable<string>;
|
|
@@ -240,6 +262,15 @@ declare namespace SearchPage {
|
|
|
240
262
|
progression: PropTypes.Requireable<number>;
|
|
241
263
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
242
264
|
}> | null | undefined> | null | undefined)[]>;
|
|
265
|
+
tabs: PropTypes.Requireable<PropTypes.InferProps<{
|
|
266
|
+
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
267
|
+
title: PropTypes.Requireable<string>;
|
|
268
|
+
count: PropTypes.Requireable<number>;
|
|
269
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
270
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
271
|
+
isActive: PropTypes.Requireable<boolean>;
|
|
272
|
+
}> | null | undefined)[]>;
|
|
273
|
+
}>>;
|
|
243
274
|
customStyle: PropTypes.Requireable<{
|
|
244
275
|
[x: string]: string | null | undefined;
|
|
245
276
|
}>;
|
|
@@ -553,6 +584,7 @@ declare namespace SearchPage {
|
|
|
553
584
|
}>>;
|
|
554
585
|
image: PropTypes.Requireable<string>;
|
|
555
586
|
checkbox: PropTypes.Requireable<PropTypes.InferProps<{
|
|
587
|
+
value: PropTypes.Requireable<string>;
|
|
556
588
|
title: PropTypes.Requireable<string>;
|
|
557
589
|
name: PropTypes.Requireable<string>;
|
|
558
590
|
checked: PropTypes.Requireable<boolean>;
|
|
@@ -941,6 +973,7 @@ declare namespace SearchPage {
|
|
|
941
973
|
searchIconAriaLabel: PropTypes.Requireable<string>;
|
|
942
974
|
}>>;
|
|
943
975
|
checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
976
|
+
value: PropTypes.Requireable<string>;
|
|
944
977
|
title: PropTypes.Requireable<string>;
|
|
945
978
|
name: PropTypes.Requireable<string>;
|
|
946
979
|
checked: PropTypes.Requireable<boolean>;
|
|
@@ -1113,6 +1146,49 @@ declare namespace SearchPage {
|
|
|
1113
1146
|
disabled: PropTypes.Requireable<boolean>;
|
|
1114
1147
|
}>>;
|
|
1115
1148
|
}>>;
|
|
1149
|
+
const filtersModal: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1150
|
+
title: PropTypes.Requireable<string>;
|
|
1151
|
+
titleAriaLabel: PropTypes.Requireable<string>;
|
|
1152
|
+
headerIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1153
|
+
name: PropTypes.Requireable<string>;
|
|
1154
|
+
color: PropTypes.Requireable<string>;
|
|
1155
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
1156
|
+
}>>;
|
|
1157
|
+
description: PropTypes.Requireable<string>;
|
|
1158
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
1159
|
+
isOpen: PropTypes.Requireable<boolean>;
|
|
1160
|
+
footer: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
1161
|
+
text: PropTypes.Requireable<string>;
|
|
1162
|
+
isError: any;
|
|
1163
|
+
cancelButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1164
|
+
label: PropTypes.Requireable<string>;
|
|
1165
|
+
onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1166
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
1167
|
+
}>>;
|
|
1168
|
+
confirmButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1169
|
+
label: PropTypes.Requireable<string>;
|
|
1170
|
+
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1171
|
+
iconName: PropTypes.Requireable<string>;
|
|
1172
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
1173
|
+
color: PropTypes.Requireable<string>;
|
|
1174
|
+
}>>;
|
|
1175
|
+
}> | null | undefined>>;
|
|
1176
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1177
|
+
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1178
|
+
detectScrollbar: PropTypes.Requireable<boolean>;
|
|
1179
|
+
customStyle: PropTypes.Requireable<{
|
|
1180
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
1181
|
+
}>;
|
|
1182
|
+
}>>;
|
|
1183
|
+
const tabs: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1184
|
+
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
1185
|
+
title: PropTypes.Requireable<string>;
|
|
1186
|
+
count: PropTypes.Requireable<number>;
|
|
1187
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
1188
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1189
|
+
isActive: PropTypes.Requireable<boolean>;
|
|
1190
|
+
}> | null | undefined)[]>;
|
|
1191
|
+
}>>;
|
|
1116
1192
|
const sections: PropTypes.Requireable<{
|
|
1117
1193
|
[x: string]: PropTypes.InferProps<{
|
|
1118
1194
|
title: PropTypes.Requireable<string>;
|
|
@@ -1220,6 +1296,15 @@ declare namespace SearchPage {
|
|
|
1220
1296
|
progression: PropTypes.Requireable<number>;
|
|
1221
1297
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1222
1298
|
}> | null | undefined> | null | undefined)[]>;
|
|
1299
|
+
tabs: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1300
|
+
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
1301
|
+
title: PropTypes.Requireable<string>;
|
|
1302
|
+
count: PropTypes.Requireable<number>;
|
|
1303
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
1304
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1305
|
+
isActive: PropTypes.Requireable<boolean>;
|
|
1306
|
+
}> | null | undefined)[]>;
|
|
1307
|
+
}>>;
|
|
1223
1308
|
showMore: PropTypes.Requireable<string>;
|
|
1224
1309
|
onShowMore: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1225
1310
|
order: PropTypes.Requireable<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAyBA,mEA4MC"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
var _sortBy2 = _interopRequireDefault(require("lodash/fp/sortBy"));
|
|
6
|
-
var _size2 = _interopRequireDefault(require("lodash/fp/size"));
|
|
7
6
|
var _pipe2 = _interopRequireDefault(require("lodash/fp/pipe"));
|
|
8
7
|
var _map2 = _interopRequireDefault(require("lodash/fp/map"));
|
|
9
8
|
var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
|
|
@@ -11,8 +10,11 @@ var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
|
|
|
11
10
|
var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
|
|
12
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
var _cssColorFunction = require("css-color-function");
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
15
|
var _provider = _interopRequireDefault(require("../../../atom/provider"));
|
|
15
16
|
var _button = _interopRequireDefault(require("../../../atom/button"));
|
|
17
|
+
var _buttonLink = _interopRequireDefault(require("../../../atom/button-link"));
|
|
16
18
|
var _filters = _interopRequireDefault(require("../../../molecule/filters"));
|
|
17
19
|
var _cardsGrid = _interopRequireDefault(require("../../../organism/cards-grid"));
|
|
18
20
|
var _cardsList = _interopRequireDefault(require("../../../molecule/dashboard/cards-list"));
|
|
@@ -25,6 +27,9 @@ var _card = require("../../../molecule/card");
|
|
|
25
27
|
var _learningPriorityCard = _interopRequireDefault(require("../../../molecule/learning-priority-card"));
|
|
26
28
|
var _colors = require("../../../variables/colors");
|
|
27
29
|
var _quickFilters = _interopRequireDefault(require("../../../molecule/quick-filters"));
|
|
30
|
+
var _baseModal = _interopRequireDefault(require("../../../molecule/base-modal"));
|
|
31
|
+
var _multiFilterPanel = _interopRequireDefault(require("../../../molecule/multi-filter-panel"));
|
|
32
|
+
var _tabs = _interopRequireDefault(require("../../../molecule/tabs"));
|
|
28
33
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
29
34
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
30
35
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -38,6 +43,7 @@ const SearchPage = (props, context) => {
|
|
|
38
43
|
cards,
|
|
39
44
|
count,
|
|
40
45
|
noresultsfound,
|
|
46
|
+
noresultsfoundDescription,
|
|
41
47
|
clearFilters,
|
|
42
48
|
recommendations,
|
|
43
49
|
moreSortAriaLabel,
|
|
@@ -45,12 +51,16 @@ const SearchPage = (props, context) => {
|
|
|
45
51
|
filterGroupAriaLabel,
|
|
46
52
|
sortAriaLabel,
|
|
47
53
|
popinWithCards,
|
|
48
|
-
sections = {}
|
|
54
|
+
sections = {},
|
|
55
|
+
filtersModal,
|
|
56
|
+
searchMessage,
|
|
57
|
+
newVersion = false,
|
|
58
|
+
tabs
|
|
49
59
|
} = props;
|
|
50
60
|
const {
|
|
51
61
|
skin
|
|
52
62
|
} = context;
|
|
53
|
-
const defaultColor = (0, _getOr2.default)(
|
|
63
|
+
const defaultColor = (0, _getOr2.default)(_colors.COLORS.cm_primary_blue, 'common.primary', skin);
|
|
54
64
|
const nodeRef = (0, _react.useRef)(null);
|
|
55
65
|
const recommendationsView = (0, _isEmpty2.default)(recommendations) ? null : /*#__PURE__*/_react.default.createElement(_cardsList.default, _extends({}, recommendations, {
|
|
56
66
|
customStyle: {
|
|
@@ -105,17 +115,21 @@ const SearchPage = (props, context) => {
|
|
|
105
115
|
// For new content, use standard cards
|
|
106
116
|
return /*#__PURE__*/_react.default.createElement(_cardsList.default, sectionProps);
|
|
107
117
|
};
|
|
118
|
+
const tabsView = tabs ? /*#__PURE__*/_react.default.createElement(_tabs.default, tabs) : null;
|
|
108
119
|
const cardsView = (0, _isEmpty2.default)(cards?.list) ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
109
120
|
className: _style.default.noresults
|
|
110
121
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
111
|
-
className: _style.default.
|
|
112
|
-
}, noresultsfound), /*#__PURE__*/_react.default.createElement(
|
|
122
|
+
className: _style.default.noresultsTitle
|
|
123
|
+
}, noresultsfound), /*#__PURE__*/_react.default.createElement("div", {
|
|
124
|
+
className: _style.default.noresultsDescription
|
|
125
|
+
}, noresultsfoundDescription), /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, clearFilters, {
|
|
113
126
|
"data-name": "searchPageClear",
|
|
114
|
-
className: _style.default.clear,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
127
|
+
className: (0, _classnames.default)(_style.default.clear, _style.default.center),
|
|
128
|
+
hoverBackgroundColor: (0, _cssColorFunction.convert)(`hsl(from ${defaultColor} h s calc(l*(1 - 0.08)))`),
|
|
129
|
+
customStyle: {
|
|
130
|
+
backgroundColor: defaultColor,
|
|
131
|
+
color: 'white'
|
|
132
|
+
}
|
|
119
133
|
}))), recommendationsView) : /*#__PURE__*/_react.default.createElement(_cardsGrid.default, cards);
|
|
120
134
|
|
|
121
135
|
// Convert sections object to array and sort by order
|
|
@@ -123,12 +137,7 @@ const SearchPage = (props, context) => {
|
|
|
123
137
|
key,
|
|
124
138
|
...sections[key]
|
|
125
139
|
})), (0, _sortBy2.default)('order'))(sections);
|
|
126
|
-
const
|
|
127
|
-
const contentGridSection = /*#__PURE__*/_react.default.createElement("div", {
|
|
128
|
-
className: _style.default.contentSection
|
|
129
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
130
|
-
className: _style.default.sectionHeader
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
140
|
+
const titleView = /*#__PURE__*/_react.default.createElement("div", {
|
|
132
141
|
className: _style.default.sectionTitle
|
|
133
142
|
}, /*#__PURE__*/_react.default.createElement("span", null, title), /*#__PURE__*/_react.default.createElement(_tag.default, {
|
|
134
143
|
label: count || cards.list.length.toString(),
|
|
@@ -138,9 +147,15 @@ const SearchPage = (props, context) => {
|
|
|
138
147
|
backgroundColor: _colors.COLORS.cm_grey_100,
|
|
139
148
|
color: _colors.COLORS.neutral_500
|
|
140
149
|
}
|
|
141
|
-
}))
|
|
150
|
+
}));
|
|
151
|
+
const contentGridSection = /*#__PURE__*/_react.default.createElement("div", {
|
|
152
|
+
className: _style.default.contentSection
|
|
153
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
154
|
+
className: _style.default.sectionHeader
|
|
155
|
+
}, tabsView ? tabsView : titleView, /*#__PURE__*/_react.default.createElement("div", {
|
|
142
156
|
className: _style.default.contentGrid
|
|
143
157
|
}, " ", cardsView)));
|
|
158
|
+
const handleclearFiltersOnClick = (0, _react.useCallback)(() => clearFilters.onClick(), [clearFilters]);
|
|
144
159
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
145
160
|
"data-name": "filters"
|
|
146
161
|
}, searchFilters ? /*#__PURE__*/_react.default.createElement(_filters.default, _extends({}, searchFilters, {
|
|
@@ -148,7 +163,28 @@ const SearchPage = (props, context) => {
|
|
|
148
163
|
moreFilterAriaLabel: moreFilterAriaLabel,
|
|
149
164
|
filterGroupAriaLabel: filterGroupAriaLabel,
|
|
150
165
|
sortAriaLabel: sortAriaLabel
|
|
151
|
-
})) : null, quickFilters ? /*#__PURE__*/_react.default.createElement(_quickFilters.default, quickFilters) : null,
|
|
166
|
+
})) : null, quickFilters ? /*#__PURE__*/_react.default.createElement(_quickFilters.default, quickFilters) : null, searchMessage ? /*#__PURE__*/_react.default.createElement("div", {
|
|
167
|
+
className: _style.default.searchMessageWrapper
|
|
168
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
169
|
+
className: _style.default.searchMessage
|
|
170
|
+
// eslint-disable-next-line react/no-danger
|
|
171
|
+
,
|
|
172
|
+
dangerouslySetInnerHTML: {
|
|
173
|
+
__html: searchMessage
|
|
174
|
+
}
|
|
175
|
+
}), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
176
|
+
submitValue: clearFilters.label,
|
|
177
|
+
onClick: handleclearFiltersOnClick,
|
|
178
|
+
"data-name": "searchMeassageClear",
|
|
179
|
+
className: _style.default.clear,
|
|
180
|
+
style: {
|
|
181
|
+
background: 'transparent',
|
|
182
|
+
color: defaultColor,
|
|
183
|
+
padding: '0 5px',
|
|
184
|
+
fontSize: '14px'
|
|
185
|
+
},
|
|
186
|
+
type: "link"
|
|
187
|
+
})) : null, newVersion ? /*#__PURE__*/_react.default.createElement("div", {
|
|
152
188
|
"data-name": "explorerSections",
|
|
153
189
|
className: _style.default.sectionsWrapper
|
|
154
190
|
}, sortedSections.map((section, index) => /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -163,28 +199,47 @@ const SearchPage = (props, context) => {
|
|
|
163
199
|
}, title), cardsView), popinWithCards ? /*#__PURE__*/_react.default.createElement("div", {
|
|
164
200
|
className: _style.default.popinWithCards,
|
|
165
201
|
ref: nodeRef
|
|
166
|
-
}, /*#__PURE__*/_react.default.createElement(_cmPopin.default, popinWithCards)) : null
|
|
202
|
+
}, /*#__PURE__*/_react.default.createElement(_cmPopin.default, popinWithCards)) : null, filtersModal ? /*#__PURE__*/_react.default.createElement(_baseModal.default, _extends({}, filtersModal, {
|
|
203
|
+
headerIcon: {
|
|
204
|
+
name: filtersModal.headerIcon.name,
|
|
205
|
+
backgroundColor: (0, _cssColorFunction.convert)(`color(${defaultColor} lightness(92%))`),
|
|
206
|
+
color: defaultColor
|
|
207
|
+
},
|
|
208
|
+
footer: {
|
|
209
|
+
cancelButton: filtersModal.footer.cancelButton,
|
|
210
|
+
confirmButton: {
|
|
211
|
+
...filtersModal.footer.confirmButton,
|
|
212
|
+
color: defaultColor
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}), filtersModal.filterPanelProps ? /*#__PURE__*/_react.default.createElement(_multiFilterPanel.default, filtersModal.filterPanelProps) : null) : null);
|
|
167
216
|
};
|
|
168
217
|
SearchPage.contextTypes = {
|
|
169
218
|
skin: _provider.default.childContextTypes.skin
|
|
170
219
|
};
|
|
171
220
|
SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
221
|
+
newVersion: _propTypes.default.bool,
|
|
222
|
+
searchMessage: _propTypes.default.string,
|
|
172
223
|
noresultsfound: _propTypes.default.string,
|
|
224
|
+
noresultsfoundDescription: _propTypes.default.string,
|
|
173
225
|
title: _propTypes.default.string,
|
|
174
226
|
searchFilters: _propTypes.default.shape(_filters.default.propTypes),
|
|
175
227
|
quickFilters: _propTypes.default.shape(_quickFilters.default.propTypes),
|
|
176
228
|
cards: _propTypes.default.shape(_cardsGrid.default.propTypes),
|
|
177
229
|
count: _propTypes.default.number,
|
|
178
|
-
clearFilters: _propTypes.default.shape(
|
|
230
|
+
clearFilters: _propTypes.default.shape(_buttonLink.default.propTypes),
|
|
179
231
|
recommendations: _propTypes.default.shape(_cardsList.default.propTypes),
|
|
180
232
|
moreSortAriaLabel: _propTypes.default.string,
|
|
181
233
|
moreFilterAriaLabel: _propTypes.default.string,
|
|
182
234
|
filterGroupAriaLabel: _propTypes.default.string,
|
|
183
235
|
sortAriaLabel: _propTypes.default.string,
|
|
184
236
|
popinWithCards: _propTypes.default.shape(_cmPopin.default.propTypes),
|
|
237
|
+
filtersModal: _propTypes.default.shape(_baseModal.default.propTypes),
|
|
238
|
+
tabs: _propTypes.default.shape(_tabs.default.propTypes),
|
|
185
239
|
sections: _propTypes.default.objectOf(_propTypes.default.shape({
|
|
186
240
|
title: _propTypes.default.string,
|
|
187
241
|
cards: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_card.cardPropTypes), _propTypes.default.shape(_learnerSkillCard.default.propTypes), _propTypes.default.shape(_certificationCard.default.propTypes), _propTypes.default.shape(_playlistCard.default.propTypes), _propTypes.default.shape(_learningPriorityCard.default.propTypes)])),
|
|
242
|
+
tabs: _propTypes.default.shape(_tabs.default.propTypes),
|
|
188
243
|
showMore: _propTypes.default.string,
|
|
189
244
|
onShowMore: _propTypes.default.func,
|
|
190
245
|
order: _propTypes.default.number,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_provider","_button","_filters","_cardsGrid","_cardsList","_certificationCard","_learnerSkillCard","_playlistCard","_cmPopin","_tag","_card","_learningPriorityCard","_colors","_quickFilters","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","SearchPage","props","context","title","searchFilters","quickFilters","cards","count","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","skin","defaultColor","_getOr2","nodeRef","useRef","recommendationsView","_isEmpty2","createElement","customStyle","padding","renderSection","section","sectionCount","titleWithCount","className","style","sectionTitle","label","toString","type","size","backgroundColor","COLORS","cm_grey_100","color","neutral_500","sectionProps","dataName","key","cardsView","list","noresults","noresultstxt","clear","background","sortedSections","_pipe2","_keys2","_map2","_sortBy2","hasSections","_size2","contentGridSection","contentSection","sectionHeader","contentGrid","sectionsWrapper","map","index","cardsWrapper","role","ref","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","string","shape","Filters","QuickFilters","CardsGrid","number","Button","CardsList","CMPopin","objectOf","arrayOf","oneOfType","cardPropTypes","LearnerSkillCard","CertificationCard","PlaylistCard","LearningPriorityCard","showMore","onShowMore","func","order","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel","_default","exports"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys, map, pipe, size, sortBy} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport QuickFilters from '../../../molecule/quick-filters';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n quickFilters,\n cards,\n count,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {}\n } = props;\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : (\n <CardsList {...recommendations} customStyle={{padding: 0}} />\n );\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\n\n const cardsView = isEmpty(cards?.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n // Convert sections object to array and sort by order\n const sortedSections = pipe(\n keys,\n map(key => ({key, ...sections[key]})),\n sortBy('order')\n )(sections);\n\n const hasSections = size(sortedSections) > 0;\n\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n\n return (\n <div data-name=\"filters\">\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n {quickFilters ? <QuickFilters {...quickFilters} /> : null}\n\n {hasSections ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\n ) : (\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n quickFilters: PropTypes.shape(QuickFilters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,OAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,QAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,UAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,UAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,kBAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,iBAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,aAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,QAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,IAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,KAAA,GAAAb,OAAA;AACA,IAAAc,qBAAA,GAAAZ,sBAAA,CAAAF,OAAA;AACA,IAAAe,OAAA,GAAAf,OAAA;AACA,IAAAgB,aAAA,GAAAd,sBAAA,CAAAF,OAAA;AACA,IAAAiB,MAAA,GAAAf,sBAAA,CAAAF,OAAA;AAAgC,SAAAkB,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CA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AC1BkB,UAAU,EAAEnB,kBAAS,CAACoB,IAAI;IAC1BC,KAAK,EAAErB,kBAAS,CAACM,MAAM;IACvB3E,KAAK,EAAEqE,kBAAS,CAACM,MAAM;IACvB,mBAAmB,EAAEN,kBAAS,CAACE,KAAK,CAAC;MACnCoB,uBAAuB,EAAEtB,kBAAS,CAACC,MAAM;MACzCsB,wBAAwB,EAAEvB,kBAAS,CAACC;IACtC,CAAC;EACH,CAAC,CACH;AACF,CAAC;AAAC,IAAAuB,QAAA,GAAAC,OAAA,CAAAzH,OAAA,GAEaoB,UAAU","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_cssColorFunction","_classnames","_provider","_button","_buttonLink","_filters","_cardsGrid","_cardsList","_certificationCard","_learnerSkillCard","_playlistCard","_cmPopin","_tag","_card","_learningPriorityCard","_colors","_quickFilters","_baseModal","_multiFilterPanel","_tabs","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","SearchPage","props","context","title","searchFilters","quickFilters","cards","count","noresultsfound","noresultsfoundDescription","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","filtersModal","searchMessage","newVersion","tabs","skin","defaultColor","_getOr2","COLORS","cm_primary_blue","nodeRef","useRef","recommendationsView","_isEmpty2","createElement","customStyle","padding","renderSection","section","sectionCount","titleWithCount","className","style","sectionTitle","label","toString","type","size","backgroundColor","cm_grey_100","color","neutral_500","sectionProps","dataName","key","tabsView","cardsView","list","noresults","noresultsTitle","noresultsDescription","classNames","clear","center","hoverBackgroundColor","convert","sortedSections","_pipe2","_keys2","_map2","_sortBy2","titleView","contentGridSection","contentSection","sectionHeader","contentGrid","handleclearFiltersOnClick","useCallback","onClick","searchMessageWrapper","dangerouslySetInnerHTML","__html","submitValue","background","fontSize","sectionsWrapper","map","index","cardsWrapper","role","ref","headerIcon","name","footer","cancelButton","confirmButton","filterPanelProps","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","bool","string","shape","Filters","QuickFilters","CardsGrid","number","ButtonLink","CardsList","CMPopin","BaseModal","Tabs","objectOf","arrayOf","oneOfType","cardPropTypes","LearnerSkillCard","CertificationCard","PlaylistCard","LearningPriorityCard","showMore","onShowMore","func","order","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel","_default","exports"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys, map, pipe, sortBy} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classNames from 'classnames';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport ButtonLink from '../../../atom/button-link';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport QuickFilters from '../../../molecule/quick-filters';\nimport BaseModal from '../../../molecule/base-modal';\nimport MultiFilterPanel from '../../../molecule/multi-filter-panel';\nimport Tabs from '../../../molecule/tabs';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n quickFilters,\n cards,\n count,\n noresultsfound,\n noresultsfoundDescription,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {},\n filtersModal,\n searchMessage,\n newVersion = false,\n tabs\n } = props;\n const {skin} = context;\n const defaultColor = getOr(COLORS.cm_primary_blue, 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : (\n <CardsList {...recommendations} customStyle={{padding: 0}} />\n );\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\n\n const tabsView = tabs ? <Tabs {...tabs} /> : null;\n\n const cardsView = isEmpty(cards?.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultsTitle}>{noresultsfound}</div>\n <div className={style.noresultsDescription}>{noresultsfoundDescription}</div>\n <ButtonLink\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={classNames(style.clear, style.center)}\n hoverBackgroundColor={convert(`hsl(from ${defaultColor} h s calc(l*(1 - 0.08)))`)}\n customStyle={{\n backgroundColor: defaultColor,\n color: 'white'\n }}\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n // Convert sections object to array and sort by order\n const sortedSections = pipe(\n keys,\n map(key => ({key, ...sections[key]})),\n sortBy('order')\n )(sections);\n\n const titleView = (\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n {tabsView ? tabsView : titleView}\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n const handleclearFiltersOnClick = useCallback(() => clearFilters.onClick(), [clearFilters]);\n return (\n <div data-name=\"filters\">\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n {quickFilters ? <QuickFilters {...quickFilters} /> : null}\n {searchMessage ? (\n <div className={style.searchMessageWrapper}>\n <span\n className={style.searchMessage}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: searchMessage}}\n />\n <Button\n submitValue={clearFilters.label}\n onClick={handleclearFiltersOnClick}\n data-name=\"searchMeassageClear\"\n className={style.clear}\n style={{\n background: 'transparent',\n color: defaultColor,\n padding: '0 5px',\n fontSize: '14px'\n }}\n type=\"link\"\n />\n </div>\n ) : null}\n {newVersion ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\n ) : (\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n\n {filtersModal ? (\n <BaseModal\n {...filtersModal}\n headerIcon={{\n name: filtersModal.headerIcon.name,\n backgroundColor: convert(`color(${defaultColor} lightness(92%))`),\n color: defaultColor\n }}\n footer={{\n cancelButton: filtersModal.footer.cancelButton,\n confirmButton: {\n ...filtersModal.footer.confirmButton,\n color: defaultColor\n }\n }}\n >\n {filtersModal.filterPanelProps ? (\n <MultiFilterPanel {...filtersModal.filterPanelProps} />\n ) : null}\n </BaseModal>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n newVersion: PropTypes.bool,\n searchMessage: PropTypes.string,\n noresultsfound: PropTypes.string,\n noresultsfoundDescription: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n quickFilters: PropTypes.shape(QuickFilters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\n clearFilters: PropTypes.shape(ButtonLink.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n filtersModal: PropTypes.shape(BaseModal.propTypes),\n tabs: PropTypes.shape(Tabs.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n tabs: PropTypes.shape(Tabs.propTypes),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default S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EaoB,UAAU","ignoreList":[]}
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
@value black from colors;
|
|
8
8
|
@value white from colors;
|
|
9
9
|
@value cm_grey_500 from colors;
|
|
10
|
+
@value cm_grey_700 from colors;
|
|
10
11
|
|
|
11
12
|
.cardsWrapper {
|
|
12
13
|
display: block;
|
|
13
14
|
width: 100%;
|
|
14
|
-
max-width: 1100px;
|
|
15
15
|
margin: 0px auto;
|
|
16
16
|
height: auto;
|
|
17
17
|
box-sizing: border-box;
|
|
@@ -19,6 +19,37 @@
|
|
|
19
19
|
background: white;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.searchMessageWrapper {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
max-width: 1100px;
|
|
27
|
+
width: 100%;
|
|
28
|
+
margin: 60px auto 0px;
|
|
29
|
+
position: relative;
|
|
30
|
+
align-items: baseline;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.searchMessage {
|
|
34
|
+
font-family: "Gilroy";
|
|
35
|
+
font-size: 18px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
color: cm_grey_500;
|
|
38
|
+
padding: 0 10px;
|
|
39
|
+
display: block;
|
|
40
|
+
line-height: 28px;
|
|
41
|
+
user-select: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.clear {
|
|
45
|
+
min-width: auto;
|
|
46
|
+
line-height: 28px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.center {
|
|
50
|
+
margin: 32px auto 0px;
|
|
51
|
+
}
|
|
52
|
+
|
|
22
53
|
.noresults {
|
|
23
54
|
font-family: "Gilroy";
|
|
24
55
|
border-top: solid 1px xtraLightGrey;
|
|
@@ -42,14 +73,31 @@
|
|
|
42
73
|
}
|
|
43
74
|
|
|
44
75
|
.noresults > .clear {
|
|
45
|
-
border-radius: 45px;
|
|
46
76
|
height: 40px;
|
|
47
77
|
line-height: 40px;
|
|
48
78
|
width: auto;
|
|
49
79
|
}
|
|
50
80
|
|
|
51
|
-
.
|
|
52
|
-
|
|
81
|
+
.noresultsTitle {
|
|
82
|
+
font-family: Gilroy;
|
|
83
|
+
font-weight: 700;
|
|
84
|
+
font-style: Bold;
|
|
85
|
+
font-size: 20px;
|
|
86
|
+
line-height: 28px;
|
|
87
|
+
letter-spacing: 0px;
|
|
88
|
+
text-align: center;
|
|
89
|
+
vertical-align: bottom;
|
|
90
|
+
color: cm_grey_700;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.noresultsDescription {
|
|
94
|
+
font-family: Gilroy;
|
|
95
|
+
font-weight: 500;
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
line-height: 20px;
|
|
98
|
+
text-align: center;
|
|
99
|
+
vertical-align: bottom;
|
|
100
|
+
color: cm_grey_500;
|
|
53
101
|
}
|
|
54
102
|
|
|
55
103
|
.popinWithCards {
|
|
@@ -323,6 +323,7 @@ declare namespace ExternalCourse {
|
|
|
323
323
|
}>>;
|
|
324
324
|
image: PropTypes.Requireable<string>;
|
|
325
325
|
checkbox: PropTypes.Requireable<PropTypes.InferProps<{
|
|
326
|
+
value: PropTypes.Requireable<string>;
|
|
326
327
|
title: PropTypes.Requireable<string>;
|
|
327
328
|
name: PropTypes.Requireable<string>;
|
|
328
329
|
checked: PropTypes.Requireable<boolean>;
|
|
@@ -711,6 +712,7 @@ declare namespace ExternalCourse {
|
|
|
711
712
|
searchIconAriaLabel: PropTypes.Requireable<string>;
|
|
712
713
|
}>>;
|
|
713
714
|
checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
715
|
+
value: PropTypes.Requireable<string>;
|
|
714
716
|
title: PropTypes.Requireable<string>;
|
|
715
717
|
name: PropTypes.Requireable<string>;
|
|
716
718
|
checked: PropTypes.Requireable<boolean>;
|
|
@@ -109,6 +109,15 @@ declare namespace MyLearning {
|
|
|
109
109
|
progression: PropTypes.Requireable<number>;
|
|
110
110
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
111
111
|
}> | null | undefined> | null | undefined)[]>;
|
|
112
|
+
tabs: PropTypes.Requireable<PropTypes.InferProps<{
|
|
113
|
+
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
114
|
+
title: PropTypes.Requireable<string>;
|
|
115
|
+
count: PropTypes.Requireable<number>;
|
|
116
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
117
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
118
|
+
isActive: PropTypes.Requireable<boolean>;
|
|
119
|
+
}> | null | undefined)[]>;
|
|
120
|
+
}>>;
|
|
112
121
|
customStyle: PropTypes.Requireable<{
|
|
113
122
|
[x: string]: string | null | undefined;
|
|
114
123
|
}>;
|
|
@@ -96,6 +96,15 @@ declare namespace TeamsDashboard {
|
|
|
96
96
|
progression: PropTypes.Requireable<number>;
|
|
97
97
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
98
98
|
}> | null | undefined> | null | undefined)[]>;
|
|
99
|
+
tabs: PropTypes.Requireable<PropTypes.InferProps<{
|
|
100
|
+
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
101
|
+
title: PropTypes.Requireable<string>;
|
|
102
|
+
count: PropTypes.Requireable<number>;
|
|
103
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
104
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
105
|
+
isActive: PropTypes.Requireable<boolean>;
|
|
106
|
+
}> | null | undefined)[]>;
|
|
107
|
+
}>>;
|
|
99
108
|
customStyle: PropTypes.Requireable<{
|
|
100
109
|
[x: string]: string | null | undefined;
|
|
101
110
|
}>;
|
|
@@ -16,7 +16,7 @@ const EXTERNAL_CONTENT_ICONS = exports.EXTERNAL_CONTENT_ICONS = {
|
|
|
16
16
|
},
|
|
17
17
|
article: {
|
|
18
18
|
icon: _novaIcons.NovaCompositionCoorpacademyArticle,
|
|
19
|
-
color: _colors.COLORS.
|
|
19
|
+
color: _colors.COLORS.cm_blue_article
|
|
20
20
|
},
|
|
21
21
|
video: {
|
|
22
22
|
icon: _novaIcons.NovaCompositionCoorpacademyVideo,
|
|
@@ -34,7 +34,7 @@ const ICONS_TYPES = exports.ICONS_TYPES = {
|
|
|
34
34
|
},
|
|
35
35
|
article: {
|
|
36
36
|
iconName: 'file-lines',
|
|
37
|
-
iconColor: _colors.COLORS.
|
|
37
|
+
iconColor: _colors.COLORS.cm_blue_article
|
|
38
38
|
},
|
|
39
39
|
video: {
|
|
40
40
|
iconName: 'circle-play',
|