@coorpacademy/components 11.40.4 → 11.40.6-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/button-link/index.d.ts +15 -8
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +75 -37
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/types.d.ts +20 -14
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js +4 -3
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/button-menu/index.d.ts +1 -3
- package/es/atom/button-menu/index.d.ts.map +1 -1
- package/es/atom/button-menu/index.js +1 -7
- package/es/atom/button-menu/index.js.map +1 -1
- package/es/atom/button-menu/types.d.ts +2 -6
- package/es/atom/button-menu/types.d.ts.map +1 -1
- package/es/atom/chip/index.d.ts +4 -0
- package/es/atom/chip/index.d.ts.map +1 -1
- package/es/atom/chip/index.js +12 -6
- 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 +2 -1
- package/es/atom/input-switch/index.js.map +1 -1
- package/es/atom/input-switch/style.css +4 -1
- package/es/atom/radio-with-title/index.d.ts +16 -8
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +16 -8
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/title/index.d.ts +16 -8
- package/es/atom/title/index.d.ts.map +1 -1
- package/es/atom/title/index.js +5 -2
- package/es/atom/title/index.js.map +1 -1
- package/es/molecule/base-modal/index.d.ts +1 -0
- package/es/molecule/base-modal/index.d.ts.map +1 -1
- package/es/molecule/base-modal/index.js +6 -2
- package/es/molecule/base-modal/index.js.map +1 -1
- package/es/molecule/base-modal/style.css +5 -0
- package/es/molecule/bullet-point-menu-button/index.d.ts +1 -3
- package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/es/molecule/bullet-point-menu-button/types.d.ts +1 -3
- package/es/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/es/molecule/button-menu-action/index.d.ts +19 -11
- package/es/molecule/button-menu-action/index.d.ts.map +1 -1
- package/es/molecule/button-menu-action/index.js +27 -3
- package/es/molecule/button-menu-action/index.js.map +1 -1
- package/es/molecule/button-menu-action/types.d.ts +22 -12
- package/es/molecule/button-menu-action/types.d.ts.map +1 -1
- package/es/molecule/button-menu-action/types.js +7 -2
- package/es/molecule/button-menu-action/types.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +135 -85
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/index.d.ts +17 -14
- package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/types.d.ts +17 -14
- package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/es/molecule/icon-picker-modal/index.d.ts +1 -2
- package/es/molecule/icon-picker-modal/index.d.ts.map +1 -1
- package/es/molecule/icon-picker-modal/index.js +16 -43
- package/es/molecule/icon-picker-modal/index.js.map +1 -1
- package/es/molecule/multi-filter-panel/index.d.ts +19 -0
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/index.js +39 -10
- package/es/molecule/multi-filter-panel/index.js.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts +26 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.js +5 -0
- package/es/molecule/multi-filter-panel/prop-types.js.map +1 -1
- package/es/molecule/multi-filter-panel/style.css +8 -0
- package/es/molecule/quick-filters/index.d.ts +15 -8
- package/es/molecule/quick-filters/index.d.ts.map +1 -1
- package/es/molecule/quick-filters/types.d.ts +15 -8
- package/es/molecule/quick-filters/types.d.ts.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +16 -8
- package/es/molecule/title-radio-wrapper/index.d.ts +16 -8
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +16 -8
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/content-skill-modal/index.d.ts +135 -68
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +135 -68
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts +1 -0
- package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.js +5 -2
- package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts +2 -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-checkbox-and-search/style.css +2 -0
- package/es/organism/filter-chip/index.d.ts +3 -0
- package/es/organism/filter-chip/index.d.ts.map +1 -1
- package/es/organism/filter-chip/index.js +12 -4
- package/es/organism/filter-chip/index.js.map +1 -1
- package/es/organism/filter-chip/prop-types.d.ts +14 -7
- package/es/organism/filter-chip/prop-types.d.ts.map +1 -1
- package/es/organism/filter-chip/prop-types.js +3 -0
- package/es/organism/filter-chip/prop-types.js.map +1 -1
- package/es/organism/filter-switch/index.d.ts +23 -0
- package/es/organism/filter-switch/index.d.ts.map +1 -0
- package/es/organism/filter-switch/index.js +76 -0
- package/es/organism/filter-switch/index.js.map +1 -0
- package/es/organism/filter-switch/prop-types.d.ts +28 -0
- package/es/organism/filter-switch/prop-types.d.ts.map +1 -0
- package/es/organism/filter-switch/prop-types.js +15 -0
- package/es/organism/filter-switch/prop-types.js.map +1 -0
- package/es/organism/filter-switch/style.css +46 -0
- package/es/organism/icon-editor/index.d.ts +15 -8
- package/es/organism/icon-editor/index.d.ts.map +1 -1
- package/es/organism/icon-editor/types.d.ts +15 -8
- package/es/organism/icon-editor/types.d.ts.map +1 -1
- package/es/organism/list-items/index.d.ts +116 -68
- package/es/organism/rewards-form/index.d.ts +16 -8
- package/es/organism/select-opponents/index.d.ts +16 -8
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +16 -8
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/setup-header/index.d.ts +60 -32
- package/es/organism/title-and-input/index.d.ts +47 -24
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +47 -24
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +63 -38
- package/es/template/app-player/loading/index.d.ts +135 -85
- package/es/template/app-player/player/index.d.ts +278 -170
- package/es/template/app-player/player/slides/header/index.d.ts +8 -0
- package/es/template/app-player/player/slides/header/index.d.ts.map +1 -1
- package/es/template/app-player/player/slides/header/index.js +89 -3
- package/es/template/app-player/player/slides/header/index.js.map +1 -1
- package/es/template/app-player/player/slides/header/style.css +1 -1
- package/es/template/app-player/player/slides/index.d.ts +143 -85
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +135 -85
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +143 -85
- package/es/template/app-review/index.d.ts +135 -85
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +135 -85
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +135 -85
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-create/index.d.ts +60 -32
- package/es/template/back-office/brand-create/index.d.ts.map +1 -1
- package/es/template/back-office/brand-list/index.d.ts +60 -32
- package/es/template/back-office/brand-list/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +599 -298
- package/es/template/back-office/dashboard-preview/index.d.ts +60 -32
- package/es/template/back-office/layout/index.d.ts +60 -32
- package/es/template/back-office/layout/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +270 -170
- package/es/template/common/search-page/index.d.ts +135 -85
- package/es/template/external-course/index.d.ts +135 -85
- package/es/variables/colors.d.ts +1 -0
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +1 -0
- package/es/variables/colors.js.map +1 -1
- package/lib/atom/button-link/index.d.ts +15 -8
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +75 -37
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/types.d.ts +20 -14
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js +4 -3
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/button-menu/index.d.ts +1 -3
- package/lib/atom/button-menu/index.d.ts.map +1 -1
- package/lib/atom/button-menu/index.js +1 -7
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/button-menu/types.d.ts +2 -6
- package/lib/atom/button-menu/types.d.ts.map +1 -1
- package/lib/atom/chip/index.d.ts +4 -0
- package/lib/atom/chip/index.d.ts.map +1 -1
- package/lib/atom/chip/index.js +12 -6
- 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 +2 -1
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/input-switch/style.css +4 -1
- package/lib/atom/radio-with-title/index.d.ts +16 -8
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +16 -8
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/title/index.d.ts +16 -8
- package/lib/atom/title/index.d.ts.map +1 -1
- package/lib/atom/title/index.js +5 -2
- package/lib/atom/title/index.js.map +1 -1
- package/lib/molecule/base-modal/index.d.ts +1 -0
- package/lib/molecule/base-modal/index.d.ts.map +1 -1
- package/lib/molecule/base-modal/index.js +6 -2
- package/lib/molecule/base-modal/index.js.map +1 -1
- package/lib/molecule/base-modal/style.css +5 -0
- package/lib/molecule/bullet-point-menu-button/index.d.ts +1 -3
- package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/lib/molecule/bullet-point-menu-button/types.d.ts +1 -3
- package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/lib/molecule/button-menu-action/index.d.ts +19 -11
- package/lib/molecule/button-menu-action/index.d.ts.map +1 -1
- package/lib/molecule/button-menu-action/index.js +26 -2
- package/lib/molecule/button-menu-action/index.js.map +1 -1
- package/lib/molecule/button-menu-action/types.d.ts +22 -12
- package/lib/molecule/button-menu-action/types.d.ts.map +1 -1
- package/lib/molecule/button-menu-action/types.js +7 -2
- package/lib/molecule/button-menu-action/types.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +135 -85
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/index.d.ts +17 -14
- package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.d.ts +17 -14
- package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/lib/molecule/icon-picker-modal/index.d.ts +1 -2
- package/lib/molecule/icon-picker-modal/index.d.ts.map +1 -1
- package/lib/molecule/icon-picker-modal/index.js +16 -43
- package/lib/molecule/icon-picker-modal/index.js.map +1 -1
- package/lib/molecule/multi-filter-panel/index.d.ts +19 -0
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/index.js +39 -9
- package/lib/molecule/multi-filter-panel/index.js.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +26 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.js +5 -0
- package/lib/molecule/multi-filter-panel/prop-types.js.map +1 -1
- package/lib/molecule/multi-filter-panel/style.css +8 -0
- package/lib/molecule/quick-filters/index.d.ts +15 -8
- package/lib/molecule/quick-filters/index.d.ts.map +1 -1
- package/lib/molecule/quick-filters/types.d.ts +15 -8
- package/lib/molecule/quick-filters/types.d.ts.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +16 -8
- package/lib/molecule/title-radio-wrapper/index.d.ts +16 -8
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +16 -8
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/index.d.ts +135 -68
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +135 -68
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts +1 -0
- package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.js +5 -2
- package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts +2 -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-checkbox-and-search/style.css +2 -0
- package/lib/organism/filter-chip/index.d.ts +3 -0
- package/lib/organism/filter-chip/index.d.ts.map +1 -1
- package/lib/organism/filter-chip/index.js +12 -4
- package/lib/organism/filter-chip/index.js.map +1 -1
- package/lib/organism/filter-chip/prop-types.d.ts +14 -7
- package/lib/organism/filter-chip/prop-types.d.ts.map +1 -1
- package/lib/organism/filter-chip/prop-types.js +3 -0
- package/lib/organism/filter-chip/prop-types.js.map +1 -1
- package/lib/organism/filter-switch/index.d.ts +23 -0
- package/lib/organism/filter-switch/index.d.ts.map +1 -0
- package/lib/organism/filter-switch/index.js +83 -0
- package/lib/organism/filter-switch/index.js.map +1 -0
- package/lib/organism/filter-switch/prop-types.d.ts +28 -0
- package/lib/organism/filter-switch/prop-types.d.ts.map +1 -0
- package/lib/organism/filter-switch/prop-types.js +20 -0
- package/lib/organism/filter-switch/prop-types.js.map +1 -0
- package/lib/organism/filter-switch/style.css +46 -0
- package/lib/organism/icon-editor/index.d.ts +15 -8
- package/lib/organism/icon-editor/index.d.ts.map +1 -1
- package/lib/organism/icon-editor/types.d.ts +15 -8
- package/lib/organism/icon-editor/types.d.ts.map +1 -1
- package/lib/organism/list-items/index.d.ts +116 -68
- package/lib/organism/rewards-form/index.d.ts +16 -8
- package/lib/organism/select-opponents/index.d.ts +16 -8
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +16 -8
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/setup-header/index.d.ts +60 -32
- package/lib/organism/title-and-input/index.d.ts +47 -24
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +47 -24
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +63 -38
- package/lib/template/app-player/loading/index.d.ts +135 -85
- package/lib/template/app-player/player/index.d.ts +278 -170
- package/lib/template/app-player/player/slides/header/index.d.ts +8 -0
- package/lib/template/app-player/player/slides/header/index.d.ts.map +1 -1
- package/lib/template/app-player/player/slides/header/index.js +89 -3
- package/lib/template/app-player/player/slides/header/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/style.css +1 -1
- package/lib/template/app-player/player/slides/index.d.ts +143 -85
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +135 -85
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +143 -85
- package/lib/template/app-review/index.d.ts +135 -85
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +135 -85
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +135 -85
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-create/index.d.ts +60 -32
- package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-list/index.d.ts +60 -32
- package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +599 -298
- package/lib/template/back-office/dashboard-preview/index.d.ts +60 -32
- package/lib/template/back-office/layout/index.d.ts +60 -32
- package/lib/template/back-office/layout/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +270 -170
- package/lib/template/common/search-page/index.d.ts +135 -85
- package/lib/template/external-course/index.d.ts +135 -85
- package/lib/variables/colors.d.ts +1 -0
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +1 -0
- package/lib/variables/colors.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAGxD,QAAA,MAAM,UAAU;YAAW,eAAe,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;CAiDpE,CAAC;AAQF,eAAe,UAAU,CAAC"}
|
|
@@ -9,11 +9,13 @@ import Title from '../../atom/title';
|
|
|
9
9
|
import Tag from '../../atom/tag';
|
|
10
10
|
import ButtonLink from '../../atom/button-link';
|
|
11
11
|
import Provider, { GetTranslateFromContext } from '../../atom/provider';
|
|
12
|
+
import { COLORS } from '../../variables/colors';
|
|
12
13
|
import propTypes from './prop-types';
|
|
13
14
|
import style from './style.css';
|
|
14
15
|
const FilterChip = (props, context) => {
|
|
15
16
|
const {
|
|
16
17
|
options,
|
|
18
|
+
titleAriaLabel,
|
|
17
19
|
title,
|
|
18
20
|
onClear
|
|
19
21
|
} = props;
|
|
@@ -27,7 +29,8 @@ const FilterChip = (props, context) => {
|
|
|
27
29
|
}, /*#__PURE__*/React.createElement("div", {
|
|
28
30
|
className: style.titleContainer
|
|
29
31
|
}, /*#__PURE__*/React.createElement(Title, {
|
|
30
|
-
title: title
|
|
32
|
+
title: title,
|
|
33
|
+
ariaLabel: titleAriaLabel
|
|
31
34
|
}), hasSelectedFilters ? /*#__PURE__*/React.createElement(Tag, {
|
|
32
35
|
label: _toString(selectedFiltersCount),
|
|
33
36
|
type: "info",
|
|
@@ -43,15 +46,18 @@ const FilterChip = (props, context) => {
|
|
|
43
46
|
type: "text",
|
|
44
47
|
"data-name": "filter-chip-clear-button",
|
|
45
48
|
"aria-label": "filter chip clear button",
|
|
46
|
-
onClick: onClear
|
|
49
|
+
onClick: onClear,
|
|
50
|
+
hoverColor: COLORS.cm_grey_700
|
|
47
51
|
})) : null), /*#__PURE__*/React.createElement("div", {
|
|
48
52
|
className: style.optionsContainer
|
|
49
53
|
}, _map(({
|
|
50
54
|
icon,
|
|
51
55
|
label,
|
|
52
56
|
onClick,
|
|
57
|
+
textColor,
|
|
53
58
|
type,
|
|
54
|
-
selected
|
|
59
|
+
selected,
|
|
60
|
+
customIcon
|
|
55
61
|
}) => {
|
|
56
62
|
function handleClick() {
|
|
57
63
|
onClick(type);
|
|
@@ -59,9 +65,11 @@ const FilterChip = (props, context) => {
|
|
|
59
65
|
return /*#__PURE__*/React.createElement(Chip, {
|
|
60
66
|
leftIcon: icon,
|
|
61
67
|
text: label,
|
|
68
|
+
textColor: textColor,
|
|
62
69
|
key: label,
|
|
63
70
|
selected: selected,
|
|
64
|
-
onClick: handleClick
|
|
71
|
+
onClick: handleClick,
|
|
72
|
+
customIcon: customIcon
|
|
65
73
|
});
|
|
66
74
|
}, options)));
|
|
67
75
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","Chip","Title","Tag","ButtonLink","Provider","GetTranslateFromContext","propTypes","style","FilterChip","props","context","options","title","onClear","selectedFiltersCount","_pipe","_filter","selected","_size","hasSelectedFilters","translate","createElement","Fragment","className","header","titleContainer","label","_toString","type","size","buttonContainer","customStyle","fontWeight","padding","onClick","optionsContainer","_map","icon","handleClick","leftIcon","text","key","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-chip/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, map, pipe, size, toString} from 'lodash/fp';\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 propTypes, {FilterChipProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterChip = (props: FilterChipProps, context: WebContextValues) => {\n const {options, 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} />\n {hasSelectedFilters ? (\n <Tag label={toString(selectedFiltersCount)} type=\"info\" size=\"S\" />\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 />\n </div>\n ) : null}\n </div>\n <div className={style.optionsContainer}>\n {map(({icon, label, onClick, type, selected}) => {\n function handleClick() {\n onClick(type);\n }\n\n return (\n <Chip\n leftIcon={icon}\n text={label}\n key={label}\n selected={selected}\n onClick={handleClick}\n />\n );\n }, options)}\n </div>\n </>\n );\n};\n\nFilterChip.propTypes = propTypes;\n\nFilterChip.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterChip;\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,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,OAAOC,SAAS,MAAyB,cAAc;AACvD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGA,CAACC,KAAsB,EAAEC,OAAyB,KAAK;EACxE,MAAM;IAACC,OAAO;IAAEC,KAAK;IAAEC;EAAO,CAAC,
|
|
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","buttonContainer","customStyle","fontWeight","padding","onClick","hoverColor","cm_grey_700","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, map, pipe, size, toString} from 'lodash/fp';\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 {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 label={toString(selectedFiltersCount)} type=\"info\" size=\"S\" />\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\n return (\n <Chip\n leftIcon={icon}\n text={label}\n textColor={textColor}\n key={label}\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};\n\nexport default FilterChip;\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,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,OAAO;IAAEC,cAAc;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGL,KAAK;EACvD,MAAMM,oBAAoB,GAAGC,KAAA,CAAKC,OAAA,CAAO;IAACC,QAAQ,EAAE;EAAI,CAAC,CAAC,EAAAC,KAAM,CAAC,CAACR,OAAO,CAAC;EAC1E,MAAMS,kBAAkB,GAAGL,oBAAoB,GAAG,CAAC;EACnD,MAAMM,SAAS,GAAGjB,uBAAuB,CAACM,OAAO,CAAC;EAClD,oBACEZ,KAAA,CAAAwB,aAAA,CAAAxB,KAAA,CAAAyB,QAAA,qBACEzB,KAAA,CAAAwB,aAAA;IAAKE,SAAS,EAAEjB,KAAK,CAACkB;EAAO,gBAC3B3B,KAAA,CAAAwB,aAAA;IAAKE,SAAS,EAAEjB,KAAK,CAACmB;EAAe,gBACnC5B,KAAA,CAAAwB,aAAA,CAACtB,KAAK;IAACa,KAAK,EAAEA,KAAM;IAACc,SAAS,EAAEf;EAAe,CAAE,CAAC,EACjDQ,kBAAkB,gBACjBtB,KAAA,CAAAwB,aAAA,CAACrB,GAAG;IAAC2B,KAAK,EAAEC,SAAA,CAASd,oBAAoB,CAAE;IAACe,IAAI,EAAC,MAAM;IAACC,IAAI,EAAC;EAAG,CAAE,CAAC,GACjE,IACD,CAAC,EACLX,kBAAkB,gBACjBtB,KAAA,CAAAwB,aAAA;IAAKE,SAAS,EAAEjB,KAAK,CAACyB;EAAgB,gBACpClC,KAAA,CAAAwB,aAAA,CAACpB,UAAU;IACT+B,WAAW,EAAE;MAACC,UAAU,EAAE,QAAQ;MAAEC,OAAO,EAAE;IAAC,CAAE;IAChDP,KAAK,EAAEP,SAAS,CAAC,OAAO,CAAE;IAC1BS,IAAI,EAAC,MAAM;IACX,aAAU,0BAA0B;IACpC,cAAW,0BAA0B;IACrCM,OAAO,EAAEtB,OAAQ;IACjBuB,UAAU,EAAEhC,MAAM,CAACiC;EAAY,CAChC,CACE,CAAC,GACJ,IACD,CAAC,eACNxC,KAAA,CAAAwB,aAAA;IAAKE,SAAS,EAAEjB,KAAK,CAACgC;EAAiB,GACpCC,IAAA,CAAI,CAAC;IAACC,IAAI;IAAEb,KAAK;IAAEQ,OAAO;IAAEM,SAAS;IAAEZ,IAAI;IAAEZ,QAAQ;IAAEyB;EAAU,CAAC,KAAK;IACtE,SAASC,WAAWA,CAAA,EAAG;MACrBR,OAAO,CAACN,IAAI,CAAC;IACf;IAEA,oBACEhC,KAAA,CAAAwB,aAAA,CAACvB,IAAI;MACH8C,QAAQ,EAAEJ,IAAK;MACfK,IAAI,EAAElB,KAAM;MACZc,SAAS,EAAEA,SAAU;MACrBK,GAAG,EAAEnB,KAAM;MACXV,QAAQ,EAAEA,QAAS;MACnBkB,OAAO,EAAEQ,WAAY;MACrBD,UAAU,EAAEA;IAAW,CACxB,CAAC;EAEN,CAAC,EAAEhC,OAAO,CACP,CACL,CAAC;AAEP,CAAC;AAEDH,UAAU,CAACF,SAAS,GAAA0C,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG5C,SAAS;AAEhCE,UAAU,CAAC2C,YAAY,GAAG;EACxB9B,SAAS,EAAElB,QAAQ,CAACiD,iBAAiB,CAAC/B;AACxC,CAAC;AAED,eAAeb,UAAU","ignoreList":[]}
|
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
declare const propTypes: {
|
|
3
3
|
title: PropTypes.Requireable<string>;
|
|
4
|
+
titleAriaLabel: PropTypes.Requireable<string>;
|
|
4
5
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
5
6
|
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
6
7
|
label: PropTypes.Requireable<string>;
|
|
7
8
|
type: PropTypes.Requireable<string>;
|
|
9
|
+
textColor: PropTypes.Requireable<string>;
|
|
8
10
|
selected: PropTypes.Requireable<boolean>;
|
|
9
11
|
icon: PropTypes.Requireable<string>;
|
|
12
|
+
customIcon: PropTypes.Requireable<string>;
|
|
10
13
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
14
|
}> | null | undefined)[]>;
|
|
12
15
|
};
|
|
16
|
+
export declare type FilterChipOptionsProps = {
|
|
17
|
+
label: string;
|
|
18
|
+
type: string;
|
|
19
|
+
selected: boolean;
|
|
20
|
+
icon?: string;
|
|
21
|
+
textColor?: string;
|
|
22
|
+
customIcon?: string;
|
|
23
|
+
onClick: (type: string) => void;
|
|
24
|
+
};
|
|
13
25
|
export declare type FilterChipProps = {
|
|
14
26
|
title: string;
|
|
27
|
+
titleAriaLabel?: string;
|
|
15
28
|
onClear: () => void;
|
|
16
|
-
options:
|
|
17
|
-
label: string;
|
|
18
|
-
type: string;
|
|
19
|
-
selected: boolean;
|
|
20
|
-
icon: string;
|
|
21
|
-
onClick: (type: string) => void;
|
|
22
|
-
}[];
|
|
29
|
+
options: FilterChipOptionsProps[];
|
|
23
30
|
};
|
|
24
31
|
export default propTypes;
|
|
25
32
|
//# sourceMappingURL=prop-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-chip/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;;;;CAed,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
const propTypes = {
|
|
3
3
|
title: PropTypes.string,
|
|
4
|
+
titleAriaLabel: PropTypes.string,
|
|
4
5
|
onClear: PropTypes.func,
|
|
5
6
|
options: PropTypes.arrayOf(PropTypes.shape({
|
|
6
7
|
label: PropTypes.string,
|
|
7
8
|
type: PropTypes.string,
|
|
9
|
+
textColor: PropTypes.string,
|
|
8
10
|
selected: PropTypes.bool,
|
|
9
11
|
icon: PropTypes.string,
|
|
12
|
+
customIcon: PropTypes.string,
|
|
10
13
|
onClick: PropTypes.func
|
|
11
14
|
}))
|
|
12
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","onClear","func","options","arrayOf","shape","label","type","selected","bool","icon","onClick"],"sources":["../../../src/organism/filter-chip/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n title: PropTypes.string,\n onClear: PropTypes.func,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.string,\n selected: PropTypes.bool,\n icon: PropTypes.string,\n onClick: PropTypes.func\n })\n )\n};\n\nexport type
|
|
1
|
+
{"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","titleAriaLabel","onClear","func","options","arrayOf","shape","label","type","textColor","selected","bool","icon","customIcon","onClick"],"sources":["../../../src/organism/filter-chip/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\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 type: PropTypes.string,\n textColor: PropTypes.string,\n selected: PropTypes.bool,\n icon: PropTypes.string,\n customIcon: PropTypes.string,\n onClick: PropTypes.func\n })\n )\n};\n\nexport type FilterChipOptionsProps = {\n label: string;\n type: string;\n selected: boolean;\n icon?: string;\n textColor?: string;\n customIcon?: string;\n onClick: (type: string) => void;\n};\n\nexport type FilterChipProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n options: FilterChipOptionsProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM;EACvBC,cAAc,EAAEJ,SAAS,CAACG,MAAM;EAChCE,OAAO,EAAEL,SAAS,CAACM,IAAI;EACvBC,OAAO,EAAEP,SAAS,CAACQ,OAAO,CACxBR,SAAS,CAACS,KAAK,CAAC;IACdC,KAAK,EAAEV,SAAS,CAACG,MAAM;IACvBQ,IAAI,EAAEX,SAAS,CAACG,MAAM;IACtBS,SAAS,EAAEZ,SAAS,CAACG,MAAM;IAC3BU,QAAQ,EAAEb,SAAS,CAACc,IAAI;IACxBC,IAAI,EAAEf,SAAS,CAACG,MAAM;IACtBa,UAAU,EAAEhB,SAAS,CAACG,MAAM;IAC5Bc,OAAO,EAAEjB,SAAS,CAACM;EACrB,CAAC,CACH;AACF,CAAC;AAmBD,eAAeL,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WebContextValues } from '../../atom/provider/web-context';
|
|
3
|
+
import { FilterSwitchProps } from './prop-types';
|
|
4
|
+
declare const FilterSwitch: {
|
|
5
|
+
(props: FilterSwitchProps, 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
|
+
value: import("prop-types").Validator<boolean>;
|
|
13
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
14
|
+
theme: import("prop-types").Validator<string>;
|
|
15
|
+
ariaLabel: import("prop-types").Validator<string>;
|
|
16
|
+
}> | null | undefined)[]>;
|
|
17
|
+
};
|
|
18
|
+
contextTypes: {
|
|
19
|
+
translate: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default FilterSwitch;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAG1D,QAAA,MAAM,YAAY;YAAW,iBAAiB,WAAW,gBAAgB;;;;;;;;;;;;;;;;CA+CxE,CAAC;AAQF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import _toString from "lodash/fp/toString";
|
|
2
|
+
import _size from "lodash/fp/size";
|
|
3
|
+
import _pipe from "lodash/fp/pipe";
|
|
4
|
+
import _filter from "lodash/fp/filter";
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import Title from '../../atom/title';
|
|
7
|
+
import InputSwitch from '../../atom/input-switch';
|
|
8
|
+
import Tag from '../../atom/tag';
|
|
9
|
+
import ButtonLink from '../../atom/button-link';
|
|
10
|
+
import Provider, { GetTranslateFromContext } from '../../atom/provider';
|
|
11
|
+
import { COLORS } from '../../variables/colors';
|
|
12
|
+
import propTypes from './prop-types';
|
|
13
|
+
import style from './style.css';
|
|
14
|
+
const FilterSwitch = (props, context) => {
|
|
15
|
+
const {
|
|
16
|
+
title,
|
|
17
|
+
titleAriaLabel,
|
|
18
|
+
onClear,
|
|
19
|
+
options
|
|
20
|
+
} = props;
|
|
21
|
+
const selectedFiltersCount = _pipe(_filter({
|
|
22
|
+
value: true
|
|
23
|
+
}), _size)(options);
|
|
24
|
+
const hasSelectedFilters = selectedFiltersCount > 0;
|
|
25
|
+
const translate = GetTranslateFromContext(context);
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: style.header
|
|
28
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: style.titleContainer
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Title, {
|
|
31
|
+
title: title,
|
|
32
|
+
ariaLabel: titleAriaLabel
|
|
33
|
+
}), hasSelectedFilters ? /*#__PURE__*/React.createElement(Tag, {
|
|
34
|
+
label: _toString(selectedFiltersCount),
|
|
35
|
+
type: "info",
|
|
36
|
+
size: "S"
|
|
37
|
+
}) : null), hasSelectedFilters ? /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: style.buttonContainer
|
|
39
|
+
}, /*#__PURE__*/React.createElement(ButtonLink, {
|
|
40
|
+
customStyle: {
|
|
41
|
+
fontWeight: 'normal',
|
|
42
|
+
padding: 0
|
|
43
|
+
},
|
|
44
|
+
label: translate('clear'),
|
|
45
|
+
type: "text",
|
|
46
|
+
"data-name": "filter-chip-clear-button",
|
|
47
|
+
"aria-label": "filter chip clear button",
|
|
48
|
+
onClick: onClear,
|
|
49
|
+
hoverColor: COLORS.cm_grey_700
|
|
50
|
+
})) : null), /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: style.optionsContainer
|
|
52
|
+
}, options.map(optionItem => {
|
|
53
|
+
const {
|
|
54
|
+
label,
|
|
55
|
+
value,
|
|
56
|
+
onChange,
|
|
57
|
+
ariaLabel
|
|
58
|
+
} = optionItem;
|
|
59
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
key: label,
|
|
61
|
+
className: style.switchOption
|
|
62
|
+
}, /*#__PURE__*/React.createElement(InputSwitch, {
|
|
63
|
+
title: label,
|
|
64
|
+
value: value,
|
|
65
|
+
theme: 'newMooc',
|
|
66
|
+
onChange: onChange,
|
|
67
|
+
"aria-label": ariaLabel
|
|
68
|
+
}));
|
|
69
|
+
})));
|
|
70
|
+
};
|
|
71
|
+
FilterSwitch.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
72
|
+
FilterSwitch.contextTypes = {
|
|
73
|
+
translate: Provider.childContextTypes.translate
|
|
74
|
+
};
|
|
75
|
+
export default FilterSwitch;
|
|
76
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","Title","InputSwitch","Tag","ButtonLink","Provider","GetTranslateFromContext","COLORS","propTypes","style","FilterSwitch","props","context","title","titleAriaLabel","onClear","options","selectedFiltersCount","_pipe","_filter","value","_size","hasSelectedFilters","translate","createElement","className","header","titleContainer","ariaLabel","label","_toString","type","size","buttonContainer","customStyle","fontWeight","padding","onClick","hoverColor","cm_grey_700","optionsContainer","map","optionItem","onChange","key","switchOption","theme","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-switch/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, pipe, size, toString} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport InputSwitch from '../../atom/input-switch';\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, {FilterSwitchProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterSwitch = (props: FilterSwitchProps, context: WebContextValues) => {\n const {title, titleAriaLabel, onClear, options} = props;\n const selectedFiltersCount = pipe(filter({value: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n const translate = GetTranslateFromContext(context);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.titleContainer}>\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.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 {options.map(optionItem => {\n const {label, value, onChange, ariaLabel} = optionItem;\n return (\n <div key={label} className={style.switchOption}>\n <InputSwitch\n title={label}\n value={value}\n theme={'newMooc'}\n onChange={onChange}\n aria-label={ariaLabel}\n />\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nFilterSwitch.propTypes = propTypes;\n\nFilterSwitch.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterSwitch;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,WAAW,MAAM,yBAAyB;AACjD,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,MAA2B,cAAc;AACzD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,YAAY,GAAGA,CAACC,KAAwB,EAAEC,OAAyB,KAAK;EAC5E,MAAM;IAACC,KAAK;IAAEC,cAAc;IAAEC,OAAO;IAAEC;EAAO,CAAC,GAAGL,KAAK;EACvD,MAAMM,oBAAoB,GAAGC,KAAA,CAAKC,OAAA,CAAO;IAACC,KAAK,EAAE;EAAI,CAAC,CAAC,EAAAC,KAAM,CAAC,CAACL,OAAO,CAAC;EACvE,MAAMM,kBAAkB,GAAGL,oBAAoB,GAAG,CAAC;EACnD,MAAMM,SAAS,GAAGjB,uBAAuB,CAACM,OAAO,CAAC;EAElD,oBACEZ,KAAA,CAAAwB,aAAA,2BACExB,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACiB;EAAO,gBAC3B1B,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACkB;EAAe,gBACnC3B,KAAA,CAAAwB,aAAA,CAACvB,KAAK;IAACY,KAAK,EAAEA,KAAM;IAACe,SAAS,EAAEd;EAAe,CAAE,CAAC,EACjDQ,kBAAkB,gBACjBtB,KAAA,CAAAwB,aAAA,CAACrB,GAAG;IAAC0B,KAAK,EAAEC,SAAA,CAASb,oBAAoB,CAAE;IAACc,IAAI,EAAC,MAAM;IAACC,IAAI,EAAC;EAAG,CAAE,CAAC,GACjE,IACD,CAAC,EACLV,kBAAkB,gBACjBtB,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACwB;EAAgB,gBACpCjC,KAAA,CAAAwB,aAAA,CAACpB,UAAU;IACT8B,WAAW,EAAE;MAACC,UAAU,EAAE,QAAQ;MAAEC,OAAO,EAAE;IAAC,CAAE;IAChDP,KAAK,EAAEN,SAAS,CAAC,OAAO,CAAE;IAC1BQ,IAAI,EAAC,MAAM;IACX,aAAU,0BAA0B;IACpC,cAAW,0BAA0B;IACrCM,OAAO,EAAEtB,OAAQ;IACjBuB,UAAU,EAAE/B,MAAM,CAACgC;EAAY,CAChC,CACE,CAAC,GACJ,IACD,CAAC,eACNvC,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAAC+B;EAAiB,GACpCxB,OAAO,CAACyB,GAAG,CAACC,UAAU,IAAI;IACzB,MAAM;MAACb,KAAK;MAAET,KAAK;MAAEuB,QAAQ;MAAEf;IAAS,CAAC,GAAGc,UAAU;IACtD,oBACE1C,KAAA,CAAAwB,aAAA;MAAKoB,GAAG,EAAEf,KAAM;MAACJ,SAAS,EAAEhB,KAAK,CAACoC;IAAa,gBAC7C7C,KAAA,CAAAwB,aAAA,CAACtB,WAAW;MACVW,KAAK,EAAEgB,KAAM;MACbT,KAAK,EAAEA,KAAM;MACb0B,KAAK,EAAE,SAAU;MACjBH,QAAQ,EAAEA,QAAS;MACnB,cAAYf;IAAU,CACvB,CACE,CAAC;EAEV,CAAC,CACE,CACF,CAAC;AAEV,CAAC;AAEDlB,YAAY,CAACF,SAAS,GAAAuC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGzC,SAAS;AAElCE,YAAY,CAACwC,YAAY,GAAG;EAC1B3B,SAAS,EAAElB,QAAQ,CAAC8C,iBAAiB,CAAC5B;AACxC,CAAC;AAED,eAAeb,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare const propTypes: {
|
|
3
|
+
title: PropTypes.Validator<string>;
|
|
4
|
+
titleAriaLabel: PropTypes.Requireable<string>;
|
|
5
|
+
onClear: PropTypes.Validator<(...args: any[]) => any>;
|
|
6
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
7
|
+
label: PropTypes.Validator<string>;
|
|
8
|
+
value: PropTypes.Validator<boolean>;
|
|
9
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
10
|
+
theme: PropTypes.Validator<string>;
|
|
11
|
+
ariaLabel: PropTypes.Validator<string>;
|
|
12
|
+
}> | null | undefined)[]>;
|
|
13
|
+
};
|
|
14
|
+
export declare type FilterSwitchOptionsProps = {
|
|
15
|
+
label: string;
|
|
16
|
+
value: boolean;
|
|
17
|
+
onChange: (value: string) => void;
|
|
18
|
+
theme: string;
|
|
19
|
+
ariaLabel: string;
|
|
20
|
+
};
|
|
21
|
+
export declare type FilterSwitchProps = {
|
|
22
|
+
title: string;
|
|
23
|
+
titleAriaLabel?: string;
|
|
24
|
+
onClear: () => void;
|
|
25
|
+
options: FilterSwitchOptionsProps[];
|
|
26
|
+
};
|
|
27
|
+
export default propTypes;
|
|
28
|
+
//# sourceMappingURL=prop-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;;CAad,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACrC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
const propTypes = {
|
|
3
|
+
title: PropTypes.string.isRequired,
|
|
4
|
+
titleAriaLabel: PropTypes.string,
|
|
5
|
+
onClear: PropTypes.func.isRequired,
|
|
6
|
+
options: PropTypes.arrayOf(PropTypes.shape({
|
|
7
|
+
label: PropTypes.string.isRequired,
|
|
8
|
+
value: PropTypes.bool.isRequired,
|
|
9
|
+
onChange: PropTypes.func.isRequired,
|
|
10
|
+
theme: PropTypes.string.isRequired,
|
|
11
|
+
ariaLabel: PropTypes.string.isRequired
|
|
12
|
+
}))
|
|
13
|
+
};
|
|
14
|
+
export default propTypes;
|
|
15
|
+
//# sourceMappingURL=prop-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","isRequired","titleAriaLabel","onClear","func","options","arrayOf","shape","label","value","bool","onChange","theme","ariaLabel"],"sources":["../../../src/organism/filter-switch/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n title: PropTypes.string.isRequired,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n theme: PropTypes.string.isRequired,\n ariaLabel: PropTypes.string.isRequired\n })\n )\n};\n\nexport type FilterSwitchOptionsProps = {\n label: string;\n value: boolean;\n onChange: (value: string) => void;\n theme: string;\n ariaLabel: string;\n};\n\nexport type FilterSwitchProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n options: FilterSwitchOptionsProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;EAClCC,cAAc,EAAEL,SAAS,CAACG,MAAM;EAChCG,OAAO,EAAEN,SAAS,CAACO,IAAI,CAACH,UAAU;EAClCI,OAAO,EAAER,SAAS,CAACS,OAAO,CACxBT,SAAS,CAACU,KAAK,CAAC;IACdC,KAAK,EAAEX,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCQ,KAAK,EAAEZ,SAAS,CAACa,IAAI,CAACT,UAAU;IAChCU,QAAQ,EAAEd,SAAS,CAACO,IAAI,CAACH,UAAU;IACnCW,KAAK,EAAEf,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCY,SAAS,EAAEhB,SAAS,CAACG,MAAM,CAACC;EAC9B,CAAC,CACH;AACF,CAAC;AAiBD,eAAeH,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value cm_grey_500 from colors;
|
|
3
|
+
@value cm_grey_700 from colors;
|
|
4
|
+
|
|
5
|
+
.header {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
margin-bottom: 16px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titleContainer {
|
|
12
|
+
color: cm_grey_700;
|
|
13
|
+
font-family: Gilroy;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
display: flex;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
align-items: center;
|
|
20
|
+
flex: 10;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.buttonContainer {
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
color: cm_grey_500;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.optionsContainer {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: 8px;
|
|
33
|
+
width: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.switchOption {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.switchOption label {
|
|
41
|
+
margin: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.switchOption span {
|
|
45
|
+
color: cm_grey_500;
|
|
46
|
+
}
|
|
@@ -44,7 +44,7 @@ declare const IconEditor: {
|
|
|
44
44
|
tooltipPlacement: import("prop-types").Requireable<string>;
|
|
45
45
|
'data-name': import("prop-types").Requireable<string>;
|
|
46
46
|
'data-testid': import("prop-types").Requireable<string>;
|
|
47
|
-
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
47
|
+
icon: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
48
48
|
position: import("prop-types").Requireable<string>;
|
|
49
49
|
type: import("prop-types").Requireable<string>;
|
|
50
50
|
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
@@ -52,11 +52,19 @@ declare const IconEditor: {
|
|
|
52
52
|
color: import("prop-types").Requireable<string>;
|
|
53
53
|
backgroundColor: import("prop-types").Requireable<string>;
|
|
54
54
|
size: import("prop-types").Requireable<number>;
|
|
55
|
-
customStyle: import("prop-types").Requireable<
|
|
56
|
-
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
57
|
-
}>;
|
|
55
|
+
customStyle: import("prop-types").Requireable<object>;
|
|
58
56
|
}>>;
|
|
59
|
-
}
|
|
57
|
+
}> | (import("prop-types").InferProps<{
|
|
58
|
+
position: import("prop-types").Requireable<string>;
|
|
59
|
+
type: import("prop-types").Requireable<string>;
|
|
60
|
+
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
61
|
+
name: import("prop-types").Validator<string>;
|
|
62
|
+
color: import("prop-types").Requireable<string>;
|
|
63
|
+
backgroundColor: import("prop-types").Requireable<string>;
|
|
64
|
+
size: import("prop-types").Requireable<number>;
|
|
65
|
+
customStyle: import("prop-types").Requireable<object>;
|
|
66
|
+
}>>;
|
|
67
|
+
}> | null | undefined)[] | null | undefined>>;
|
|
60
68
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
61
69
|
link: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
62
70
|
href: import("prop-types").Requireable<string>;
|
|
@@ -67,9 +75,8 @@ declare const IconEditor: {
|
|
|
67
75
|
hoverColor: import("prop-types").Requireable<string>;
|
|
68
76
|
disabled: import("prop-types").Requireable<boolean>;
|
|
69
77
|
className: import("prop-types").Requireable<string>;
|
|
70
|
-
customStyle: import("prop-types").Requireable<
|
|
71
|
-
|
|
72
|
-
}>;
|
|
78
|
+
customStyle: import("prop-types").Requireable<object>;
|
|
79
|
+
contentCustomStyle: import("prop-types").Requireable<object>;
|
|
73
80
|
useTitle: import("prop-types").Requireable<boolean>;
|
|
74
81
|
customLabelClassName: import("prop-types").Requireable<string>;
|
|
75
82
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB1E,CAAC;AAQF,eAAe,UAAU,CAAC"}
|
|
@@ -41,7 +41,7 @@ declare const IconEditorPropTypes: {
|
|
|
41
41
|
tooltipPlacement: PropTypes.Requireable<string>;
|
|
42
42
|
'data-name': PropTypes.Requireable<string>;
|
|
43
43
|
'data-testid': PropTypes.Requireable<string>;
|
|
44
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
44
|
+
icon: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
45
45
|
position: PropTypes.Requireable<string>;
|
|
46
46
|
type: PropTypes.Requireable<string>;
|
|
47
47
|
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -49,11 +49,19 @@ declare const IconEditorPropTypes: {
|
|
|
49
49
|
color: PropTypes.Requireable<string>;
|
|
50
50
|
backgroundColor: PropTypes.Requireable<string>;
|
|
51
51
|
size: PropTypes.Requireable<number>;
|
|
52
|
-
customStyle: PropTypes.Requireable<
|
|
53
|
-
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
54
|
-
}>;
|
|
52
|
+
customStyle: PropTypes.Requireable<object>;
|
|
55
53
|
}>>;
|
|
56
|
-
}
|
|
54
|
+
}> | (PropTypes.InferProps<{
|
|
55
|
+
position: PropTypes.Requireable<string>;
|
|
56
|
+
type: PropTypes.Requireable<string>;
|
|
57
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
58
|
+
name: PropTypes.Validator<string>;
|
|
59
|
+
color: PropTypes.Requireable<string>;
|
|
60
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
61
|
+
size: PropTypes.Requireable<number>;
|
|
62
|
+
customStyle: PropTypes.Requireable<object>;
|
|
63
|
+
}>>;
|
|
64
|
+
}> | null | undefined)[] | null | undefined>>;
|
|
57
65
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
58
66
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
59
67
|
href: PropTypes.Requireable<string>;
|
|
@@ -64,9 +72,8 @@ declare const IconEditorPropTypes: {
|
|
|
64
72
|
hoverColor: PropTypes.Requireable<string>;
|
|
65
73
|
disabled: PropTypes.Requireable<boolean>;
|
|
66
74
|
className: PropTypes.Requireable<string>;
|
|
67
|
-
customStyle: PropTypes.Requireable<
|
|
68
|
-
|
|
69
|
-
}>;
|
|
75
|
+
customStyle: PropTypes.Requireable<object>;
|
|
76
|
+
contentCustomStyle: PropTypes.Requireable<object>;
|
|
70
77
|
useTitle: PropTypes.Requireable<boolean>;
|
|
71
78
|
customLabelClassName: PropTypes.Requireable<string>;
|
|
72
79
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,QAAA,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAC;AAEF,eAAe,mBAAmB,CAAC;AAEnC,oBAAY,eAAe,GAAG;IAC5B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B,CAAC"}
|