@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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
.tabs{
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
flex-grow: 2;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tab{
|
|
9
|
+
font-family: 'Gilroy';
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
line-height: 20px;
|
|
13
|
+
letter-spacing: 0px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
padding: 8px 16px;
|
|
16
|
+
border-radius: 5px;
|
|
17
|
+
min-width: 160px;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
margin: 0px 8px 0px 0px;
|
|
22
|
+
background-color: var(--bg);
|
|
23
|
+
transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tab:hover {
|
|
27
|
+
background-color: var(--hover-bg);
|
|
28
|
+
}
|
|
@@ -3,6 +3,7 @@ declare function TitleAndCheckBoxWrapper(props: any): JSX.Element;
|
|
|
3
3
|
declare namespace TitleAndCheckBoxWrapper {
|
|
4
4
|
namespace propTypes {
|
|
5
5
|
const checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
+
value: PropTypes.Requireable<string>;
|
|
6
7
|
title: PropTypes.Requireable<string>;
|
|
7
8
|
name: PropTypes.Requireable<string>;
|
|
8
9
|
checked: PropTypes.Requireable<boolean>;
|
|
@@ -132,6 +132,7 @@ declare namespace BrandLearningPriorities {
|
|
|
132
132
|
}>>;
|
|
133
133
|
image: PropTypes.Requireable<string>;
|
|
134
134
|
checkbox: PropTypes.Requireable<PropTypes.InferProps<{
|
|
135
|
+
value: PropTypes.Requireable<string>;
|
|
135
136
|
title: PropTypes.Requireable<string>;
|
|
136
137
|
name: PropTypes.Requireable<string>;
|
|
137
138
|
checked: PropTypes.Requireable<boolean>;
|
|
@@ -145,6 +145,7 @@ declare const ContentSkillModal: {
|
|
|
145
145
|
}>>;
|
|
146
146
|
image: import("prop-types").Requireable<string>;
|
|
147
147
|
checkbox: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
148
|
+
value: import("prop-types").Requireable<string>;
|
|
148
149
|
title: import("prop-types").Requireable<string>;
|
|
149
150
|
name: import("prop-types").Requireable<string>;
|
|
150
151
|
checked: import("prop-types").Requireable<boolean>;
|
|
@@ -533,6 +534,7 @@ declare const ContentSkillModal: {
|
|
|
533
534
|
searchIconAriaLabel: import("prop-types").Requireable<string>;
|
|
534
535
|
}>>;
|
|
535
536
|
checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
537
|
+
value: import("prop-types").Requireable<string>;
|
|
536
538
|
title: import("prop-types").Requireable<string>;
|
|
537
539
|
name: import("prop-types").Requireable<string>;
|
|
538
540
|
checked: import("prop-types").Requireable<boolean>;
|
|
@@ -719,6 +721,7 @@ declare const ContentSkillModal: {
|
|
|
719
721
|
count: import("prop-types").Requireable<number>;
|
|
720
722
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
721
723
|
}> | null | undefined)[]>;
|
|
724
|
+
emptySearchResult: import("prop-types").Requireable<string>;
|
|
722
725
|
searchOptions: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
723
726
|
value: import("prop-types").Requireable<string>;
|
|
724
727
|
placeholder: import("prop-types").Validator<string>;
|
|
@@ -745,8 +748,28 @@ declare const ContentSkillModal: {
|
|
|
745
748
|
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
746
749
|
theme: import("prop-types").Validator<string>;
|
|
747
750
|
ariaLabel: import("prop-types").Validator<string>;
|
|
751
|
+
id: import("prop-types").Requireable<string>;
|
|
748
752
|
}> | null | undefined)[]>;
|
|
749
753
|
}>>;
|
|
754
|
+
}> | import("prop-types").InferProps<{
|
|
755
|
+
type: import("prop-types").Requireable<string>;
|
|
756
|
+
options: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
757
|
+
title: import("prop-types").Validator<string>;
|
|
758
|
+
titleAriaLabel: import("prop-types").Requireable<string>;
|
|
759
|
+
onClear: import("prop-types").Validator<(...args: any[]) => any>;
|
|
760
|
+
options: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
761
|
+
label: import("prop-types").Validator<string>;
|
|
762
|
+
min: import("prop-types").Validator<number>;
|
|
763
|
+
max: import("prop-types").Validator<number>;
|
|
764
|
+
step: import("prop-types").Requireable<number>;
|
|
765
|
+
value: import("prop-types").Requireable<(number | null | undefined)[]>;
|
|
766
|
+
minLabel: import("prop-types").Requireable<string>;
|
|
767
|
+
maxLabel: import("prop-types").Requireable<string>;
|
|
768
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
769
|
+
theme: import("prop-types").Requireable<string>;
|
|
770
|
+
selected: import("prop-types").Requireable<boolean>;
|
|
771
|
+
}>>;
|
|
772
|
+
}>>;
|
|
750
773
|
}> | null | undefined> | null | undefined)[]>;
|
|
751
774
|
}>>>;
|
|
752
775
|
modal: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
@@ -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
|
+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: {
|
|
|
142
142
|
}>>;
|
|
143
143
|
image: PropTypes.Requireable<string>;
|
|
144
144
|
checkbox: PropTypes.Requireable<PropTypes.InferProps<{
|
|
145
|
+
value: PropTypes.Requireable<string>;
|
|
145
146
|
title: PropTypes.Requireable<string>;
|
|
146
147
|
name: PropTypes.Requireable<string>;
|
|
147
148
|
checked: PropTypes.Requireable<boolean>;
|
|
@@ -530,6 +531,7 @@ declare const ContentSkillModalPropTypes: {
|
|
|
530
531
|
searchIconAriaLabel: PropTypes.Requireable<string>;
|
|
531
532
|
}>>;
|
|
532
533
|
checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
534
|
+
value: PropTypes.Requireable<string>;
|
|
533
535
|
title: PropTypes.Requireable<string>;
|
|
534
536
|
name: PropTypes.Requireable<string>;
|
|
535
537
|
checked: PropTypes.Requireable<boolean>;
|
|
@@ -716,6 +718,7 @@ declare const ContentSkillModalPropTypes: {
|
|
|
716
718
|
count: PropTypes.Requireable<number>;
|
|
717
719
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
718
720
|
}> | null | undefined)[]>;
|
|
721
|
+
emptySearchResult: PropTypes.Requireable<string>;
|
|
719
722
|
searchOptions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
720
723
|
value: PropTypes.Requireable<string>;
|
|
721
724
|
placeholder: PropTypes.Validator<string>;
|
|
@@ -742,8 +745,28 @@ declare const ContentSkillModalPropTypes: {
|
|
|
742
745
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
743
746
|
theme: PropTypes.Validator<string>;
|
|
744
747
|
ariaLabel: PropTypes.Validator<string>;
|
|
748
|
+
id: PropTypes.Requireable<string>;
|
|
745
749
|
}> | null | undefined)[]>;
|
|
746
750
|
}>>;
|
|
751
|
+
}> | PropTypes.InferProps<{
|
|
752
|
+
type: PropTypes.Requireable<string>;
|
|
753
|
+
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
754
|
+
title: PropTypes.Validator<string>;
|
|
755
|
+
titleAriaLabel: PropTypes.Requireable<string>;
|
|
756
|
+
onClear: PropTypes.Validator<(...args: any[]) => any>;
|
|
757
|
+
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
758
|
+
label: PropTypes.Validator<string>;
|
|
759
|
+
min: PropTypes.Validator<number>;
|
|
760
|
+
max: PropTypes.Validator<number>;
|
|
761
|
+
step: PropTypes.Requireable<number>;
|
|
762
|
+
value: PropTypes.Requireable<(number | null | undefined)[]>;
|
|
763
|
+
minLabel: PropTypes.Requireable<string>;
|
|
764
|
+
maxLabel: PropTypes.Requireable<string>;
|
|
765
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
766
|
+
theme: PropTypes.Requireable<string>;
|
|
767
|
+
selected: PropTypes.Requireable<boolean>;
|
|
768
|
+
}>>;
|
|
769
|
+
}>>;
|
|
747
770
|
}> | null | undefined> | null | undefined)[]>;
|
|
748
771
|
}>>>;
|
|
749
772
|
modal: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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7 @@ declare const FilterCheckboxAndSearch: {
|
|
|
15
15
|
count: import("prop-types").Requireable<number>;
|
|
16
16
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
17
17
|
}> | null | undefined)[]>;
|
|
18
|
+
emptySearchResult: import("prop-types").Requireable<string>;
|
|
18
19
|
searchOptions: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
19
20
|
value: import("prop-types").Requireable<string>;
|
|
20
21
|
placeholder: import("prop-types").Validator<string>;
|
|
@@ -31,6 +32,27 @@ declare const FilterCheckboxAndSearch: {
|
|
|
31
32
|
};
|
|
32
33
|
contextTypes: {
|
|
33
34
|
translate: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
35
|
+
skin: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
36
|
+
common: import("prop-types").Requireable<{
|
|
37
|
+
[x: string]: any;
|
|
38
|
+
}>;
|
|
39
|
+
images: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
40
|
+
'logo-mobile': import("prop-types").Requireable<any>;
|
|
41
|
+
logo: import("prop-types").Requireable<any>;
|
|
42
|
+
'logo-email': import("prop-types").Requireable<any>;
|
|
43
|
+
login: import("prop-types").Requireable<any>;
|
|
44
|
+
}>>;
|
|
45
|
+
icons: import("prop-types").Requireable<{
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
}>;
|
|
48
|
+
mod: import("prop-types").Requireable<{
|
|
49
|
+
[x: string]: any;
|
|
50
|
+
}>;
|
|
51
|
+
courses: import("prop-types").Requireable<any[]>;
|
|
52
|
+
texts: import("prop-types").Requireable<{
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
}>;
|
|
55
|
+
}>>;
|
|
34
56
|
};
|
|
35
57
|
};
|
|
36
58
|
export default FilterCheckboxAndSearch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkH1B,CAAC;AASF,eAAe,uBAAuB,CAAC"}
|
|
@@ -2,8 +2,10 @@ import _toString from "lodash/fp/toString";
|
|
|
2
2
|
import _size from "lodash/fp/size";
|
|
3
3
|
import _pipe from "lodash/fp/pipe";
|
|
4
4
|
import _isEmpty from "lodash/fp/isEmpty";
|
|
5
|
+
import _getOr from "lodash/fp/getOr";
|
|
5
6
|
import _filter from "lodash/fp/filter";
|
|
6
7
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
8
|
+
import { convert } from 'css-color-function';
|
|
7
9
|
import Title from '../../atom/title';
|
|
8
10
|
import Tag from '../../atom/tag';
|
|
9
11
|
import ButtonLink from '../../atom/button-link';
|
|
@@ -32,11 +34,17 @@ const CHECKBOX_TITLE_STYLE = {
|
|
|
32
34
|
const INITIAL_VISIBLE_OPTIONS = 5;
|
|
33
35
|
const FilterCheckboxAndSearch = (props, context) => {
|
|
34
36
|
const {
|
|
37
|
+
skin
|
|
38
|
+
} = context;
|
|
39
|
+
const primaryColor = _getOr(COLORS.cm_primary_blue, 'common.primary', skin);
|
|
40
|
+
const {
|
|
41
|
+
id,
|
|
35
42
|
title,
|
|
36
43
|
titleAriaLabel,
|
|
37
44
|
searchOptions,
|
|
38
45
|
onClear,
|
|
39
|
-
options
|
|
46
|
+
options,
|
|
47
|
+
emptySearchResult
|
|
40
48
|
} = props;
|
|
41
49
|
const translate = GetTranslateFromContext(context);
|
|
42
50
|
const [showMore, setShowMore] = useState(false);
|
|
@@ -51,6 +59,7 @@ const FilterCheckboxAndSearch = (props, context) => {
|
|
|
51
59
|
return showMore ? options : options.slice(0, INITIAL_VISIBLE_OPTIONS);
|
|
52
60
|
}, [options, showMore]);
|
|
53
61
|
return /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
"data-name": id,
|
|
54
63
|
"data-testid": "filter-checkbox-and-search-container",
|
|
55
64
|
className: style.container
|
|
56
65
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -65,7 +74,11 @@ const FilterCheckboxAndSearch = (props, context) => {
|
|
|
65
74
|
}), hasSelectedFilters ? /*#__PURE__*/React.createElement(Tag, {
|
|
66
75
|
label: _toString(selectedFiltersCount),
|
|
67
76
|
type: "info",
|
|
68
|
-
size: "S"
|
|
77
|
+
size: "S",
|
|
78
|
+
customStyle: {
|
|
79
|
+
color: primaryColor,
|
|
80
|
+
backgroundColor: convert(`color(${primaryColor} lightness(92%))`)
|
|
81
|
+
}
|
|
69
82
|
}) : null), hasSelectedFilters ? /*#__PURE__*/React.createElement("div", {
|
|
70
83
|
className: style.clearButtonContainer
|
|
71
84
|
}, /*#__PURE__*/React.createElement(ButtonLink, {
|
|
@@ -83,7 +96,7 @@ const FilterCheckboxAndSearch = (props, context) => {
|
|
|
83
96
|
}, _isEmpty(visibleOptions) ? /*#__PURE__*/React.createElement("p", {
|
|
84
97
|
className: style.emptySearchResult,
|
|
85
98
|
"data-testid": "filter-checkbox-and-search-empty-message"
|
|
86
|
-
},
|
|
99
|
+
}, emptySearchResult) : visibleOptions.map(({
|
|
87
100
|
value,
|
|
88
101
|
label,
|
|
89
102
|
selected,
|
|
@@ -95,14 +108,17 @@ const FilterCheckboxAndSearch = (props, context) => {
|
|
|
95
108
|
"data-testid": `filter-checkbox-and-search-option-row-${index}`
|
|
96
109
|
}, /*#__PURE__*/React.createElement(CheckboxWithTitle, {
|
|
97
110
|
key: value,
|
|
111
|
+
value: value,
|
|
98
112
|
title: label,
|
|
99
113
|
onChange: onClick,
|
|
100
114
|
name: label,
|
|
101
115
|
checked: selected,
|
|
102
116
|
customStyle: CHECKBOX_TITLE_STYLE
|
|
103
117
|
}), /*#__PURE__*/React.createElement("p", {
|
|
118
|
+
"data-name": 'counter',
|
|
104
119
|
className: style.optionCount
|
|
105
120
|
}, count)))), _size(options) > INITIAL_VISIBLE_OPTIONS ? /*#__PURE__*/React.createElement(ButtonLink, {
|
|
121
|
+
"data-name": 'show-more-button',
|
|
106
122
|
label: showMore ? translate('Show less') : translate('Show more'),
|
|
107
123
|
type: "text",
|
|
108
124
|
icon: {
|
|
@@ -120,7 +136,8 @@ const FilterCheckboxAndSearch = (props, context) => {
|
|
|
120
136
|
};
|
|
121
137
|
FilterCheckboxAndSearch.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
122
138
|
FilterCheckboxAndSearch.contextTypes = {
|
|
123
|
-
translate: Provider.childContextTypes.translate
|
|
139
|
+
translate: Provider.childContextTypes.translate,
|
|
140
|
+
skin: Provider.childContextTypes.skin
|
|
124
141
|
};
|
|
125
142
|
export default FilterCheckboxAndSearch;
|
|
126
143
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useCallback","useMemo","useState","Title","Tag","ButtonLink","Provider","GetTranslateFromContext","CheckboxWithTitle","COLORS","Search","style","propTypes","CLEAR_BUTTON_STYLE","fontWeight","padding","SHOW_BUTTON_STYLE","fontSize","fontFamily","CHECKBOX_TITLE_STYLE","marginRight","INITIAL_VISIBLE_OPTIONS","FilterCheckboxAndSearch","props","context","title","titleAriaLabel","searchOptions","onClear","options","translate","showMore","setShowMore","selectedFiltersCount","_pipe","_filter","selected","_size","hasSelectedFilters","handleShowMore","visibleOptions","slice","createElement","className","container","header","titleAndTagWrapper","ariaLabel","label","_toString","type","size","clearButtonContainer","onClick","customStyle","hoverColor","cm_grey_700","search","optionsContainer","_isEmpty","emptySearchResult","map","value","count","index","key","optionRow","onChange","name","checked","optionCount","icon","position","faIcon","color","cm_grey_500","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport {filter, isEmpty, pipe, size, toString} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport {COLORS} from '../../variables/colors';\nimport Search from '../../atom/input-search';\nimport style from './style.css';\nimport propTypes, {FilterCheckboxAndSearchProps} from './props-types';\n\nconst CLEAR_BUTTON_STYLE = {fontWeight: 'normal', padding: 0};\nconst SHOW_BUTTON_STYLE = {\n fontSize: '14px',\n fontWeight: '600',\n fontFamily: 'Gilroy',\n padding: '0'\n};\nconst CHECKBOX_TITLE_STYLE = {\n marginRight: '16px',\n fontSize: '14px',\n fontFamily: 'Gilroy',\n fontWeight: 'normal'\n};\nconst INITIAL_VISIBLE_OPTIONS = 5;\n\nconst FilterCheckboxAndSearch = (\n props: FilterCheckboxAndSearchProps,\n context: WebContextValues\n) => {\n const {title, titleAriaLabel, searchOptions, onClear, options} = props;\n const translate = GetTranslateFromContext(context);\n const [showMore, setShowMore] = useState(false);\n const selectedFiltersCount = pipe(filter({selected: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n\n const handleShowMore = useCallback(() => {\n setShowMore(!showMore);\n }, [showMore]);\n\n const visibleOptions = useMemo(() => {\n return showMore ? options : options.slice(0, INITIAL_VISIBLE_OPTIONS);\n }, [options, showMore]);\n\n return (\n <div data-testid=\"filter-checkbox-and-search-container\" className={style.container}>\n <div className={style.header} data-testid=\"filter-checkbox-and-search-header\">\n <div\n className={style.titleAndTagWrapper}\n data-testid=\"filter-checkbox-and-searh-title-and-tag-wrapper\"\n >\n <Title title={title} ariaLabel={titleAriaLabel} />\n {hasSelectedFilters ? (\n <Tag label={toString(selectedFiltersCount)} type=\"info\" size=\"S\" />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.clearButtonContainer}>\n <ButtonLink\n label={translate('clear')}\n type=\"text\"\n data-testid=\"filter-checkbox-and-search-clear-button\"\n onClick={onClear}\n customStyle={CLEAR_BUTTON_STYLE}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n {searchOptions ? (\n <div className={style.search}>\n <Search {...searchOptions} />\n </div>\n ) : null}\n <div\n data-testid=\"filter-checkbox-and-search-options-container\"\n className={style.optionsContainer}\n >\n {isEmpty(visibleOptions) ? (\n <p\n className={style.emptySearchResult}\n data-testid=\"filter-checkbox-and-search-empty-message\"\n >\n No results... Try adjusting your search.\n </p>\n ) : (\n visibleOptions.map(({value, label, selected, count, onClick}, index) => (\n <div\n key={value}\n className={style.optionRow}\n data-testid={`filter-checkbox-and-search-option-row-${index}`}\n >\n <CheckboxWithTitle\n key={value}\n title={label}\n onChange={onClick}\n name={label}\n checked={selected}\n customStyle={CHECKBOX_TITLE_STYLE}\n />\n <p className={style.optionCount}>{count}</p>\n </div>\n ))\n )}\n </div>\n {size(options) > INITIAL_VISIBLE_OPTIONS ? (\n <ButtonLink\n label={showMore ? translate('Show less') : translate('Show more')}\n type=\"text\"\n icon={{\n position: 'right',\n faIcon: {\n name: showMore ? 'chevron-up' : 'chevron-down',\n size: 16,\n color: COLORS.cm_grey_500\n }\n }}\n customStyle={SHOW_BUTTON_STYLE}\n onClick={handleShowMore}\n data-testid=\"filter-checkbox-and-search-show-button\"\n />\n ) : null}\n </div>\n );\n};\n\nFilterCheckboxAndSearch.propTypes = propTypes;\n\nFilterCheckboxAndSearch.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterCheckboxAndSearch;\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAO,OAAO;AAE3D,OAAOC,KAAK,MAAM,k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AAE;QACNL,IAAI,EAAErC,QAAQ,GAAG,YAAY,GAAG,cAAc;QAC9CoB,IAAI,EAAE,EAAE;QACRuB,KAAK,EAAEjE,MAAM,CAACkE;MAChB;IACF,CAAE;IACFrB,WAAW,EAAEtC,iBAAkB;IAC/BqC,OAAO,EAAEd,cAAe;IACxB,eAAY;EAAwC,CACrD,CAAC,GACA,IACD,CAAC;AAEV,CAAC;AAEDjB,uBAAuB,CAACV,SAAS,GAAAgE,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGlE,SAAS;AAE7CU,uBAAuB,CAACyD,YAAY,GAAG;EACrCjD,SAAS,EAAExB,QAAQ,CAAC0E,iBAAiB,CAAClD;AACxC,CAAC;AAED,eAAeR,uBAAuB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","useMemo","useState","convert","Title","Tag","ButtonLink","Provider","GetTranslateFromContext","CheckboxWithTitle","COLORS","Search","style","propTypes","CLEAR_BUTTON_STYLE","fontWeight","padding","SHOW_BUTTON_STYLE","fontSize","fontFamily","CHECKBOX_TITLE_STYLE","marginRight","INITIAL_VISIBLE_OPTIONS","FilterCheckboxAndSearch","props","context","skin","primaryColor","_getOr","cm_primary_blue","id","title","titleAriaLabel","searchOptions","onClear","options","emptySearchResult","translate","showMore","setShowMore","selectedFiltersCount","_pipe","_filter","selected","_size","hasSelectedFilters","handleShowMore","visibleOptions","slice","createElement","className","container","header","titleAndTagWrapper","ariaLabel","label","_toString","type","size","customStyle","color","backgroundColor","clearButtonContainer","onClick","hoverColor","cm_grey_700","search","optionsContainer","_isEmpty","map","value","count","index","key","optionRow","onChange","name","checked","optionCount","icon","position","faIcon","cm_grey_500","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport {filter, getOr, isEmpty, pipe, size, toString} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Title from '../../atom/title';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport {COLORS} from '../../variables/colors';\nimport Search from '../../atom/input-search';\nimport style from './style.css';\nimport propTypes, {FilterCheckboxAndSearchProps} from './props-types';\n\nconst CLEAR_BUTTON_STYLE = {fontWeight: 'normal', padding: 0};\nconst SHOW_BUTTON_STYLE = {\n fontSize: '14px',\n fontWeight: '600',\n fontFamily: 'Gilroy',\n padding: '0'\n};\nconst CHECKBOX_TITLE_STYLE = {\n marginRight: '16px',\n fontSize: '14px',\n fontFamily: 'Gilroy',\n fontWeight: 'normal'\n};\nconst INITIAL_VISIBLE_OPTIONS = 5;\n\nconst FilterCheckboxAndSearch = (\n props: FilterCheckboxAndSearchProps,\n context: WebContextValues\n) => {\n const {skin} = context;\n const primaryColor = getOr(COLORS.cm_primary_blue, 'common.primary', skin);\n const {id, title, titleAriaLabel, searchOptions, onClear, options, emptySearchResult} = props;\n const translate = GetTranslateFromContext(context);\n const [showMore, setShowMore] = useState(false);\n const selectedFiltersCount = pipe(filter({selected: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n\n const handleShowMore = useCallback(() => {\n setShowMore(!showMore);\n }, [showMore]);\n\n const visibleOptions = useMemo(() => {\n return showMore ? options : options.slice(0, INITIAL_VISIBLE_OPTIONS);\n }, [options, showMore]);\n\n return (\n <div\n data-name={id}\n data-testid=\"filter-checkbox-and-search-container\"\n className={style.container}\n >\n <div className={style.header} data-testid=\"filter-checkbox-and-search-header\">\n <div\n className={style.titleAndTagWrapper}\n data-testid=\"filter-checkbox-and-searh-title-and-tag-wrapper\"\n >\n <Title title={title} ariaLabel={titleAriaLabel} />\n {hasSelectedFilters ? (\n <Tag\n label={toString(selectedFiltersCount)}\n type=\"info\"\n size=\"S\"\n customStyle={{\n color: primaryColor,\n backgroundColor: convert(`color(${primaryColor} lightness(92%))`)\n }}\n />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.clearButtonContainer}>\n <ButtonLink\n label={translate('clear')}\n type=\"text\"\n data-testid=\"filter-checkbox-and-search-clear-button\"\n onClick={onClear}\n customStyle={CLEAR_BUTTON_STYLE}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n {searchOptions ? (\n <div className={style.search}>\n <Search {...searchOptions} />\n </div>\n ) : null}\n <div\n data-testid=\"filter-checkbox-and-search-options-container\"\n className={style.optionsContainer}\n >\n {isEmpty(visibleOptions) ? (\n <p\n className={style.emptySearchResult}\n data-testid=\"filter-checkbox-and-search-empty-message\"\n >\n {emptySearchResult}\n </p>\n ) : (\n visibleOptions.map(({value, label, selected, count, onClick}, index) => (\n <div\n key={value}\n className={style.optionRow}\n data-testid={`filter-checkbox-and-search-option-row-${index}`}\n >\n <CheckboxWithTitle\n key={value}\n value={value}\n title={label}\n onChange={onClick}\n name={label}\n checked={selected}\n customStyle={CHECKBOX_TITLE_STYLE}\n />\n <p data-name={'counter'} className={style.optionCount}>\n {count}\n </p>\n </div>\n ))\n )}\n </div>\n {size(options) > INITIAL_VISIBLE_OPTIONS ? (\n <ButtonLink\n data-name={'show-more-button'}\n label={showMore ? translate('Show less') : translate('Show more')}\n type=\"text\"\n icon={{\n position: 'right',\n faIcon: {\n name: showMore ? 'chevron-up' : 'chevron-down',\n size: 16,\n color: COLORS.cm_grey_500\n }\n }}\n customStyle={SHOW_BUTTON_STYLE}\n onClick={handleShowMore}\n data-testid=\"filter-checkbox-and-search-show-button\"\n />\n ) : null}\n </div>\n );\n};\n\nFilterCheckboxAndSearch.propTypes = propTypes;\n\nFilterCheckboxAndSearch.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nexport default FilterCheckboxAndSearch;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,OAAO,E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,WAAW,EAAEvC;EAAqB,CACnC,CAAC,eACFrB,KAAA,CAAAkD,aAAA;IAAG,aAAW,SAAU;IAACC,SAAS,EAAEtC,KAAK,CAACkE;EAAY,GACnDP,KACA,CACA,CACN,CAEA,CAAC,EACL3B,KAAA,CAAKT,OAAO,CAAC,GAAGb,uBAAuB,gBACtCvB,KAAA,CAAAkD,aAAA,CAAC3C,UAAU;IACT,aAAW,kBAAmB;IAC9BiD,KAAK,EAAEjB,QAAQ,GAAGD,SAAS,CAAC,WAAW,CAAC,GAAGA,SAAS,CAAC,WAAW,CAAE;IAClEoB,IAAI,EAAC,MAAM;IACXsB,IAAI,EAAE;MACJC,QAAQ,EAAE,OAAO;MACjBC,MAAM,EAAE;QACNL,IAAI,EAAEtC,QAAQ,GAAG,YAAY,GAAG,cAAc;QAC9CoB,IAAI,EAAE,EAAE;QACRE,KAAK,EAAElD,MAAM,CAACwE;MAChB;IACF,CAAE;IACFvB,WAAW,EAAE1C,iBAAkB;IAC/B8C,OAAO,EAAEjB,cAAe;IACxB,eAAY;EAAwC,CACrD,CAAC,GACA,IACD,CAAC;AAEV,CAAC;AAEDvB,uBAAuB,CAACV,SAAS,GAAAsE,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGxE,SAAS;AAE7CU,uBAAuB,CAAC+D,YAAY,GAAG;EACrCjD,SAAS,EAAE9B,QAAQ,CAACgF,iBAAiB,CAAClD,SAAS;EAC/CX,IAAI,EAAEnB,QAAQ,CAACgF,iBAAiB,CAAC7D;AACnC,CAAC;AAED,eAAeH,uBAAuB","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@ declare const propTypes: {
|
|
|
11
11
|
count: PropTypes.Requireable<number>;
|
|
12
12
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
13
|
}> | null | undefined)[]>;
|
|
14
|
+
emptySearchResult: PropTypes.Requireable<string>;
|
|
14
15
|
searchOptions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
16
|
value: PropTypes.Requireable<string>;
|
|
16
17
|
placeholder: PropTypes.Validator<string>;
|
|
@@ -44,10 +45,12 @@ declare type SearchType = {
|
|
|
44
45
|
dataTestId?: string;
|
|
45
46
|
};
|
|
46
47
|
export declare type FilterCheckboxAndSearchProps = {
|
|
48
|
+
id?: string;
|
|
47
49
|
title: string;
|
|
48
50
|
titleAriaLabel?: string;
|
|
49
51
|
onClear: () => void;
|
|
50
52
|
searchOptions: SearchType;
|
|
53
|
+
emptySearchResult?: string;
|
|
51
54
|
options: FilterCheckboxAndSearchOptions[];
|
|
52
55
|
};
|
|
53
56
|
export default propTypes;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBd,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,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,UAAU,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,8BAA8B,EAAE,CAAC;CAC3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props-types.js","names":["PropTypes","Search","propTypes","title","string","titleAriaLabel","onClear","func","options","arrayOf","shape","label","value","selected","bool","ref","count","number","onClick","searchOptions"],"sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Search from '../../atom/input-search';\n\nconst propTypes = {\n title: PropTypes.string,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n value: PropTypes.string,\n selected: PropTypes.bool,\n ref: PropTypes.string,\n count: PropTypes.number,\n onClick: PropTypes.func\n })\n ),\n searchOptions: PropTypes.shape(Search.propTypes)\n};\n\nexport type FilterCheckboxAndSearchOptions = {\n label: string;\n value: string;\n selected: boolean;\n ref: string;\n count: number;\n onClick: () => void;\n};\n\ntype SearchType = {\n value?: string;\n placeholder: string;\n onChange?: () => void;\n onClear?: () => void;\n onFocus?: () => void;\n onBlur?: () => void;\n theme?: 'default' | 'coorpmanager';\n dataTestId?: string;\n};\n\nexport type FilterCheckboxAndSearchProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n searchOptions: SearchType;\n options: FilterCheckboxAndSearchOptions[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,MAAM,MAAM,yBAAyB;AAE5C,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEH,SAAS,CAACI,MAAM;EACvBC,cAAc,EAAEL,SAAS,CAACI,MAAM;EAChCE,OAAO,EAAEN,SAAS,CAACO,IAAI;EACvBC,OAAO,EAAER,SAAS,CAACS,OAAO,CACxBT,SAAS,CAACU,KAAK,CAAC;IACdC,KAAK,EAAEX,SAAS,CAACI,MAAM;IACvBQ,KAAK,EAAEZ,SAAS,CAACI,MAAM;IACvBS,QAAQ,EAAEb,SAAS,CAACc,IAAI;IACxBC,GAAG,EAAEf,SAAS,CAACI,MAAM;IACrBY,KAAK,EAAEhB,SAAS,CAACiB,MAAM;IACvBC,OAAO,EAAElB,SAAS,CAACO;EACrB,CAAC,CACH,CAAC;EACDY,
|
|
1
|
+
{"version":3,"file":"props-types.js","names":["PropTypes","Search","propTypes","title","string","titleAriaLabel","onClear","func","options","arrayOf","shape","label","value","selected","bool","ref","count","number","onClick","emptySearchResult","searchOptions"],"sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Search from '../../atom/input-search';\n\nconst propTypes = {\n title: PropTypes.string,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n value: PropTypes.string,\n selected: PropTypes.bool,\n ref: PropTypes.string,\n count: PropTypes.number,\n onClick: PropTypes.func\n })\n ),\n emptySearchResult: PropTypes.string,\n searchOptions: PropTypes.shape(Search.propTypes)\n};\n\nexport type FilterCheckboxAndSearchOptions = {\n label: string;\n value: string;\n selected: boolean;\n ref: string;\n count: number;\n onClick: () => void;\n};\n\ntype SearchType = {\n value?: string;\n placeholder: string;\n onChange?: () => void;\n onClear?: () => void;\n onFocus?: () => void;\n onBlur?: () => void;\n theme?: 'default' | 'coorpmanager';\n dataTestId?: string;\n};\n\nexport type FilterCheckboxAndSearchProps = {\n id?: string;\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n searchOptions: SearchType;\n emptySearchResult?: string;\n options: FilterCheckboxAndSearchOptions[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,MAAM,MAAM,yBAAyB;AAE5C,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEH,SAAS,CAACI,MAAM;EACvBC,cAAc,EAAEL,SAAS,CAACI,MAAM;EAChCE,OAAO,EAAEN,SAAS,CAACO,IAAI;EACvBC,OAAO,EAAER,SAAS,CAACS,OAAO,CACxBT,SAAS,CAACU,KAAK,CAAC;IACdC,KAAK,EAAEX,SAAS,CAACI,MAAM;IACvBQ,KAAK,EAAEZ,SAAS,CAACI,MAAM;IACvBS,QAAQ,EAAEb,SAAS,CAACc,IAAI;IACxBC,GAAG,EAAEf,SAAS,CAACI,MAAM;IACrBY,KAAK,EAAEhB,SAAS,CAACiB,MAAM;IACvBC,OAAO,EAAElB,SAAS,CAACO;EACrB,CAAC,CACH,CAAC;EACDY,iBAAiB,EAAEnB,SAAS,CAACI,MAAM;EACnCgB,aAAa,EAAEpB,SAAS,CAACU,KAAK,CAACT,MAAM,CAACC,SAAS;AACjD,CAAC;AAgCD,eAAeA,SAAS","ignoreList":[]}
|
|
@@ -19,6 +19,27 @@ declare const FilterChip: {
|
|
|
19
19
|
};
|
|
20
20
|
contextTypes: {
|
|
21
21
|
translate: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
22
|
+
skin: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
23
|
+
common: import("prop-types").Requireable<{
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}>;
|
|
26
|
+
images: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
27
|
+
'logo-mobile': import("prop-types").Requireable<any>;
|
|
28
|
+
logo: import("prop-types").Requireable<any>;
|
|
29
|
+
'logo-email': import("prop-types").Requireable<any>;
|
|
30
|
+
login: import("prop-types").Requireable<any>;
|
|
31
|
+
}>>;
|
|
32
|
+
icons: import("prop-types").Requireable<{
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
}>;
|
|
35
|
+
mod: import("prop-types").Requireable<{
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
}>;
|
|
38
|
+
courses: import("prop-types").Requireable<any[]>;
|
|
39
|
+
texts: import("prop-types").Requireable<{
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
}>;
|
|
42
|
+
}>>;
|
|
22
43
|
};
|
|
23
44
|
};
|
|
24
45
|
export default FilterChip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/index.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAGxD,QAAA,MAAM,UAAU;YAAW,eAAe,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DpE,CAAC;AASF,eAAe,UAAU,CAAC"}
|
|
@@ -2,8 +2,10 @@ import _toString from "lodash/fp/toString";
|
|
|
2
2
|
import _size from "lodash/fp/size";
|
|
3
3
|
import _pipe from "lodash/fp/pipe";
|
|
4
4
|
import _map from "lodash/fp/map";
|
|
5
|
+
import _getOr from "lodash/fp/getOr";
|
|
5
6
|
import _filter from "lodash/fp/filter";
|
|
6
7
|
import React from 'react';
|
|
8
|
+
import { convert } from 'css-color-function';
|
|
7
9
|
import Chip from '../../atom/chip';
|
|
8
10
|
import Title from '../../atom/title';
|
|
9
11
|
import Tag from '../../atom/tag';
|
|
@@ -13,6 +15,10 @@ import { COLORS } from '../../variables/colors';
|
|
|
13
15
|
import propTypes from './prop-types';
|
|
14
16
|
import style from './style.css';
|
|
15
17
|
const FilterChip = (props, context) => {
|
|
18
|
+
const {
|
|
19
|
+
skin
|
|
20
|
+
} = context;
|
|
21
|
+
const primaryColor = _getOr(COLORS.cm_grey_700, 'common.primary', skin);
|
|
16
22
|
const {
|
|
17
23
|
options,
|
|
18
24
|
titleAriaLabel,
|
|
@@ -34,7 +40,11 @@ const FilterChip = (props, context) => {
|
|
|
34
40
|
}), hasSelectedFilters ? /*#__PURE__*/React.createElement(Tag, {
|
|
35
41
|
label: _toString(selectedFiltersCount),
|
|
36
42
|
type: "info",
|
|
37
|
-
size: "S"
|
|
43
|
+
size: "S",
|
|
44
|
+
customStyle: {
|
|
45
|
+
color: primaryColor,
|
|
46
|
+
backgroundColor: convert(`color(${primaryColor} lightness(92%))`)
|
|
47
|
+
}
|
|
38
48
|
}) : null), hasSelectedFilters ? /*#__PURE__*/React.createElement("div", {
|
|
39
49
|
className: style.buttonContainer
|
|
40
50
|
}, /*#__PURE__*/React.createElement(ButtonLink, {
|
|
@@ -67,6 +77,7 @@ const FilterChip = (props, context) => {
|
|
|
67
77
|
text: label,
|
|
68
78
|
textColor: textColor,
|
|
69
79
|
key: label,
|
|
80
|
+
backgroundColor: "skin",
|
|
70
81
|
selected: selected,
|
|
71
82
|
onClick: handleClick,
|
|
72
83
|
customIcon: customIcon
|
|
@@ -75,7 +86,8 @@ const FilterChip = (props, context) => {
|
|
|
75
86
|
};
|
|
76
87
|
FilterChip.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
77
88
|
FilterChip.contextTypes = {
|
|
78
|
-
translate: Provider.childContextTypes.translate
|
|
89
|
+
translate: Provider.childContextTypes.translate,
|
|
90
|
+
skin: Provider.childContextTypes.skin
|
|
79
91
|
};
|
|
80
92
|
export default FilterChip;
|
|
81
93
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","Chip","Title","Tag","ButtonLink","Provider","GetTranslateFromContext","COLORS","propTypes","style","FilterChip","props","context","options","titleAriaLabel","title","onClear","selectedFiltersCount","_pipe","_filter","selected","_size","hasSelectedFilters","translate","createElement","Fragment","className","header","titleContainer","ariaLabel","label","_toString","type","size","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","convert","Chip","Title","Tag","ButtonLink","Provider","GetTranslateFromContext","COLORS","propTypes","style","FilterChip","props","context","skin","primaryColor","_getOr","cm_grey_700","options","titleAriaLabel","title","onClear","selectedFiltersCount","_pipe","_filter","selected","_size","hasSelectedFilters","translate","createElement","Fragment","className","header","titleContainer","ariaLabel","label","_toString","type","size","customStyle","color","backgroundColor","buttonContainer","fontWeight","padding","onClick","hoverColor","optionsContainer","_map","icon","textColor","customIcon","handleClick","leftIcon","text","key","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-chip/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, getOr, map, pipe, size, toString} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Chip from '../../atom/chip';\nimport Title from '../../atom/title';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport propTypes, {FilterChipProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterChip = (props: FilterChipProps, context: WebContextValues) => {\n const {skin} = context;\n const primaryColor = getOr(COLORS.cm_grey_700, 'common.primary', skin);\n const {options, titleAriaLabel, title, onClear} = props;\n const selectedFiltersCount = pipe(filter({selected: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n const translate = GetTranslateFromContext(context);\n return (\n <>\n <div className={style.header}>\n <div className={style.titleContainer}>\n <Title title={title} ariaLabel={titleAriaLabel} />\n {hasSelectedFilters ? (\n <Tag\n label={toString(selectedFiltersCount)}\n type=\"info\"\n size=\"S\"\n customStyle={{\n color: primaryColor,\n backgroundColor: convert(`color(${primaryColor} lightness(92%))`)\n }}\n />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.buttonContainer}>\n <ButtonLink\n customStyle={{fontWeight: 'normal', padding: 0}}\n label={translate('clear')}\n type=\"text\"\n data-name=\"filter-chip-clear-button\"\n aria-label=\"filter chip clear button\"\n onClick={onClear}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n <div className={style.optionsContainer}>\n {map(({icon, label, onClick, textColor, type, selected, customIcon}) => {\n function handleClick() {\n onClick(type);\n }\n return (\n <Chip\n leftIcon={icon}\n text={label}\n textColor={textColor}\n key={label}\n backgroundColor=\"skin\"\n selected={selected}\n onClick={handleClick}\n customIcon={customIcon}\n />\n );\n }, options)}\n </div>\n </>\n );\n};\n\nFilterChip.propTypes = propTypes;\n\nFilterChip.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nexport default FilterChip;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAAQC,OAAO,QAAO,oBAAoB;AAC1C,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAAyB,cAAc;AACvD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGA,CAACC,KAAsB,EAAEC,OAAyB,KAAK;EACxE,MAAM;IAACC;EAAI,CAAC,GAAGD,OAAO;EACtB,MAAME,YAAY,GAAGC,MAAA,CAAMR,MAAM,CAACS,WAAW,EAAE,gBAAgB,EAAEH,IAAI,CAAC;EACtE,MAAM;IAACI,OAAO;IAAEC,cAAc;IAAEC,KAAK;IAAEC;EAAO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ACS;EAAY,CAChC,CACE,CAAC,GACJ,IACD,CAAC,eACNjB,KAAA,CAAA6B,aAAA;IAAKE,SAAS,EAAErB,KAAK,CAACqC;EAAiB,GACpCC,IAAA,CAAI,CAAC;IAACC,IAAI;IAAEd,KAAK;IAAEU,OAAO;IAAEK,SAAS;IAAEb,IAAI;IAAEZ,QAAQ;IAAE0B;EAAU,CAAC,KAAK;IACtE,SAASC,WAAWA,CAAA,EAAG;MACrBP,OAAO,CAACR,IAAI,CAAC;IACf;IACA,oBACErC,KAAA,CAAA6B,aAAA,CAAC3B,IAAI;MACHmD,QAAQ,EAAEJ,IAAK;MACfK,IAAI,EAAEnB,KAAM;MACZe,SAAS,EAAEA,SAAU;MACrBK,GAAG,EAAEpB,KAAM;MACXM,eAAe,EAAC,MAAM;MACtBhB,QAAQ,EAAEA,QAAS;MACnBoB,OAAO,EAAEO,WAAY;MACrBD,UAAU,EAAEA;IAAW,CACxB,CAAC;EAEN,CAAC,EAAEjC,OAAO,CACP,CACL,CAAC;AAEP,CAAC;AAEDP,UAAU,CAACF,SAAS,GAAA+C,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGjD,SAAS;AAEhCE,UAAU,CAACgD,YAAY,GAAG;EACxB/B,SAAS,EAAEtB,QAAQ,CAACsD,iBAAiB,CAAChC,SAAS;EAC/Cd,IAAI,EAAER,QAAQ,CAACsD,iBAAiB,CAAC9C;AACnC,CAAC;AAED,eAAeH,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WebContextValues } from '../../atom/provider/web-context';
|
|
3
|
+
import { FilterRangeProps } from './prop-types';
|
|
4
|
+
declare const FilterRange: {
|
|
5
|
+
(props: FilterRangeProps, context: WebContextValues): JSX.Element;
|
|
6
|
+
propTypes: {
|
|
7
|
+
title: import("prop-types").Validator<string>;
|
|
8
|
+
titleAriaLabel: import("prop-types").Requireable<string>;
|
|
9
|
+
onClear: import("prop-types").Validator<(...args: any[]) => any>;
|
|
10
|
+
options: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
11
|
+
label: import("prop-types").Validator<string>;
|
|
12
|
+
min: import("prop-types").Validator<number>;
|
|
13
|
+
max: import("prop-types").Validator<number>;
|
|
14
|
+
step: import("prop-types").Requireable<number>;
|
|
15
|
+
value: import("prop-types").Requireable<(number | null | undefined)[]>;
|
|
16
|
+
minLabel: import("prop-types").Requireable<string>;
|
|
17
|
+
maxLabel: import("prop-types").Requireable<string>;
|
|
18
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
19
|
+
theme: import("prop-types").Requireable<string>;
|
|
20
|
+
selected: import("prop-types").Requireable<boolean>;
|
|
21
|
+
}>>;
|
|
22
|
+
};
|
|
23
|
+
contextTypes: {
|
|
24
|
+
translate: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default FilterRange;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-range/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGjE,OAAkB,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAIzD,QAAA,MAAM,WAAW;YAAW,gBAAgB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAuFtE,CAAC;AAQF,eAAe,WAAW,CAAC"}
|