@coorpacademy/components 11.40.3-alpha.14 → 11.40.3
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/chip/index.d.ts +0 -4
- package/es/atom/chip/index.d.ts.map +1 -1
- package/es/atom/chip/index.js +6 -13
- package/es/atom/chip/index.js.map +1 -1
- package/es/atom/input-switch/index.d.ts.map +1 -1
- package/es/atom/input-switch/index.js +1 -2
- package/es/atom/input-switch/index.js.map +1 -1
- package/es/atom/input-switch/style.css +1 -4
- package/es/atom/radio-with-title/index.d.ts +0 -1
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +0 -1
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/title/index.d.ts +0 -1
- package/es/atom/title/index.d.ts.map +1 -1
- package/es/atom/title/index.js +2 -5
- package/es/atom/title/index.js.map +1 -1
- package/es/molecule/base-modal/index.d.ts +0 -1
- package/es/molecule/base-modal/index.d.ts.map +1 -1
- package/es/molecule/base-modal/index.js +2 -6
- package/es/molecule/base-modal/index.js.map +1 -1
- package/es/molecule/base-modal/style.css +0 -5
- package/es/molecule/cm-popin/types.d.ts +0 -2
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/index.d.ts +0 -20
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/index.js +6 -41
- package/es/molecule/multi-filter-panel/index.js.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts +1 -37
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.js +0 -6
- package/es/molecule/multi-filter-panel/prop-types.js.map +1 -1
- package/es/molecule/multi-filter-panel/style.css +0 -8
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +0 -1
- package/es/molecule/title-radio-wrapper/index.d.ts +0 -1
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +0 -1
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/content-skill-modal/index.d.ts +0 -21
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +0 -21
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts +0 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.js +2 -5
- package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts +0 -2
- package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.js +0 -1
- package/es/organism/filter-checkbox-and-search/props-types.js.map +1 -1
- package/es/organism/filter-checkbox-and-search/style.css +0 -2
- package/es/organism/filter-chip/index.d.ts +0 -3
- package/es/organism/filter-chip/index.d.ts.map +1 -1
- package/es/organism/filter-chip/index.js +4 -12
- package/es/organism/filter-chip/index.js.map +1 -1
- package/es/organism/filter-chip/prop-types.d.ts +1 -7
- package/es/organism/filter-chip/prop-types.d.ts.map +1 -1
- package/es/organism/filter-chip/prop-types.js +0 -3
- package/es/organism/filter-chip/prop-types.js.map +1 -1
- package/es/organism/list-items/index.d.ts +0 -1
- package/es/organism/rewards-form/index.d.ts +0 -1
- package/es/organism/select-opponents/index.d.ts +0 -1
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +0 -1
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/title-and-input/index.d.ts +0 -2
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +0 -2
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +0 -1
- package/es/template/app-player/loading/index.d.ts +0 -2
- package/es/template/app-player/player/index.d.ts +0 -4
- package/es/template/app-player/player/slides/index.d.ts +0 -2
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +0 -2
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +0 -2
- package/es/template/app-review/index.d.ts +0 -2
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +0 -2
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +0 -2
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +0 -25
- package/es/template/common/dashboard/index.d.ts +0 -4
- package/es/template/common/search-page/index.d.ts +0 -2
- package/es/template/external-course/index.d.ts +0 -2
- package/lib/atom/chip/index.d.ts +0 -4
- package/lib/atom/chip/index.d.ts.map +1 -1
- package/lib/atom/chip/index.js +6 -13
- package/lib/atom/chip/index.js.map +1 -1
- package/lib/atom/input-switch/index.d.ts.map +1 -1
- package/lib/atom/input-switch/index.js +1 -2
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/input-switch/style.css +1 -4
- package/lib/atom/radio-with-title/index.d.ts +0 -1
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +0 -1
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/title/index.d.ts +0 -1
- package/lib/atom/title/index.d.ts.map +1 -1
- package/lib/atom/title/index.js +2 -5
- package/lib/atom/title/index.js.map +1 -1
- package/lib/molecule/base-modal/index.d.ts +0 -1
- package/lib/molecule/base-modal/index.d.ts.map +1 -1
- package/lib/molecule/base-modal/index.js +2 -6
- package/lib/molecule/base-modal/index.js.map +1 -1
- package/lib/molecule/base-modal/style.css +0 -5
- package/lib/molecule/cm-popin/types.d.ts +0 -2
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/index.d.ts +0 -20
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/index.js +6 -41
- package/lib/molecule/multi-filter-panel/index.js.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +1 -37
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.js +0 -6
- package/lib/molecule/multi-filter-panel/prop-types.js.map +1 -1
- package/lib/molecule/multi-filter-panel/style.css +0 -8
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +0 -1
- package/lib/molecule/title-radio-wrapper/index.d.ts +0 -1
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +0 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/index.d.ts +0 -21
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +0 -21
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts +0 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.js +2 -5
- package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts +0 -2
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.js +0 -1
- package/lib/organism/filter-checkbox-and-search/props-types.js.map +1 -1
- package/lib/organism/filter-checkbox-and-search/style.css +0 -2
- package/lib/organism/filter-chip/index.d.ts +0 -3
- package/lib/organism/filter-chip/index.d.ts.map +1 -1
- package/lib/organism/filter-chip/index.js +4 -12
- package/lib/organism/filter-chip/index.js.map +1 -1
- package/lib/organism/filter-chip/prop-types.d.ts +1 -7
- package/lib/organism/filter-chip/prop-types.d.ts.map +1 -1
- package/lib/organism/filter-chip/prop-types.js +0 -3
- package/lib/organism/filter-chip/prop-types.js.map +1 -1
- package/lib/organism/list-items/index.d.ts +0 -1
- package/lib/organism/rewards-form/index.d.ts +0 -1
- package/lib/organism/select-opponents/index.d.ts +0 -1
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +0 -1
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +0 -2
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +0 -2
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +0 -1
- package/lib/template/app-player/loading/index.d.ts +0 -2
- package/lib/template/app-player/player/index.d.ts +0 -4
- package/lib/template/app-player/player/slides/index.d.ts +0 -2
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +0 -2
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +0 -2
- package/lib/template/app-review/index.d.ts +0 -2
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +0 -2
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +0 -2
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +0 -25
- package/lib/template/common/dashboard/index.d.ts +0 -4
- package/lib/template/common/search-page/index.d.ts +0 -2
- package/lib/template/external-course/index.d.ts +0 -2
- package/package.json +2 -2
- package/es/organism/filter-switch/index.d.ts +0 -23
- package/es/organism/filter-switch/index.d.ts.map +0 -1
- package/es/organism/filter-switch/index.js +0 -76
- package/es/organism/filter-switch/index.js.map +0 -1
- package/es/organism/filter-switch/prop-types.d.ts +0 -27
- package/es/organism/filter-switch/prop-types.d.ts.map +0 -1
- package/es/organism/filter-switch/prop-types.js +0 -15
- package/es/organism/filter-switch/prop-types.js.map +0 -1
- package/es/organism/filter-switch/style.css +0 -46
- package/lib/organism/filter-switch/index.d.ts +0 -23
- package/lib/organism/filter-switch/index.d.ts.map +0 -1
- package/lib/organism/filter-switch/index.js +0 -83
- package/lib/organism/filter-switch/index.js.map +0 -1
- package/lib/organism/filter-switch/prop-types.d.ts +0 -27
- package/lib/organism/filter-switch/prop-types.d.ts.map +0 -1
- package/lib/organism/filter-switch/prop-types.js +0 -20
- package/lib/organism/filter-switch/prop-types.js.map +0 -1
- package/lib/organism/filter-switch/style.css +0 -46
|
@@ -12,7 +12,6 @@ declare const propTypes: {
|
|
|
12
12
|
title: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
13
|
title: PropTypes.Requireable<string>;
|
|
14
14
|
subtitle: PropTypes.Requireable<string>;
|
|
15
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
16
15
|
type: PropTypes.Requireable<string>;
|
|
17
16
|
'data-name': PropTypes.Requireable<string>;
|
|
18
17
|
titleSize: PropTypes.Requireable<string>;
|
|
@@ -576,7 +575,6 @@ declare const propTypes: {
|
|
|
576
575
|
title: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
|
|
577
576
|
title: PropTypes.Requireable<string>;
|
|
578
577
|
subtitle: PropTypes.Requireable<string>;
|
|
579
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
580
578
|
type: PropTypes.Requireable<string>;
|
|
581
579
|
'data-name': PropTypes.Requireable<string>;
|
|
582
580
|
titleSize: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2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U,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -5,22 +5,17 @@ declare const MultiFilterPanel: {
|
|
|
5
5
|
(props: MultiFilterPanelProps, context: WebContextValues): JSX.Element;
|
|
6
6
|
propTypes: {
|
|
7
7
|
title: import("prop-types").Requireable<string>;
|
|
8
|
-
showSelectedFilters: import("prop-types").Requireable<boolean>;
|
|
9
8
|
onClearAll: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
10
|
-
onRemoveSelectedFilter: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
11
9
|
options: import("prop-types").Requireable<(NonNullable<import("prop-types").InferProps<{
|
|
12
10
|
type: import("prop-types").Requireable<string>;
|
|
13
11
|
options: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
14
12
|
title: import("prop-types").Requireable<string>;
|
|
15
|
-
titleAriaLabel: import("prop-types").Requireable<string>;
|
|
16
13
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
17
14
|
options: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
18
15
|
label: import("prop-types").Requireable<string>;
|
|
19
16
|
type: import("prop-types").Requireable<string>;
|
|
20
|
-
textColor: import("prop-types").Requireable<string>;
|
|
21
17
|
selected: import("prop-types").Requireable<boolean>;
|
|
22
18
|
icon: import("prop-types").Requireable<string>;
|
|
23
|
-
customIcon: import("prop-types").Requireable<string>;
|
|
24
19
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
20
|
}> | null | undefined)[]>;
|
|
26
21
|
}>>;
|
|
@@ -28,7 +23,6 @@ declare const MultiFilterPanel: {
|
|
|
28
23
|
type: import("prop-types").Requireable<string>;
|
|
29
24
|
options: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
30
25
|
title: import("prop-types").Requireable<string>;
|
|
31
|
-
titleAriaLabel: import("prop-types").Requireable<string>;
|
|
32
26
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
33
27
|
options: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
34
28
|
label: import("prop-types").Requireable<string>;
|
|
@@ -52,20 +46,6 @@ declare const MultiFilterPanel: {
|
|
|
52
46
|
searchIconAriaLabel: import("prop-types").Requireable<string>;
|
|
53
47
|
}>>;
|
|
54
48
|
}>>;
|
|
55
|
-
}> | import("prop-types").InferProps<{
|
|
56
|
-
type: import("prop-types").Requireable<string>;
|
|
57
|
-
options: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
58
|
-
title: import("prop-types").Validator<string>;
|
|
59
|
-
titleAriaLabel: import("prop-types").Requireable<string>;
|
|
60
|
-
onClear: import("prop-types").Validator<(...args: any[]) => any>;
|
|
61
|
-
options: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
62
|
-
label: import("prop-types").Validator<string>;
|
|
63
|
-
value: import("prop-types").Validator<boolean>;
|
|
64
|
-
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
65
|
-
theme: import("prop-types").Validator<string>;
|
|
66
|
-
ariaLabel: import("prop-types").Validator<string>;
|
|
67
|
-
}> | null | undefined)[]>;
|
|
68
|
-
}>>;
|
|
69
49
|
}> | null | undefined> | null | undefined)[]>;
|
|
70
50
|
};
|
|
71
51
|
contextTypes: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAqBlF,QAAA,MAAM,gBAAgB;YAAW,qBAAqB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDhF,CAAC;AAQF,eAAe,gBAAgB,CAAC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
var _concat2 = _interopRequireDefault(require("lodash/fp/concat"));
|
|
6
5
|
var _toString2 = _interopRequireDefault(require("lodash/fp/toString"));
|
|
7
6
|
var _flatMap2 = _interopRequireDefault(require("lodash/fp/flatMap"));
|
|
8
7
|
var _filter2 = _interopRequireDefault(require("lodash/fp/filter"));
|
|
@@ -16,9 +15,6 @@ var _title = _interopRequireDefault(require("../../atom/title"));
|
|
|
16
15
|
var _tag = _interopRequireDefault(require("../../atom/tag"));
|
|
17
16
|
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
18
17
|
var _provider = _interopRequireWildcard(require("../../atom/provider"));
|
|
19
|
-
var _chip = _interopRequireDefault(require("../../atom/chip"));
|
|
20
|
-
var _colors = require("../../variables/colors");
|
|
21
|
-
var _filterSwitch = _interopRequireDefault(require("../../organism/filter-switch"));
|
|
22
18
|
var _propTypes = _interopRequireDefault(require("./prop-types"));
|
|
23
19
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
24
20
|
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); }
|
|
@@ -45,51 +41,21 @@ const buildFilters = filterOptions => {
|
|
|
45
41
|
return /*#__PURE__*/_react.default.createElement(_filterChip.default, options);
|
|
46
42
|
case 'checkbox':
|
|
47
43
|
return /*#__PURE__*/_react.default.createElement(_filterCheckboxAndSearch.default, options);
|
|
48
|
-
case 'switch':
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(_filterSwitch.default, options);
|
|
50
44
|
default:
|
|
51
45
|
return null;
|
|
52
46
|
}
|
|
53
47
|
};
|
|
54
|
-
const buildSelectedFilterChips = (selectedFilters, onRemoveSelectedFilter) => {
|
|
55
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
-
className: _style.default.selectedFiltersContainer,
|
|
57
|
-
"data-testid": "selected-filters-container"
|
|
58
|
-
}, selectedFilters.map((filterItem, index) => {
|
|
59
|
-
const {
|
|
60
|
-
label
|
|
61
|
-
} = filterItem;
|
|
62
|
-
return /*#__PURE__*/_react.default.createElement(_chip.default, {
|
|
63
|
-
key: index,
|
|
64
|
-
onClick: onRemoveSelectedFilter,
|
|
65
|
-
text: label,
|
|
66
|
-
textColor: _colors.COLORS.neutral_500,
|
|
67
|
-
backgroundColor: _colors.COLORS.cm_grey_150,
|
|
68
|
-
customIcon: 'xmark',
|
|
69
|
-
customStyle: {
|
|
70
|
-
height: '28px',
|
|
71
|
-
padding: '4px 8px'
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}));
|
|
75
|
-
};
|
|
76
48
|
const MultiFilterPanel = (props, context) => {
|
|
77
49
|
const {
|
|
78
50
|
title,
|
|
79
51
|
onClearAll,
|
|
80
|
-
options
|
|
81
|
-
showSelectedFilters = false,
|
|
82
|
-
onRemoveSelectedFilter
|
|
52
|
+
options
|
|
83
53
|
} = props;
|
|
84
54
|
const translate = (0, _provider.GetTranslateFromContext)(context);
|
|
85
55
|
const allSelectedFilters = (0, _pipe2.default)((0, _map2.default)('options'), (0, _flatMap2.default)('options'), (0, _filter2.default)({
|
|
86
56
|
selected: true
|
|
87
|
-
}))(options);
|
|
88
|
-
const
|
|
89
|
-
value: true
|
|
90
|
-
}))(options);
|
|
91
|
-
const allCombinedFilters = (0, _concat2.default)(allSwitchFilters)(allSelectedFilters);
|
|
92
|
-
const hasSelectedFilters = (0, _size2.default)(allCombinedFilters) > 0;
|
|
57
|
+
}), _size2.default)(options);
|
|
58
|
+
const hasSelectedFilters = allSelectedFilters > 0;
|
|
93
59
|
const filters = uncappedMap((filterOptions, i) => {
|
|
94
60
|
const isLastItem = i + 1 === (0, _size2.default)(options);
|
|
95
61
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -105,7 +71,7 @@ const MultiFilterPanel = (props, context) => {
|
|
|
105
71
|
type: "form-group",
|
|
106
72
|
titleSize: "standard-light-weight"
|
|
107
73
|
}), hasSelectedFilters ? /*#__PURE__*/_react.default.createElement(_tag.default, {
|
|
108
|
-
label: (0, _toString2.default)(
|
|
74
|
+
label: (0, _toString2.default)(allSelectedFilters),
|
|
109
75
|
type: "info",
|
|
110
76
|
size: "S"
|
|
111
77
|
}) : null), hasSelectedFilters ? /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -116,9 +82,8 @@ const MultiFilterPanel = (props, context) => {
|
|
|
116
82
|
type: "text",
|
|
117
83
|
"data-name": "filters-all-clear-button",
|
|
118
84
|
"aria-label": "filters all clear button",
|
|
119
|
-
onClick: onClearAll
|
|
120
|
-
|
|
121
|
-
})) : null), showSelectedFilters && hasSelectedFilters ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, buildSelectedFilterChips(allCombinedFilters, onRemoveSelectedFilter)), FilterSeparator) : null, filters);
|
|
85
|
+
onClick: onClearAll
|
|
86
|
+
})) : null), filters);
|
|
122
87
|
};
|
|
123
88
|
MultiFilterPanel.propTypes = process.env.NODE_ENV !== "production" ? _propTypes.default : {};
|
|
124
89
|
MultiFilterPanel.contextTypes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_filterChip","_filterCheckboxAndSearch","_title","_tag","_buttonLink","_provider","_interopRequireWildcard","_chip","_colors","_filterSwitch","_propTypes","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","uncappedMap","_map2","convert","cap","CLEAR_ALL_BUTTON_STYLE","fontWeight","padding","FilterSeparator","createElement","className","style","filterSeparator","buildFilters","filterOptions","type","options","buildSelectedFilterChips","selectedFilters","onRemoveSelectedFilter","selectedFiltersContainer","map","filterItem","index","label","key","onClick","text","textColor","COLORS","neutral_500","backgroundColor","cm_grey_150","customIcon","customStyle","height","MultiFilterPanel","props","context","title","onClearAll","showSelectedFilters","translate","GetTranslateFromContext","allSelectedFilters","_pipe2","_flatMap2","_filter2","selected","allSwitchFilters","value","allCombinedFilters","_concat2","hasSelectedFilters","_size2","filters","isLastItem","Fragment","header","titleContainer","titleSize","_toString2","size","buttonContainer","hoverColor","primary_600","propTypes","process","env","NODE_ENV","contextTypes","Provider","childContextTypes","_default","exports"],"sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"sourcesContent":["import React from 'react';\nimport {map, size, pipe, filter, flatMap, toString, concat} from 'lodash/fp';\nimport FilterChip from '../../organism/filter-chip';\nimport FilterCheckboxAndSearch from '../../organism/filter-checkbox-and-search';\nimport Title from '../../atom/title';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport Chip from '../../atom/chip';\nimport {COLORS} from '../../variables/colors';\nimport FilterSwitch from '../../organism/filter-switch';\nimport propTypes, {MultiFilterPanelProps, FilterOptionsProps, SelectedFilter} from './prop-types';\nimport style from './style.css';\n\n// @ts-expect-error convert is not recognized by the types\nconst uncappedMap = map.convert({cap: false});\n\nconst CLEAR_ALL_BUTTON_STYLE = {fontWeight: 'normal', padding: 0};\nconst FilterSeparator = <div className={style.filterSeparator} />;\n\nconst buildFilters = (filterOptions: FilterOptionsProps) => {\n const {type, options} = filterOptions;\n switch (type) {\n case 'chip':\n return <FilterChip {...options} />;\n case 'checkbox':\n return <FilterCheckboxAndSearch {...options} />;\n case 'switch':\n return <FilterSwitch {...options} />;\n default:\n return null;\n }\n};\n\nconst buildSelectedFilterChips = (\n selectedFilters: SelectedFilter[],\n onRemoveSelectedFilter?: (filterId: string) => void\n) => {\n return (\n <div className={style.selectedFiltersContainer} data-testid=\"selected-filters-container\">\n {selectedFilters.map((filterItem: SelectedFilter, index: number) => {\n const {label} = filterItem;\n return (\n <Chip\n key={index}\n onClick={onRemoveSelectedFilter}\n text={label}\n textColor={COLORS.neutral_500}\n backgroundColor={COLORS.cm_grey_150}\n customIcon={'xmark'}\n customStyle={{height: '28px', padding: '4px 8px'}}\n />\n );\n })}\n </div>\n );\n};\n\nconst MultiFilterPanel = (props: MultiFilterPanelProps, context: WebContextValues) => {\n const {title, onClearAll, options, showSelectedFilters = false, onRemoveSelectedFilter} = props;\n const translate = GetTranslateFromContext(context);\n const allSelectedFilters = pipe(\n map('options'),\n flatMap('options'),\n filter({selected: true})\n )(options) as SelectedFilter[];\n const allSwitchFilters = pipe(\n map('options'),\n flatMap('options'),\n filter({value: true})\n )(options) as SelectedFilter[];\n const allCombinedFilters = concat(allSwitchFilters)(allSelectedFilters);\n const hasSelectedFilters = size(allCombinedFilters) > 0;\n const filters = uncappedMap((filterOptions: FilterOptionsProps, i: number) => {\n const isLastItem = i + 1 === size(options);\n\n return (\n <div key={i}>\n {buildFilters(filterOptions)}\n {isLastItem ? null : FilterSeparator}\n </div>\n );\n }, options);\n return (\n <>\n <div className={style.header}>\n <div className={style.titleContainer}>\n <Title title={title} type=\"form-group\" titleSize=\"standard-light-weight\" />\n {hasSelectedFilters ? (\n <Tag label={toString(size(allCombinedFilters))} type=\"info\" size=\"S\" />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.buttonContainer}>\n <ButtonLink\n customStyle={CLEAR_ALL_BUTTON_STYLE}\n label={translate('clear_all')}\n type=\"text\"\n data-name=\"filters-all-clear-button\"\n aria-label=\"filters all clear button\"\n onClick={onClearAll}\n hoverColor={COLORS.primary_600}\n />\n </div>\n ) : null}\n </div>\n {showSelectedFilters && hasSelectedFilters ? (\n <>\n <div>{buildSelectedFilterChips(allCombinedFilters, onRemoveSelectedFilter)}</div>\n {FilterSeparator}\n </>\n ) : null}\n {filters}\n </>\n );\n};\n\nMultiFilterPanel.propTypes = propTypes;\n\nMultiFilterPanel.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default MultiFilterPanel;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,wBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,IAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAAM,SAAA,GAAAC,uBAAA,CAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,UAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,MAAA,GAAAb,sBAAA,CAAAC,OAAA;AAAgC,SAAAa,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,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,OACD,CAAC;AAEP,CAAC;AAEDnB,gBAAgB,CAAC8B,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,kBAAS;AAEtC9B,gBAAgB,CAACkC,YAAY,GAAG;EAC9B5B,SAAS,EAAE6B,iBAAQ,CAACC,iBAAiB,CAAC9B;AACxC,CAAC;AAAC,IAAA+B,QAAA,GAAAC,OAAA,CAAAvF,OAAA,GAEaiD,gBAAgB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_filterChip","_filterCheckboxAndSearch","_title","_tag","_buttonLink","_provider","_interopRequireWildcard","_propTypes","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","uncappedMap","_map2","convert","cap","CLEAR_ALL_BUTTON_STYLE","fontWeight","padding","FilterSeparator","createElement","className","style","filterSeparator","buildFilters","filterOptions","type","options","MultiFilterPanel","props","context","title","onClearAll","translate","GetTranslateFromContext","allSelectedFilters","_pipe2","_flatMap2","_filter2","selected","_size2","hasSelectedFilters","filters","isLastItem","key","Fragment","header","titleContainer","titleSize","label","_toString2","size","buttonContainer","customStyle","onClick","propTypes","process","env","NODE_ENV","contextTypes","Provider","childContextTypes","_default","exports"],"sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"sourcesContent":["import React from 'react';\nimport {map, size, pipe, filter, flatMap, toString} from 'lodash/fp';\nimport FilterChip from '../../organism/filter-chip';\nimport FilterCheckboxAndSearch from '../../organism/filter-checkbox-and-search';\nimport Title from '../../atom/title';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport propTypes, {MultiFilterPanelProps, FilterOptionsProps} from './prop-types';\nimport style from './style.css';\n\n// @ts-expect-error convert is not recognized by the types\nconst uncappedMap = map.convert({cap: false});\n\nconst CLEAR_ALL_BUTTON_STYLE = {fontWeight: 'normal', padding: 0};\nconst FilterSeparator = <div className={style.filterSeparator} />;\n\nconst buildFilters = (filterOptions: FilterOptionsProps) => {\n const {type, options} = filterOptions;\n switch (type) {\n case 'chip':\n return <FilterChip {...options} />;\n case 'checkbox':\n return <FilterCheckboxAndSearch {...options} />;\n default:\n return null;\n }\n};\n\nconst MultiFilterPanel = (props: MultiFilterPanelProps, context: WebContextValues) => {\n const {title, onClearAll, options} = props;\n const translate = GetTranslateFromContext(context);\n const allSelectedFilters = pipe(\n map('options'),\n flatMap('options'),\n filter({selected: true}),\n size\n )(options);\n const hasSelectedFilters = allSelectedFilters > 0;\n\n const filters = uncappedMap((filterOptions: FilterOptionsProps, i: number) => {\n const isLastItem = i + 1 === size(options);\n\n return (\n <div key={i}>\n {buildFilters(filterOptions)}\n {isLastItem ? null : FilterSeparator}\n </div>\n );\n }, options);\n\n return (\n <>\n <div className={style.header}>\n <div className={style.titleContainer}>\n <Title title={title} type=\"form-group\" titleSize=\"standard-light-weight\" />\n {hasSelectedFilters ? (\n <Tag label={toString(allSelectedFilters)} type=\"info\" size=\"S\" />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.buttonContainer}>\n <ButtonLink\n customStyle={CLEAR_ALL_BUTTON_STYLE}\n label={translate('clear_all')}\n type=\"text\"\n data-name=\"filters-all-clear-button\"\n aria-label=\"filters all clear button\"\n onClick={onClearAll}\n />\n </div>\n ) : null}\n </div>\n\n {filters}\n </>\n );\n};\n\nMultiFilterPanel.propTypes = propTypes;\n\nMultiFilterPanel.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default MultiFilterPanel;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,wBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,G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EACLV,kBAAkB,gBACjB7D,MAAA,CAAAkB,OAAA,CAAAsB,aAAA;IAAKC,SAAS,EAAEC,cAAK,CAAC8B;EAAgB,gBACpCxE,MAAA,CAAAkB,OAAA,CAAAsB,aAAA,CAACjC,WAAA,CAAAW,OAAU;IACTuD,WAAW,EAAErC,sBAAuB;IACpCiC,KAAK,EAAEhB,SAAS,CAAC,WAAW,CAAE;IAC9BP,IAAI,EAAC,MAAM;IACX,aAAU,0BAA0B;IACpC,cAAW,0BAA0B;IACrC4B,OAAO,EAAEtB;EAAW,CACrB,CACE,CAAC,GACJ,IACD,CAAC,EAELU,OACD,CAAC;AAEP,CAAC;AAEDd,gBAAgB,CAAC2B,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,kBAAS;AAEtC3B,gBAAgB,CAAC+B,YAAY,GAAG;EAC9B1B,SAAS,EAAE2B,iBAAQ,CAACC,iBAAiB,CAAC5B;AACxC,CAAC;AAAC,IAAA6B,QAAA,GAAAC,OAAA,CAAAjE,OAAA,GAEa8B,gBAAgB","ignoreList":[]}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { FilterChipProps } from '../../organism/filter-chip/prop-types';
|
|
3
3
|
import { FilterCheckboxAndSearchProps } from '../../organism/filter-checkbox-and-search/props-types';
|
|
4
|
-
import { FilterSwitchProps } from '../../organism/filter-switch/prop-types';
|
|
5
4
|
declare const propTypes: {
|
|
6
5
|
title: PropTypes.Requireable<string>;
|
|
7
|
-
showSelectedFilters: PropTypes.Requireable<boolean>;
|
|
8
6
|
onClearAll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
-
onRemoveSelectedFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
7
|
options: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
|
|
11
8
|
type: PropTypes.Requireable<string>;
|
|
12
9
|
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
10
|
title: PropTypes.Requireable<string>;
|
|
14
|
-
titleAriaLabel: PropTypes.Requireable<string>;
|
|
15
11
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
12
|
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
17
13
|
label: PropTypes.Requireable<string>;
|
|
18
14
|
type: PropTypes.Requireable<string>;
|
|
19
|
-
textColor: PropTypes.Requireable<string>;
|
|
20
15
|
selected: PropTypes.Requireable<boolean>;
|
|
21
16
|
icon: PropTypes.Requireable<string>;
|
|
22
|
-
customIcon: PropTypes.Requireable<string>;
|
|
23
17
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
18
|
}> | null | undefined)[]>;
|
|
25
19
|
}>>;
|
|
@@ -27,7 +21,6 @@ declare const propTypes: {
|
|
|
27
21
|
type: PropTypes.Requireable<string>;
|
|
28
22
|
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
29
23
|
title: PropTypes.Requireable<string>;
|
|
30
|
-
titleAriaLabel: PropTypes.Requireable<string>;
|
|
31
24
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
25
|
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
33
26
|
label: PropTypes.Requireable<string>;
|
|
@@ -51,20 +44,6 @@ declare const propTypes: {
|
|
|
51
44
|
searchIconAriaLabel: PropTypes.Requireable<string>;
|
|
52
45
|
}>>;
|
|
53
46
|
}>>;
|
|
54
|
-
}> | PropTypes.InferProps<{
|
|
55
|
-
type: PropTypes.Requireable<string>;
|
|
56
|
-
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
57
|
-
title: PropTypes.Validator<string>;
|
|
58
|
-
titleAriaLabel: PropTypes.Requireable<string>;
|
|
59
|
-
onClear: PropTypes.Validator<(...args: any[]) => any>;
|
|
60
|
-
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
61
|
-
label: PropTypes.Validator<string>;
|
|
62
|
-
value: PropTypes.Validator<boolean>;
|
|
63
|
-
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
64
|
-
theme: PropTypes.Validator<string>;
|
|
65
|
-
ariaLabel: PropTypes.Validator<string>;
|
|
66
|
-
}> | null | undefined)[]>;
|
|
67
|
-
}>>;
|
|
68
47
|
}> | null | undefined> | null | undefined)[]>;
|
|
69
48
|
};
|
|
70
49
|
export declare type OptionsChipProps = {
|
|
@@ -75,24 +54,9 @@ export declare type OptionsCheckboxProps = {
|
|
|
75
54
|
type: 'checkbox';
|
|
76
55
|
options: FilterCheckboxAndSearchProps;
|
|
77
56
|
};
|
|
78
|
-
export declare type
|
|
79
|
-
type: 'switch';
|
|
80
|
-
options: FilterSwitchProps;
|
|
81
|
-
};
|
|
82
|
-
export declare type FilterOptionsProps = OptionsChipProps | OptionsCheckboxProps | OptionsSwitchProps;
|
|
83
|
-
export declare type SelectedFilter = {
|
|
84
|
-
icon: string;
|
|
85
|
-
label: string;
|
|
86
|
-
selected: boolean;
|
|
87
|
-
type: string;
|
|
88
|
-
count?: number;
|
|
89
|
-
value?: boolean;
|
|
90
|
-
ref?: string;
|
|
91
|
-
};
|
|
57
|
+
export declare type FilterOptionsProps = OptionsChipProps | OptionsCheckboxProps;
|
|
92
58
|
export declare type MultiFilterPanelProps = {
|
|
93
59
|
title: string;
|
|
94
|
-
showSelectedFilters?: boolean;
|
|
95
|
-
onRemoveSelectedFilter?: (filterId: string) => void;
|
|
96
60
|
onClearAll: () => void;
|
|
97
61
|
options: FilterOptionsProps[];
|
|
98
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAC3F,OAAyC,EACvC,4BAA4B,EAC7B,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAC3F,OAAyC,EACvC,4BAA4B,EAC7B,MAAM,uDAAuD,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAed,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,4BAA4B,CAAC;CACvC,CAAC;AAEF,oBAAY,kBAAkB,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEzE,oBAAY,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -5,22 +5,16 @@ exports.default = void 0;
|
|
|
5
5
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
6
|
var _propTypes2 = _interopRequireDefault(require("../../organism/filter-chip/prop-types"));
|
|
7
7
|
var _propsTypes = _interopRequireDefault(require("../../organism/filter-checkbox-and-search/props-types"));
|
|
8
|
-
var _propTypes3 = _interopRequireDefault(require("../../organism/filter-switch/prop-types"));
|
|
9
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
9
|
const propTypes = {
|
|
11
10
|
title: _propTypes.default.string,
|
|
12
|
-
showSelectedFilters: _propTypes.default.bool,
|
|
13
11
|
onClearAll: _propTypes.default.func,
|
|
14
|
-
onRemoveSelectedFilter: _propTypes.default.func,
|
|
15
12
|
options: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
|
|
16
13
|
type: _propTypes.default.oneOf(['chip']),
|
|
17
14
|
options: _propTypes.default.shape(_propTypes2.default)
|
|
18
15
|
}), _propTypes.default.shape({
|
|
19
16
|
type: _propTypes.default.oneOf(['checkbox']),
|
|
20
17
|
options: _propTypes.default.shape(_propsTypes.default)
|
|
21
|
-
}), _propTypes.default.shape({
|
|
22
|
-
type: _propTypes.default.oneOf(['switch']),
|
|
23
|
-
options: _propTypes.default.shape(_propTypes3.default)
|
|
24
18
|
})]))
|
|
25
19
|
};
|
|
26
20
|
var _default = exports.default = propTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.js","names":["_propTypes","_interopRequireDefault","require","_propTypes2","_propsTypes","
|
|
1
|
+
{"version":3,"file":"prop-types.js","names":["_propTypes","_interopRequireDefault","require","_propTypes2","_propsTypes","e","__esModule","default","propTypes","title","PropTypes","string","onClearAll","func","options","arrayOf","oneOfType","shape","type","oneOf","filterChipProptypes","filterCheckboxAndSearchProptypes","_default","exports"],"sources":["../../../src/molecule/multi-filter-panel/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport filterChipProptypes, {FilterChipProps} from '../../organism/filter-chip/prop-types';\nimport filterCheckboxAndSearchProptypes, {\n FilterCheckboxAndSearchProps\n} from '../../organism/filter-checkbox-and-search/props-types';\n\nconst propTypes = {\n title: PropTypes.string,\n onClearAll: PropTypes.func,\n options: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n type: PropTypes.oneOf(['chip']),\n options: PropTypes.shape(filterChipProptypes)\n }),\n PropTypes.shape({\n type: PropTypes.oneOf(['checkbox']),\n options: PropTypes.shape(filterCheckboxAndSearchProptypes)\n })\n ])\n )\n};\n\nexport type OptionsChipProps = {\n type: 'chip';\n options: FilterChipProps;\n};\n\nexport type OptionsCheckboxProps = {\n type: 'checkbox';\n options: FilterCheckboxAndSearchProps;\n};\n\nexport type FilterOptionsProps = OptionsChipProps | OptionsCheckboxProps;\n\nexport type MultiFilterPanelProps = {\n title: string;\n onClearAll: () => void;\n options: FilterOptionsProps[];\n};\n\nexport default propTypes;\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AAE+D,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/D,MAAMG,SAAS,GAAG;EAChBC,KAAK,EAAEC,kBAAS,CAACC,MAAM;EACvBC,UAAU,EAAEF,kBAAS,CAACG,IAAI;EAC1BC,OAAO,EAAEJ,kBAAS,CAACK,OAAO,CACxBL,kBAAS,CAACM,SAAS,CAAC,CAClBN,kBAAS,CAACO,KAAK,CAAC;IACdC,IAAI,EAAER,kBAAS,CAACS,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;IAC/BL,OAAO,EAAEJ,kBAAS,CAACO,KAAK,CAACG,mBAAmB;EAC9C,CAAC,CAAC,EACFV,kBAAS,CAACO,KAAK,CAAC;IACdC,IAAI,EAAER,kBAAS,CAACS,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;IACnCL,OAAO,EAAEJ,kBAAS,CAACO,KAAK,CAACI,mBAAgC;EAC3D,CAAC,CAAC,CACH,CACH;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAhB,OAAA,GAoBaC,SAAS","ignoreList":[]}
|
|
@@ -22,7 +22,6 @@ declare namespace TitleAndCheckBoxWrapper {
|
|
|
22
22
|
removeMargin: PropTypes.Requireable<boolean>;
|
|
23
23
|
title: PropTypes.Requireable<string>;
|
|
24
24
|
subtitle: PropTypes.Requireable<string>;
|
|
25
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
26
25
|
type: PropTypes.Requireable<string>;
|
|
27
26
|
'data-name': PropTypes.Requireable<string>;
|
|
28
27
|
titleSize: PropTypes.Requireable<string>;
|
|
@@ -7,7 +7,6 @@ declare const TitleRadioWrapper: {
|
|
|
7
7
|
title: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
8
8
|
title: import("prop-types").Requireable<string>;
|
|
9
9
|
subtitle: import("prop-types").Requireable<string>;
|
|
10
|
-
ariaLabel: import("prop-types").Requireable<string>;
|
|
11
10
|
type: import("prop-types").Requireable<string>;
|
|
12
11
|
'data-name': import("prop-types").Requireable<string>;
|
|
13
12
|
titleSize: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
|
|
@@ -8,7 +8,6 @@ declare const propTypes: {
|
|
|
8
8
|
title: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
9
9
|
title: PropTypes.Requireable<string>;
|
|
10
10
|
subtitle: PropTypes.Requireable<string>;
|
|
11
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
12
11
|
type: PropTypes.Requireable<string>;
|
|
13
12
|
'data-name': PropTypes.Requireable<string>;
|
|
14
13
|
titleSize: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOd,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,cAAc,EAAE,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAO,cAAc,CAAC,SAAS,GAAG,OAAO,kBAAkB,CAAC,SAAS,CAAC;IAC7E,SAAS,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;CACjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -420,7 +420,6 @@ declare const ContentSkillModal: {
|
|
|
420
420
|
title: import("prop-types").Requireable<NonNullable<string | import("prop-types").InferProps<{
|
|
421
421
|
title: import("prop-types").Requireable<string>;
|
|
422
422
|
subtitle: import("prop-types").Requireable<string>;
|
|
423
|
-
ariaLabel: import("prop-types").Requireable<string>;
|
|
424
423
|
type: import("prop-types").Requireable<string>;
|
|
425
424
|
'data-name': import("prop-types").Requireable<string>;
|
|
426
425
|
titleSize: import("prop-types").Requireable<string>;
|
|
@@ -640,22 +639,17 @@ declare const ContentSkillModal: {
|
|
|
640
639
|
}>>>;
|
|
641
640
|
filters: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
642
641
|
title: import("prop-types").Requireable<string>;
|
|
643
|
-
showSelectedFilters: import("prop-types").Requireable<boolean>;
|
|
644
642
|
onClearAll: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
645
|
-
onRemoveSelectedFilter: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
646
643
|
options: import("prop-types").Requireable<(NonNullable<import("prop-types").InferProps<{
|
|
647
644
|
type: import("prop-types").Requireable<string>;
|
|
648
645
|
options: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
649
646
|
title: import("prop-types").Requireable<string>;
|
|
650
|
-
titleAriaLabel: import("prop-types").Requireable<string>;
|
|
651
647
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
652
648
|
options: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
653
649
|
label: import("prop-types").Requireable<string>;
|
|
654
650
|
type: import("prop-types").Requireable<string>;
|
|
655
|
-
textColor: import("prop-types").Requireable<string>;
|
|
656
651
|
selected: import("prop-types").Requireable<boolean>;
|
|
657
652
|
icon: import("prop-types").Requireable<string>;
|
|
658
|
-
customIcon: import("prop-types").Requireable<string>;
|
|
659
653
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
660
654
|
}> | null | undefined)[]>;
|
|
661
655
|
}>>;
|
|
@@ -663,7 +657,6 @@ declare const ContentSkillModal: {
|
|
|
663
657
|
type: import("prop-types").Requireable<string>;
|
|
664
658
|
options: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
665
659
|
title: import("prop-types").Requireable<string>;
|
|
666
|
-
titleAriaLabel: import("prop-types").Requireable<string>;
|
|
667
660
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
668
661
|
options: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
669
662
|
label: import("prop-types").Requireable<string>;
|
|
@@ -687,20 +680,6 @@ declare const ContentSkillModal: {
|
|
|
687
680
|
searchIconAriaLabel: import("prop-types").Requireable<string>;
|
|
688
681
|
}>>;
|
|
689
682
|
}>>;
|
|
690
|
-
}> | import("prop-types").InferProps<{
|
|
691
|
-
type: import("prop-types").Requireable<string>;
|
|
692
|
-
options: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
693
|
-
title: import("prop-types").Validator<string>;
|
|
694
|
-
titleAriaLabel: import("prop-types").Requireable<string>;
|
|
695
|
-
onClear: import("prop-types").Validator<(...args: any[]) => any>;
|
|
696
|
-
options: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
697
|
-
label: import("prop-types").Validator<string>;
|
|
698
|
-
value: import("prop-types").Validator<boolean>;
|
|
699
|
-
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
700
|
-
theme: import("prop-types").Validator<string>;
|
|
701
|
-
ariaLabel: import("prop-types").Validator<string>;
|
|
702
|
-
}> | null | undefined)[]>;
|
|
703
|
-
}>>;
|
|
704
683
|
}> | null | undefined> | null | undefined)[]>;
|
|
705
684
|
}>>>;
|
|
706
685
|
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
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
|
|
@@ -417,7 +417,6 @@ declare const ContentSkillModalPropTypes: {
|
|
|
417
417
|
title: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
|
|
418
418
|
title: PropTypes.Requireable<string>;
|
|
419
419
|
subtitle: PropTypes.Requireable<string>;
|
|
420
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
421
420
|
type: PropTypes.Requireable<string>;
|
|
422
421
|
'data-name': PropTypes.Requireable<string>;
|
|
423
422
|
titleSize: PropTypes.Requireable<string>;
|
|
@@ -637,22 +636,17 @@ declare const ContentSkillModalPropTypes: {
|
|
|
637
636
|
}>>>;
|
|
638
637
|
filters: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
639
638
|
title: PropTypes.Requireable<string>;
|
|
640
|
-
showSelectedFilters: PropTypes.Requireable<boolean>;
|
|
641
639
|
onClearAll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
642
|
-
onRemoveSelectedFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
643
640
|
options: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
|
|
644
641
|
type: PropTypes.Requireable<string>;
|
|
645
642
|
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
646
643
|
title: PropTypes.Requireable<string>;
|
|
647
|
-
titleAriaLabel: PropTypes.Requireable<string>;
|
|
648
644
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
649
645
|
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
650
646
|
label: PropTypes.Requireable<string>;
|
|
651
647
|
type: PropTypes.Requireable<string>;
|
|
652
|
-
textColor: PropTypes.Requireable<string>;
|
|
653
648
|
selected: PropTypes.Requireable<boolean>;
|
|
654
649
|
icon: PropTypes.Requireable<string>;
|
|
655
|
-
customIcon: PropTypes.Requireable<string>;
|
|
656
650
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
657
651
|
}> | null | undefined)[]>;
|
|
658
652
|
}>>;
|
|
@@ -660,7 +654,6 @@ declare const ContentSkillModalPropTypes: {
|
|
|
660
654
|
type: PropTypes.Requireable<string>;
|
|
661
655
|
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
662
656
|
title: PropTypes.Requireable<string>;
|
|
663
|
-
titleAriaLabel: PropTypes.Requireable<string>;
|
|
664
657
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
665
658
|
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
666
659
|
label: PropTypes.Requireable<string>;
|
|
@@ -684,20 +677,6 @@ declare const ContentSkillModalPropTypes: {
|
|
|
684
677
|
searchIconAriaLabel: PropTypes.Requireable<string>;
|
|
685
678
|
}>>;
|
|
686
679
|
}>>;
|
|
687
|
-
}> | PropTypes.InferProps<{
|
|
688
|
-
type: PropTypes.Requireable<string>;
|
|
689
|
-
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
690
|
-
title: PropTypes.Validator<string>;
|
|
691
|
-
titleAriaLabel: PropTypes.Requireable<string>;
|
|
692
|
-
onClear: PropTypes.Validator<(...args: any[]) => any>;
|
|
693
|
-
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
694
|
-
label: PropTypes.Validator<string>;
|
|
695
|
-
value: PropTypes.Validator<boolean>;
|
|
696
|
-
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
697
|
-
theme: PropTypes.Validator<string>;
|
|
698
|
-
ariaLabel: PropTypes.Validator<string>;
|
|
699
|
-
}> | null | undefined)[]>;
|
|
700
|
-
}>>;
|
|
701
680
|
}> | null | undefined> | null | undefined)[]>;
|
|
702
681
|
}>>>;
|
|
703
682
|
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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AAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
|
|
@@ -5,7 +5,6 @@ declare const FilterCheckboxAndSearch: {
|
|
|
5
5
|
(props: FilterCheckboxAndSearchProps, context: WebContextValues): JSX.Element;
|
|
6
6
|
propTypes: {
|
|
7
7
|
title: import("prop-types").Requireable<string>;
|
|
8
|
-
titleAriaLabel: import("prop-types").Requireable<string>;
|
|
9
8
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
10
9
|
options: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
11
10
|
label: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+F1B,CAAC;AAQF,eAAe,uBAAuB,CAAC"}
|
|
@@ -40,7 +40,6 @@ const INITIAL_VISIBLE_OPTIONS = 5;
|
|
|
40
40
|
const FilterCheckboxAndSearch = (props, context) => {
|
|
41
41
|
const {
|
|
42
42
|
title,
|
|
43
|
-
titleAriaLabel,
|
|
44
43
|
searchOptions,
|
|
45
44
|
onClear,
|
|
46
45
|
options
|
|
@@ -67,8 +66,7 @@ const FilterCheckboxAndSearch = (props, context) => {
|
|
|
67
66
|
className: _style.default.titleAndTagWrapper,
|
|
68
67
|
"data-testid": "filter-checkbox-and-searh-title-and-tag-wrapper"
|
|
69
68
|
}, /*#__PURE__*/_react.default.createElement(_title.default, {
|
|
70
|
-
title: title
|
|
71
|
-
ariaLabel: titleAriaLabel
|
|
69
|
+
title: title
|
|
72
70
|
}), hasSelectedFilters ? /*#__PURE__*/_react.default.createElement(_tag.default, {
|
|
73
71
|
label: (0, _toString2.default)(selectedFiltersCount),
|
|
74
72
|
type: "info",
|
|
@@ -80,8 +78,7 @@ const FilterCheckboxAndSearch = (props, context) => {
|
|
|
80
78
|
type: "text",
|
|
81
79
|
"data-testid": "filter-checkbox-and-search-clear-button",
|
|
82
80
|
onClick: onClear,
|
|
83
|
-
customStyle: CLEAR_BUTTON_STYLE
|
|
84
|
-
hoverColor: _colors.COLORS.cm_grey_700
|
|
81
|
+
customStyle: CLEAR_BUTTON_STYLE
|
|
85
82
|
})) : null), searchOptions ? /*#__PURE__*/_react.default.createElement("div", {
|
|
86
83
|
className: _style.default.search
|
|
87
84
|
}, /*#__PURE__*/_react.default.createElement(_inputSearch.default, searchOptions)) : null, /*#__PURE__*/_react.default.createElement("div", {
|