@coorpacademy/components 11.35.2-forcedeploy2.15 → 11.35.3-alpha.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/button-link/index.js +1 -1
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/style.css +2 -2
- package/es/atom/icon/index.d.ts +17 -35
- package/es/atom/icon/index.d.ts.map +1 -1
- package/es/atom/icon/index.js +15 -32
- package/es/atom/icon/index.js.map +1 -1
- package/es/atom/radio-with-title/index.d.ts +3 -13
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +2 -13
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/status-item/index.native.js +1 -1
- package/es/atom/status-item/index.native.js.map +1 -1
- package/es/atom/tag/index.d.ts +1 -12
- package/es/atom/tag/style.css +0 -1
- package/es/atom/title/index.d.ts +2 -13
- package/es/molecule/banner/style.css +0 -1
- package/es/molecule/base-modal/style.css +1 -0
- package/es/molecule/bulk-progress-bar/index.js +2 -2
- package/es/molecule/bulk-progress-bar/index.js.map +1 -1
- package/es/molecule/certification-card/index.js +1 -1
- package/es/molecule/certification-card/index.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +7 -28
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js +1 -1
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +0 -2
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/icon-preview/index.d.ts.map +1 -1
- package/es/molecule/icon-preview/index.js +2 -1
- package/es/molecule/icon-preview/index.js.map +1 -1
- package/es/molecule/icon-preview/style.css +4 -0
- package/es/molecule/learner-skill-card/index.js +8 -10
- package/es/molecule/learner-skill-card/index.js.map +1 -1
- package/es/molecule/learner-skill-card/style.css +0 -1
- package/es/molecule/learning-priority-modal/style.css +2 -3
- package/es/molecule/progress-wrapper/index.js +1 -1
- package/es/molecule/progress-wrapper/index.js.map +1 -1
- package/es/molecule/skills-chart-side-information-item/index.d.ts +1 -1
- package/es/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -13
- package/es/molecule/title-radio-wrapper/index.d.ts +3 -13
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +2 -13
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/molecule/translation-modal/index.d.ts +1 -0
- package/es/molecule/translation-modal/index.d.ts.map +1 -1
- package/es/molecule/translation-modal/index.js +7 -24
- package/es/molecule/translation-modal/index.js.map +1 -1
- package/es/organism/cards-grid/index.d.ts +10 -48
- package/es/organism/cards-grid/index.d.ts.map +1 -1
- package/es/organism/cards-grid/index.js +2 -3
- package/es/organism/cards-grid/index.js.map +1 -1
- package/es/organism/content-skill-modal/index.d.ts +3 -13
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +2 -12
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.d.ts +22 -8
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +85 -7
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/header-with-actions/types.d.ts +44 -13
- package/es/organism/header-with-actions/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/types.js +22 -6
- package/es/organism/header-with-actions/types.js.map +1 -1
- package/es/organism/list-item/index.js +5 -5
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +17 -23
- package/es/organism/list-items/index.d.ts +2 -13
- package/es/organism/list-items/style.css +0 -1
- package/es/organism/rewards-form/index.d.ts +2 -13
- package/es/organism/select-opponents/index.d.ts +3 -13
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +2 -13
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/sidebar/index.d.ts +2 -2
- package/es/organism/skill-edition/index.d.ts +52 -1261
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/index.js +224 -3
- package/es/organism/skill-edition/index.js.map +1 -1
- package/es/organism/skill-edition/types.d.ts +117 -1268
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/organism/skill-edition/types.js +59 -7
- package/es/organism/skill-edition/types.js.map +1 -1
- package/es/organism/title-and-input/index.d.ts +5 -25
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +4 -24
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +2 -13
- package/es/template/app-player/loading/index.d.ts +6 -27
- package/es/template/app-player/player/index.d.ts +12 -53
- package/es/template/app-player/player/slides/index.d.ts +6 -27
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +6 -26
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +6 -27
- package/es/template/app-review/index.d.ts +7 -27
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +6 -27
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +6 -27
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +799 -1385
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +16 -2
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +4 -1
- package/es/template/back-office/brand-update/utils.d.ts +39 -11
- package/es/template/back-office/brand-update/utils.js +19 -0
- package/es/template/back-office/brand-update/utils.js.map +1 -1
- package/es/template/common/dashboard/index.d.ts +12 -53
- package/es/template/common/search-page/index.d.ts +6 -27
- package/es/template/external-course/index.d.ts +6 -27
- package/es/template/skill-detail/all-courses.css +2 -3
- package/es/template/skill-detail/all-courses.d.ts +17 -52
- package/es/template/skill-detail/all-courses.d.ts.map +1 -1
- package/es/template/skill-detail/all-courses.js +11 -12
- package/es/template/skill-detail/all-courses.js.map +1 -1
- package/es/template/skill-detail/continue-learning.css +2 -7
- package/es/template/skill-detail/continue-learning.d.ts +12 -25
- package/es/template/skill-detail/continue-learning.d.ts.map +1 -1
- package/es/template/skill-detail/continue-learning.js.map +1 -1
- package/es/template/skill-detail/index.d.ts +71 -89
- package/es/template/skill-detail/index.d.ts.map +1 -1
- package/es/template/skill-detail/index.js +55 -95
- package/es/template/skill-detail/index.js.map +1 -1
- package/es/template/skill-detail/style.css +39 -97
- package/es/variables/colors.css +0 -2
- package/es/variables/colors.d.ts +2 -3
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +3 -4
- package/es/variables/colors.js.map +1 -1
- package/es/variables/theme.native.js +1 -1
- package/es/variables/theme.native.js.map +1 -1
- package/lib/atom/button-link/index.js +1 -1
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/style.css +2 -2
- package/lib/atom/icon/index.d.ts +17 -35
- package/lib/atom/icon/index.d.ts.map +1 -1
- package/lib/atom/icon/index.js +18 -34
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/atom/radio-with-title/index.d.ts +3 -13
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +2 -13
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/status-item/index.native.js +1 -1
- package/lib/atom/status-item/index.native.js.map +1 -1
- package/lib/atom/tag/index.d.ts +1 -12
- package/lib/atom/tag/style.css +0 -1
- package/lib/atom/title/index.d.ts +2 -13
- package/lib/molecule/banner/style.css +0 -1
- package/lib/molecule/base-modal/style.css +1 -0
- package/lib/molecule/bulk-progress-bar/index.js +2 -2
- package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
- package/lib/molecule/certification-card/index.js +1 -1
- package/lib/molecule/certification-card/index.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +7 -28
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +1 -1
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +0 -2
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/icon-preview/index.d.ts.map +1 -1
- package/lib/molecule/icon-preview/index.js +2 -1
- package/lib/molecule/icon-preview/index.js.map +1 -1
- package/lib/molecule/icon-preview/style.css +4 -0
- package/lib/molecule/learner-skill-card/index.js +8 -10
- package/lib/molecule/learner-skill-card/index.js.map +1 -1
- package/lib/molecule/learner-skill-card/style.css +0 -1
- package/lib/molecule/learning-priority-modal/style.css +2 -3
- package/lib/molecule/progress-wrapper/index.js +1 -1
- package/lib/molecule/progress-wrapper/index.js.map +1 -1
- package/lib/molecule/skills-chart-side-information-item/index.d.ts +1 -1
- package/lib/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -13
- package/lib/molecule/title-radio-wrapper/index.d.ts +3 -13
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +2 -13
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/molecule/translation-modal/index.d.ts +1 -0
- package/lib/molecule/translation-modal/index.d.ts.map +1 -1
- package/lib/molecule/translation-modal/index.js +6 -23
- package/lib/molecule/translation-modal/index.js.map +1 -1
- package/lib/organism/cards-grid/index.d.ts +10 -48
- package/lib/organism/cards-grid/index.d.ts.map +1 -1
- package/lib/organism/cards-grid/index.js +2 -3
- package/lib/organism/cards-grid/index.js.map +1 -1
- package/lib/organism/content-skill-modal/index.d.ts +3 -13
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +2 -12
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.d.ts +22 -8
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +85 -7
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/header-with-actions/types.d.ts +44 -13
- package/lib/organism/header-with-actions/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/types.js +22 -6
- package/lib/organism/header-with-actions/types.js.map +1 -1
- package/lib/organism/list-item/index.js +5 -5
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +17 -23
- package/lib/organism/list-items/index.d.ts +2 -13
- package/lib/organism/list-items/style.css +0 -1
- package/lib/organism/rewards-form/index.d.ts +2 -13
- package/lib/organism/select-opponents/index.d.ts +3 -13
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +2 -13
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/sidebar/index.d.ts +2 -2
- package/lib/organism/skill-edition/index.d.ts +52 -1261
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/index.js +224 -3
- package/lib/organism/skill-edition/index.js.map +1 -1
- package/lib/organism/skill-edition/types.d.ts +117 -1268
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.js +59 -7
- package/lib/organism/skill-edition/types.js.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +5 -25
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +4 -24
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +2 -13
- package/lib/template/app-player/loading/index.d.ts +6 -27
- package/lib/template/app-player/player/index.d.ts +12 -53
- package/lib/template/app-player/player/slides/index.d.ts +6 -27
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +6 -26
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +6 -27
- package/lib/template/app-review/index.d.ts +7 -27
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +6 -27
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +6 -27
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +799 -1385
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +16 -2
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +4 -1
- package/lib/template/back-office/brand-update/utils.d.ts +39 -11
- package/lib/template/back-office/brand-update/utils.js +19 -0
- package/lib/template/back-office/brand-update/utils.js.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +12 -53
- package/lib/template/common/search-page/index.d.ts +6 -27
- package/lib/template/external-course/index.d.ts +6 -27
- package/lib/template/skill-detail/all-courses.css +2 -3
- package/lib/template/skill-detail/all-courses.d.ts +17 -52
- package/lib/template/skill-detail/all-courses.d.ts.map +1 -1
- package/lib/template/skill-detail/all-courses.js +11 -11
- package/lib/template/skill-detail/all-courses.js.map +1 -1
- package/lib/template/skill-detail/continue-learning.css +2 -7
- package/lib/template/skill-detail/continue-learning.d.ts +12 -25
- package/lib/template/skill-detail/continue-learning.d.ts.map +1 -1
- package/lib/template/skill-detail/continue-learning.js.map +1 -1
- package/lib/template/skill-detail/index.d.ts +71 -89
- package/lib/template/skill-detail/index.d.ts.map +1 -1
- package/lib/template/skill-detail/index.js +55 -95
- package/lib/template/skill-detail/index.js.map +1 -1
- package/lib/template/skill-detail/style.css +39 -97
- package/lib/variables/colors.css +0 -2
- package/lib/variables/colors.d.ts +2 -3
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +3 -4
- package/lib/variables/colors.js.map +1 -1
- package/lib/variables/theme.native.js +1 -1
- package/lib/variables/theme.native.js.map +1 -1
- package/locales/.mtslconfig.json +1 -0
- package/locales/bs/global.json +1 -0
- package/locales/de/global.json +1 -0
- package/locales/es/global.json +1 -0
- package/locales/et/global.json +1 -0
- package/locales/fi/global.json +1 -0
- package/locales/fr/global.json +1 -0
- package/locales/hu/global.json +1 -0
- package/locales/hy/global.json +1 -0
- package/locales/ja/global.json +1 -0
- package/locales/nl/global.json +1 -0
- package/locales/pl/global.json +1 -0
- package/locales/pt/global.json +1 -0
- package/locales/ro/global.json +1 -0
- package/locales/sk/global.json +1 -0
- package/locales/sl/global.json +1 -0
- package/locales/sv/global.json +1 -0
- package/locales/tl/global.json +1 -0
- package/locales/tr/global.json +1 -0
- package/locales/uk/global.json +1 -0
- package/locales/vi/global.json +1 -0
- package/locales/zh/global.json +1 -0
- package/locales/zh_TW/global.json +1 -0
- package/package.json +2 -2
|
@@ -13,6 +13,78 @@ const getDataName = suffix => `header-with-actions-${suffix}`;
|
|
|
13
13
|
const uncappedMap = map.convert({
|
|
14
14
|
cap: false
|
|
15
15
|
});
|
|
16
|
+
const buildCloseButton = ({
|
|
17
|
+
onClick,
|
|
18
|
+
ariaLabel
|
|
19
|
+
}) => {
|
|
20
|
+
return {
|
|
21
|
+
size: 'default',
|
|
22
|
+
icon: 'close',
|
|
23
|
+
'data-name': 'close-button',
|
|
24
|
+
'aria-label': ariaLabel,
|
|
25
|
+
onClick
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
const buildButtonMenu = ({
|
|
29
|
+
dataName,
|
|
30
|
+
label,
|
|
31
|
+
iconName,
|
|
32
|
+
iconColor,
|
|
33
|
+
onClick
|
|
34
|
+
}) => {
|
|
35
|
+
return {
|
|
36
|
+
'data-name': dataName,
|
|
37
|
+
label,
|
|
38
|
+
buttonLinkType: 'tertiary',
|
|
39
|
+
icon: {
|
|
40
|
+
position: 'left',
|
|
41
|
+
faIcon: {
|
|
42
|
+
name: iconName,
|
|
43
|
+
color: iconColor,
|
|
44
|
+
size: 14,
|
|
45
|
+
customStyle: {
|
|
46
|
+
padding: 0
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
onClick,
|
|
51
|
+
type: 'defaultLeft'
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
const buildActionButton = ({
|
|
55
|
+
type,
|
|
56
|
+
label,
|
|
57
|
+
onClick,
|
|
58
|
+
disabled,
|
|
59
|
+
iconName,
|
|
60
|
+
iconColor
|
|
61
|
+
}) => {
|
|
62
|
+
return {
|
|
63
|
+
type,
|
|
64
|
+
label,
|
|
65
|
+
onClick,
|
|
66
|
+
disabled,
|
|
67
|
+
icon: {
|
|
68
|
+
position: 'left',
|
|
69
|
+
faIcon: {
|
|
70
|
+
name: iconName,
|
|
71
|
+
color: iconColor,
|
|
72
|
+
size: 14,
|
|
73
|
+
customStyle: {
|
|
74
|
+
padding: 0
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
customStyle: {
|
|
79
|
+
fontWeight: '600',
|
|
80
|
+
borderRadius: '12px',
|
|
81
|
+
padding: '0 8px 0 16px'
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
const isButtonActionProps = action => {
|
|
86
|
+
return typeof action.iconName === 'string' && typeof action.iconColor === 'string';
|
|
87
|
+
};
|
|
16
88
|
const HeaderWithActions = props => {
|
|
17
89
|
const {
|
|
18
90
|
closeButton,
|
|
@@ -22,13 +94,23 @@ const HeaderWithActions = props => {
|
|
|
22
94
|
bulletPointMenuButton,
|
|
23
95
|
actionButtons
|
|
24
96
|
} = props;
|
|
97
|
+
const renderedActionButtons = uncappedMap((action, key) => {
|
|
98
|
+
return isButtonActionProps(action) ? /*#__PURE__*/React.createElement(ButtonLink, _extends({}, buildActionButton(action), {
|
|
99
|
+
key: key
|
|
100
|
+
})) : /*#__PURE__*/React.createElement(ButtonLink, _extends({}, action, {
|
|
101
|
+
key: key
|
|
102
|
+
}));
|
|
103
|
+
}, actionButtons);
|
|
25
104
|
return /*#__PURE__*/React.createElement("div", {
|
|
26
105
|
className: style.headerWrapper,
|
|
27
106
|
"data-name": getDataName('wrapper')
|
|
28
107
|
}, /*#__PURE__*/React.createElement("div", {
|
|
29
108
|
className: style.titleAndButtonWrapper,
|
|
30
109
|
"data-name": getDataName('title-and-button-wrapper')
|
|
31
|
-
}, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({},
|
|
110
|
+
}, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({}, buildCloseButton({
|
|
111
|
+
onClick: closeButton.onClick,
|
|
112
|
+
ariaLabel: closeButton['aria-label']
|
|
113
|
+
}), {
|
|
32
114
|
className: style.button
|
|
33
115
|
})), /*#__PURE__*/React.createElement("div", {
|
|
34
116
|
className: style.titleWrapper
|
|
@@ -44,12 +126,8 @@ const HeaderWithActions = props => {
|
|
|
44
126
|
className: style.buttonsWrapper,
|
|
45
127
|
"data-name": getDataName('buttons-wrapper')
|
|
46
128
|
}, bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? /*#__PURE__*/React.createElement(BulletPointMenuButton, _extends({}, bulletPointMenuButton, {
|
|
47
|
-
|
|
48
|
-
})) : null,
|
|
49
|
-
return /*#__PURE__*/React.createElement(ButtonLink, _extends({}, action, {
|
|
50
|
-
key: key
|
|
51
|
-
}));
|
|
52
|
-
}, actionButtons)));
|
|
129
|
+
buttons: uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)
|
|
130
|
+
})) : null, renderedActionButtons));
|
|
53
131
|
};
|
|
54
132
|
HeaderWithActions.propTypes = process.env.NODE_ENV !== "production" ? headerWithActionsPropTypes : {};
|
|
55
133
|
export default HeaderWithActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","createElement","className","headerWrapper","titleAndButtonWrapper","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","buildCloseButton","onClick","ariaLabel","size","icon","buildButtonMenu","dataName","label","iconName","iconColor","buttonLinkType","position","faIcon","name","color","customStyle","padding","type","buildActionButton","disabled","fontWeight","borderRadius","isButtonActionProps","action","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","renderedActionButtons","key","createElement","_extends","className","headerWrapper","titleAndButtonWrapper","button","titleWrapper","statusWrapper","display","buttonsWrapper","buttons","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport headerWithActionsPropTypes, {\n HeaderWithActionsProps,\n ButtonMenuProps,\n ButtonActionProps\n} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n// @ts-expect-error (need to get the index)\nconst uncappedMap = map.convert({cap: false});\n\nconst buildCloseButton = ({onClick, ariaLabel}: {onClick: () => void; ariaLabel: string}) => {\n return {\n size: 'default',\n icon: 'close',\n 'data-name': 'close-button',\n 'aria-label': ariaLabel,\n onClick\n };\n};\n\nconst buildButtonMenu = ({dataName, label, iconName, iconColor, onClick}: ButtonMenuProps) => {\n return {\n 'data-name': dataName,\n label,\n buttonLinkType: 'tertiary',\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n onClick,\n type: 'defaultLeft'\n };\n};\n\nconst buildActionButton = ({\n type,\n label,\n onClick,\n disabled,\n iconName,\n iconColor\n}: ButtonActionProps) => {\n return {\n type,\n label,\n onClick,\n disabled,\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px',\n padding: '0 8px 0 16px'\n }\n };\n};\n\nconst isButtonActionProps = (action: any): action is ButtonActionProps => {\n return typeof action.iconName === 'string' && typeof action.iconColor === 'string';\n};\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\n\n const renderedActionButtons = uncappedMap(\n (action: ButtonLinkProps | ButtonActionProps, key: string) => {\n return isButtonActionProps(action) ? (\n <ButtonLink {...buildActionButton(action)} key={key} />\n ) : (\n <ButtonLink {...action} key={key} />\n );\n },\n actionButtons\n );\n\n return (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={style.titleAndButtonWrapper}\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon\n {...buildCloseButton({\n onClick: closeButton.onClick,\n ariaLabel: closeButton['aria-label']\n })}\n className={style.button}\n />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n <h3 className={style.title} aria-label={title} data-name={getDataName('title')}>\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton\n {...bulletPointMenuButton}\n buttons={uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)}\n />\n ) : null}\n {renderedActionButtons}\n </div>\n </div>\n );\n};\n\nHeaderWithActions.propTypes = headerWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,cAAc,MAAM,6BAA6B;AACxD,OAAOC,GAAG,MAAM,gBAAgB;AAEhC,OAAOC,qBAAqB,MAAM,yCAAyC;AAC3E,OAAOC,0BAA0B,MAI1B,SAAS;AAChB,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAIC,MAAc,IAAK,uBAAuBA,MAAM,EAAE;AACvE;AACA,MAAMC,WAAW,GAAGT,GAAG,CAACU,OAAO,CAAC;EAACC,GAAG,EAAE;AAAK,CAAC,CAAC;AAE7C,MAAMC,gBAAgB,GAAGA,CAAC;EAACC,OAAO;EAAEC;AAAmD,CAAC,KAAK;EAC3F,OAAO;IACLC,IAAI,EAAE,SAAS;IACfC,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAEF,SAAS;IACvBD;EACF,CAAC;AACH,CAAC;AAED,MAAMI,eAAe,GAAGA,CAAC;EAACC,QAAQ;EAAEC,KAAK;EAAEC,QAAQ;EAAEC,SAAS;EAAER;AAAwB,CAAC,KAAK;EAC5F,OAAO;IACL,WAAW,EAAEK,QAAQ;IACrBC,KAAK;IACLG,cAAc,EAAE,UAAU;IAC1BN,IAAI,EAAE;MACJO,QAAQ,EAAE,MAAe;MACzBC,MAAM,EAAE;QACNC,IAAI,EAAEL,QAAQ;QACdM,KAAK,EAAEL,SAAS;QAChBN,IAAI,EAAE,EAAE;QACRY,WAAW,EAAE;UAACC,OAAO,EAAE;QAAC;MAC1B;IAC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CAAC1C,qBAAqB,EAAA2C,QAAA,KAChBL,qBAAqB;IACzBc,OAAO,EAAE/C,WAAW,CAACQ,eAAe,EAAEyB,qBAAqB,CAACc,OAAO;EAAE,EACtE,CAAC,GACA,IAAI,EACPZ,qBACE,CACF,CAAC;AAEV,CAAC;AAEDR,iBAAiB,CAACqB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGvD,0BAA0B;AAExD,eAAe+B,iBAAiB","ignoreList":[]}
|
|
@@ -3,10 +3,7 @@ import { BulletPointMenuButtonProps } from '../../molecule/bullet-point-menu-but
|
|
|
3
3
|
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
4
4
|
declare const headerWithActionsPropTypes: {
|
|
5
5
|
closeButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
-
|
|
7
|
-
icon: PropTypes.Validator<string>;
|
|
8
|
-
'data-name': PropTypes.Validator<string>;
|
|
9
|
-
'aria-label': PropTypes.Validator<string>;
|
|
6
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
10
7
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
8
|
}>>;
|
|
12
9
|
title: PropTypes.Validator<string>;
|
|
@@ -19,7 +16,7 @@ declare const headerWithActionsPropTypes: {
|
|
|
19
16
|
display: PropTypes.Validator<boolean>;
|
|
20
17
|
label: PropTypes.Requireable<string>;
|
|
21
18
|
}>>>;
|
|
22
|
-
|
|
19
|
+
bulletPointMenuButtonPropTypes: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
23
20
|
'data-name': PropTypes.Requireable<string>;
|
|
24
21
|
disabled: PropTypes.Requireable<boolean>;
|
|
25
22
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
@@ -52,8 +49,18 @@ declare const headerWithActionsPropTypes: {
|
|
|
52
49
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
50
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
54
51
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
55
|
-
}
|
|
56
|
-
|
|
52
|
+
}> | PropTypes.InferProps<{
|
|
53
|
+
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
54
|
+
dataName: PropTypes.Requireable<string>;
|
|
55
|
+
label: PropTypes.Validator<string>;
|
|
56
|
+
iconName: PropTypes.Validator<string>;
|
|
57
|
+
iconColor: PropTypes.Validator<string>;
|
|
58
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
59
|
+
}> | null | undefined)[]>;
|
|
60
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
61
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
62
|
+
}> | null | undefined>>;
|
|
63
|
+
actionButtons: PropTypes.Validator<NonNullable<NonNullable<(PropTypes.InferProps<{
|
|
57
64
|
type: PropTypes.Requireable<string>;
|
|
58
65
|
usage: PropTypes.Requireable<string>;
|
|
59
66
|
label: PropTypes.Requireable<string>;
|
|
@@ -89,7 +96,14 @@ declare const headerWithActionsPropTypes: {
|
|
|
89
96
|
customStyle: PropTypes.Requireable<{
|
|
90
97
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
91
98
|
}>;
|
|
92
|
-
}> | null | undefined)[]
|
|
99
|
+
}> | null | undefined)[] | (PropTypes.InferProps<{
|
|
100
|
+
type: PropTypes.Validator<string>;
|
|
101
|
+
label: PropTypes.Validator<string>;
|
|
102
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
103
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
104
|
+
iconName: PropTypes.Validator<string>;
|
|
105
|
+
iconColor: PropTypes.Validator<string>;
|
|
106
|
+
}> | null | undefined)[] | null | undefined>>>;
|
|
93
107
|
};
|
|
94
108
|
export default headerWithActionsPropTypes;
|
|
95
109
|
declare type TagProps = {
|
|
@@ -102,19 +116,36 @@ declare type SaveStatusProps = {
|
|
|
102
116
|
label?: 'Unsaved changes' | 'Saved';
|
|
103
117
|
};
|
|
104
118
|
declare type CloseButtonProps = {
|
|
105
|
-
size: 'default' | 'small' | 'responsive';
|
|
106
|
-
icon: string;
|
|
107
|
-
'data-name': string;
|
|
108
119
|
'aria-label': string;
|
|
109
120
|
onClick: () => void;
|
|
110
121
|
};
|
|
122
|
+
export declare type ButtonMenuProps = {
|
|
123
|
+
dataName: string;
|
|
124
|
+
label: string;
|
|
125
|
+
iconName: string;
|
|
126
|
+
iconColor: string;
|
|
127
|
+
onClick: () => void;
|
|
128
|
+
};
|
|
129
|
+
declare type BulletPointMenuButtonCustomProps = {
|
|
130
|
+
buttons: ButtonMenuProps[];
|
|
131
|
+
onClick: () => void;
|
|
132
|
+
buttonAriaLabel: string;
|
|
133
|
+
};
|
|
134
|
+
export declare type ButtonActionProps = {
|
|
135
|
+
type: 'primary' | 'secondary';
|
|
136
|
+
label: string;
|
|
137
|
+
onClick: () => void;
|
|
138
|
+
disabled?: boolean;
|
|
139
|
+
iconName: string;
|
|
140
|
+
iconColor: string;
|
|
141
|
+
};
|
|
111
142
|
export declare type HeaderWithActionsProps = {
|
|
112
143
|
closeButton: CloseButtonProps;
|
|
113
144
|
title: string;
|
|
114
145
|
tag: TagProps;
|
|
115
146
|
saveStatus: SaveStatusProps;
|
|
116
|
-
actionButtons: ButtonLinkProps[];
|
|
117
|
-
bulletPointMenuButton?: BulletPointMenuButtonProps;
|
|
147
|
+
actionButtons: ButtonLinkProps[] | ButtonActionProps[];
|
|
148
|
+
bulletPointMenuButton?: BulletPointMenuButtonProps | BulletPointMenuButtonCustomProps;
|
|
118
149
|
};
|
|
119
150
|
export declare type HeaderWithActionsPropsFixture = {
|
|
120
151
|
props: HeaderWithActionsProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAuC,EACrC,0BAA0B,EAC3B,MAAM,+CA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AC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,UAAU,EAAE,eAAe,CAAC;IAC5B,aAAa,EAAE,eAAe,EAAE,GAAG,iBAAiB,EAAE,CAAC;IACvD,qBAAqB,CAAC,EAAE,0BAA0B,GAAG,gCAAgC,CAAC;CACvF,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC"}
|
|
@@ -2,12 +2,24 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import bulletPointMenuButtonPropTypes from '../../molecule/bullet-point-menu-button/types';
|
|
3
3
|
import ButtonLinkPropTypes from '../../atom/button-link/types';
|
|
4
4
|
const closeButtonPropTypes = {
|
|
5
|
-
|
|
6
|
-
icon: PropTypes.string.isRequired,
|
|
7
|
-
'data-name': PropTypes.string.isRequired,
|
|
8
|
-
'aria-label': PropTypes.string.isRequired,
|
|
5
|
+
'aria-label': PropTypes.string,
|
|
9
6
|
onClick: PropTypes.func.isRequired
|
|
10
7
|
};
|
|
8
|
+
const ButtonMenuPropTypes = {
|
|
9
|
+
dataName: PropTypes.string,
|
|
10
|
+
label: PropTypes.string.isRequired,
|
|
11
|
+
iconName: PropTypes.string.isRequired,
|
|
12
|
+
iconColor: PropTypes.string.isRequired,
|
|
13
|
+
onClick: PropTypes.func.isRequired
|
|
14
|
+
};
|
|
15
|
+
const ButtonActionPropTypes = {
|
|
16
|
+
type: PropTypes.string.isRequired,
|
|
17
|
+
label: PropTypes.string.isRequired,
|
|
18
|
+
onClick: PropTypes.func.isRequired,
|
|
19
|
+
disabled: PropTypes.bool,
|
|
20
|
+
iconName: PropTypes.string.isRequired,
|
|
21
|
+
iconColor: PropTypes.string.isRequired
|
|
22
|
+
};
|
|
11
23
|
const headerWithActionsPropTypes = {
|
|
12
24
|
closeButton: PropTypes.shape(closeButtonPropTypes),
|
|
13
25
|
title: PropTypes.string.isRequired,
|
|
@@ -20,8 +32,12 @@ const headerWithActionsPropTypes = {
|
|
|
20
32
|
display: PropTypes.bool.isRequired,
|
|
21
33
|
label: PropTypes.oneOf(['Unsaved changes', 'Saved'])
|
|
22
34
|
}).isRequired,
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
bulletPointMenuButtonPropTypes: PropTypes.oneOfType([PropTypes.shape(bulletPointMenuButtonPropTypes), PropTypes.shape({
|
|
36
|
+
buttons: PropTypes.arrayOf(PropTypes.shape(ButtonMenuPropTypes)).isRequired,
|
|
37
|
+
onClick: PropTypes.func.isRequired,
|
|
38
|
+
buttonAriaLabel: PropTypes.string
|
|
39
|
+
})]),
|
|
40
|
+
actionButtons: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)), PropTypes.arrayOf(PropTypes.shape(ButtonActionPropTypes))]).isRequired
|
|
25
41
|
};
|
|
26
42
|
export default headerWithActionsPropTypes;
|
|
27
43
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","bulletPointMenuButtonPropTypes","ButtonLinkPropTypes","closeButtonPropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","bulletPointMenuButtonPropTypes","ButtonLinkPropTypes","closeButtonPropTypes","string","onClick","func","isRequired","ButtonMenuPropTypes","dataName","label","iconName","iconColor","ButtonActionPropTypes","type","disabled","bool","headerWithActionsPropTypes","closeButton","shape","title","tag","oneOf","size","saveStatus","display","oneOfType","buttons","arrayOf","buttonAriaLabel","actionButtons"],"sources":["../../../src/organism/header-with-actions/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport bulletPointMenuButtonPropTypes, {\n BulletPointMenuButtonProps\n} from '../../molecule/bullet-point-menu-button/types';\nimport ButtonLinkPropTypes, {ButtonLinkProps} from '../../atom/button-link/types';\n\nconst closeButtonPropTypes = {\n 'aria-label': PropTypes.string,\n onClick: PropTypes.func.isRequired\n};\n\nconst ButtonMenuPropTypes = {\n dataName: PropTypes.string,\n label: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n};\n\nconst ButtonActionPropTypes = {\n type: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n disabled: PropTypes.bool,\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string.isRequired\n};\n\nconst headerWithActionsPropTypes = {\n closeButton: PropTypes.shape(closeButtonPropTypes),\n title: PropTypes.string.isRequired,\n tag: PropTypes.shape({\n label: PropTypes.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,\n type: PropTypes.oneOf(['success', 'progress', 'warning']).isRequired,\n size: PropTypes.string.isRequired\n }).isRequired,\n saveStatus: PropTypes.shape({\n display: PropTypes.bool.isRequired,\n label: PropTypes.oneOf(['Unsaved changes', 'Saved'])\n }).isRequired,\n bulletPointMenuButtonPropTypes: PropTypes.oneOfType([\n PropTypes.shape(bulletPointMenuButtonPropTypes),\n PropTypes.shape({\n buttons: PropTypes.arrayOf(PropTypes.shape(ButtonMenuPropTypes)).isRequired,\n onClick: PropTypes.func.isRequired,\n buttonAriaLabel: PropTypes.string\n })\n ]),\n actionButtons: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)),\n PropTypes.arrayOf(PropTypes.shape(ButtonActionPropTypes))\n ]).isRequired\n};\n\nexport default headerWithActionsPropTypes;\n\ntype TagProps = {\n label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';\n type: 'success' | 'progress' | 'warning';\n size: string;\n};\n\ntype SaveStatusProps = {\n display: boolean;\n label?: 'Unsaved changes' | 'Saved';\n};\n\ntype CloseButtonProps = {\n 'aria-label': string;\n onClick: () => void;\n};\n\nexport type ButtonMenuProps = {\n dataName: string;\n label: string;\n iconName: string;\n iconColor: string;\n onClick: () => void;\n};\n\ntype BulletPointMenuButtonCustomProps = {\n buttons: ButtonMenuProps[];\n onClick: () => void;\n buttonAriaLabel: string;\n};\n\nexport type ButtonActionProps = {\n type: 'primary' | 'secondary';\n label: string;\n onClick: () => void;\n disabled?: boolean;\n iconName: string;\n iconColor: string;\n};\n\nexport type HeaderWithActionsProps = {\n closeButton: CloseButtonProps;\n title: string;\n tag: TagProps;\n saveStatus: SaveStatusProps;\n actionButtons: ButtonLinkProps[] | ButtonActionProps[];\n bulletPointMenuButton?: BulletPointMenuButtonProps | BulletPointMenuButtonCustomProps;\n};\n\nexport type HeaderWithActionsPropsFixture = {props: HeaderWithActionsProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,8BAA8B,MAE9B,+CAA+C;AACtD,OAAOC,mBAAmB,MAAyB,8BAA8B;AAEjF,MAAMC,oBAAoB,GAAG;EAC3B,YAAY,EAAEH,SAAS,CAACI,MAAM;EAC9BC,OAAO,EAAEL,SAAS,CAACM,IAAI,CAACC;AAC1B,CAAC;AAED,MAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAET,SAAS,CAACI,MAAM;EAC1BM,KAAK,EAAEV,SAAS,CAACI,MAAM,CAACG,UAAU;EAClCI,QAAQ,EAAEX,SAAS,CAACI,MAAM,CAACG,UAAU;EACrCK,SAAS,EAAEZ,SAAS,CAACI,MAAM,CAACG,UAAU;EACtCF,OAAO,EAAEL,SAAS,CAACM,IAAI,CAACC;AAC1B,CAAC;AAED,MAAMM,qBAAqB,GAAG;EAC5BC,IAAI,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EF,OAAO,EAAEL,SAAS,CAACM,IAAI,CAACC,UAAU;IAClCsB,eAAe,EAAE7B,SAAS,CAACI;EAC7B,CAAC,CAAC,CACH,CAAC;EACF0B,aAAa,EAAE9B,SAAS,CAAC0B,SAAS,CAAC,CACjC1B,SAAS,CAAC4B,OAAO,CAAC5B,SAAS,CAACmB,KAAK,CAACjB,mBAAmB,CAAC,CAAC,EACvDF,SAAS,CAAC4B,OAAO,CAAC5B,SAAS,CAACmB,KAAK,CAACN,qBAAqB,CAAC,CAAC,CAC1D,CAAC,CAACN;AACL,CAAC;AAED,eAAeU,0BAA0B","ignoreList":[]}
|
|
@@ -79,25 +79,25 @@ const ListItem = ({
|
|
|
79
79
|
}, order + 1) : null;
|
|
80
80
|
const extractedIndex = _pipe(_split('-'), _last)(dataName);
|
|
81
81
|
return /*#__PURE__*/React.createElement("div", {
|
|
82
|
-
className: classnames(style.wrapper, isBulkStyle
|
|
82
|
+
className: classnames(style.wrapper, isBulkStyle && style.gridLayout, subtitle && style.withSubtitle, disabled && style.disabled, onClick !== _noop && !disabled && style.cursorPointer, checkbox?.checked && style.checked),
|
|
83
83
|
onClick: !disabled ? onClick : undefined,
|
|
84
84
|
style: selectedStyle,
|
|
85
85
|
"data-name": dataName
|
|
86
86
|
}, /*#__PURE__*/React.createElement("div", {
|
|
87
87
|
className: classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)
|
|
88
|
-
}, isPublished && contentType === 'certification' ? orderView : null,
|
|
88
|
+
}, isPublished && contentType === 'certification' ? orderView : null, /*#__PURE__*/React.createElement("div", {
|
|
89
89
|
className: style.leftSection
|
|
90
|
-
}, checkable ? /*#__PURE__*/React.createElement(CheckboxWithTitle, checkbox) : null, leftIcon && !image ? /*#__PURE__*/React.createElement(FaIcon, {
|
|
90
|
+
}, checkable ? /*#__PURE__*/React.createElement(CheckboxWithTitle, checkbox) : null, leftIcon && !image ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(FaIcon, {
|
|
91
91
|
iconName: leftIcon.iconName,
|
|
92
92
|
gradientBackground: leftIcon.gradientBackground || true,
|
|
93
93
|
iconColor: leftIcon.iconColor || primarySelectedColor,
|
|
94
94
|
preset: leftIcon.preset || 'xl',
|
|
95
95
|
borderRadius: leftIcon.borderRadius || '25%'
|
|
96
|
-
}) : null, !leftIcon && image ? /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
})) : null, !leftIcon && image ? /*#__PURE__*/React.createElement("div", {
|
|
97
97
|
className: style.containerImage
|
|
98
98
|
}, /*#__PURE__*/React.createElement(CardImagePreview, {
|
|
99
99
|
image: image
|
|
100
|
-
})) : null)
|
|
100
|
+
})) : null), /*#__PURE__*/React.createElement("div", {
|
|
101
101
|
className: style.titleWrapper
|
|
102
102
|
}, /*#__PURE__*/React.createElement("div", {
|
|
103
103
|
className: style.titleProviderWrapper
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","convert","classnames","Provider","Tag","FaIcon","ButtonLink","BulletPointMenuButton","COLORS","CardImagePreview","CheckboxWithTitle","style","ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","provider","selected","selectedColor","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","_noop","leftIcon","image","checkbox","dataName","context","skin","primarySelectedColor","_get","mapUncapped","_map","cap","checkable","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","createElement","key","className","_extends","customStyle","dataColumnsView","dataColumn","label","orderView","undefined","extractedIndex","_pipe","_split","_last","wrapper","gridLayout","flexLayout","withSubtitle","cursorPointer","checked","dataColumnsWrapper","hiddenOverflowX","leftSection","iconName","gradientBackground","iconColor","preset","borderRadius","containerImage","titleWrapper","titleProviderWrapper","_isEmpty","providerTag","settings","white","size","faSize","wrapperSize","contextTypes","childContextTypes","translate","propTypes","process","env","NODE_ENV","string","isRequired","shape","oneOf","bool","arrayOf","icon","position","func","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, map, noop, get, last, split, pipe} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport FaIcon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport {COLORS} from '../../variables/colors';\nimport CardImagePreview from '../../atom/card-image-preview';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport style from './style.css';\n\nconst ListItem = (\n {\n buttonLink,\n secondButtonLink,\n bulletPointMenuButton,\n tags,\n title,\n provider,\n selected,\n selectedColor,\n subtitle,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n disabled = false,\n contentType,\n isBulkStyle = false,\n isOverflowHidden = false,\n onClick = noop,\n leftIcon,\n image,\n checkbox,\n 'data-name': dataName\n },\n context\n) => {\n const {skin} = context;\n const primarySelectedColor = selectedColor || get('common.primary', skin);\n const mapUncapped = map.convert({cap: false});\n const checkable = checkbox || false;\n let isPublished = false;\n\n const selectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySelectedColor} a(0.07))`)\n }\n : {};\n\n const tagSelectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySelectedColor} a(0.15))`),\n color: primarySelectedColor\n }\n : {};\n\n const tagsView = mapUncapped((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} customStyle={tagSelectedStyle} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = mapUncapped((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n const extractedIndex = pipe(split('-'), last)(dataName);\n\n return (\n <div\n className={classnames(\n style.wrapper,\n isBulkStyle ? style.gridLayout : style.flexLayout,\n subtitle && style.withSubtitle,\n disabled && style.disabled,\n onClick !== noop && !disabled && style.cursorPointer,\n checkbox?.checked && style.checked\n )}\n onClick={!disabled ? onClick : undefined}\n style={selectedStyle}\n data-name={dataName}\n >\n <div\n className={classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)}\n >\n {isPublished && contentType === 'certification' ? orderView : null}\n {leftIcon || image || checkable ? (\n <div className={style.leftSection}>\n {checkable ? <CheckboxWithTitle {...checkbox} /> : null}\n {leftIcon && !image ? (\n <FaIcon\n iconName={leftIcon.iconName}\n gradientBackground={leftIcon.gradientBackground || true}\n iconColor={leftIcon.iconColor || primarySelectedColor}\n preset={leftIcon.preset || 'xl'}\n borderRadius={leftIcon.borderRadius || '25%'}\n />\n ) : null}\n {!leftIcon && image ? (\n <div className={style.containerImage}>\n <CardImagePreview image={image} />\n </div>\n ) : null}\n </div>\n ) : null}\n <div className={style.titleWrapper}>\n <div className={style.titleProviderWrapper}>\n <div className={style.title} title={title}>\n {title}\n </div>\n {!isEmpty(provider) ? (\n <Tag label={provider.label} type={provider.type} className={style.providerTag} />\n ) : null}\n </div>\n {subtitle ? <div className={style.subtitle}>{subtitle}</div> : null}\n </div>\n {dataColumnsView}\n </div>\n <div className={style.settings}>\n {tagsView}\n {selected ? (\n <FaIcon\n iconName=\"circle-check\"\n iconColor={primarySelectedColor}\n backgroundColor={COLORS.white}\n size={{faSize: 16, wrapperSize: 16}}\n />\n ) : null}\n {buttonLink ? <ButtonLink {...buttonLink} /> : null}\n {secondButtonLink ? <ButtonLink {...secondButtonLink} /> : null}\n {!isEmpty(bulletPointMenuButton) ? (\n <BulletPointMenuButton\n {...bulletPointMenuButton}\n data-name={`bullet-point-menu-button-${extractedIndex}`}\n />\n ) : null}\n </div>\n </div>\n );\n};\n\nListItem.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nListItem.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n 'data-name': PropTypes.string,\n provider: PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['info', 'default', 'success', 'failure', 'warning', 'progress'])\n }),\n selected: PropTypes.bool,\n selectedColor: PropTypes.string,\n dataColumns: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),\n className: PropTypes.oneOf(['cell', 'title'])\n })\n ),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n secondButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default'])\n })\n ),\n disabled: PropTypes.bool,\n onClick: PropTypes.func,\n isBulkStyle: PropTypes.bool,\n isOverflowHidden: PropTypes.bool,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string,\n leftIcon: PropTypes.shape({\n iconName: PropTypes.string,\n iconColor: PropTypes.string,\n backgroundColor: PropTypes.string,\n borderRadius: PropTypes.string,\n preset: PropTypes.string,\n gradientBackground: PropTypes.bool,\n size: PropTypes.number,\n wrapperSize: PropTypes.number\n }),\n image: PropTypes.string,\n checkbox: PropTypes.shape(CheckboxWithTitle.propTypes)\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAAQC,OAAO,QAAO,oBAAoB;AAC1C,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,qBAAqB,MAAM,yCAAyC;AAC3E,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,gBAAgB,MAAM,+BAA+B;AAC5D,OAAOC,iBAAiB,MAAM,gCAAgC;AAC9D,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,QAAQ,GAAGA,CACf;EACEC,UAAU;EACVC,gBAAgB;EAChBC,qBAAqB;EACrBC,IAAI;EACJC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,aAAa;EACbC,QAAQ;EACRC,WAAW;EACXC,KAAK;EACL,YAAY,EAAEC,SAAS;EACvBC,QAAQ,GAAG,KAAK;EAChBC,WAAW;EACXC,WAAW,GAAG,KAAK;EACnBC,gBAAgB,GAAG,KAAK;EACxBC,OAAO,GAAAC,KAAO;EACdC,QAAQ;EACRC,KAAK;EACLC,QAAQ;EACR,WAAW,EAAEC;AACf,CAAC,EACDC,OAAO,KACJ;EACH,MAAM;IAACC;EAAI,CAAC,GAAGD,OAAO;EACtB,MAAME,oBAAoB,GAAGjB,aAAa,IAAIkB,IAAA,CAAI,gBAAgB,EAAEF,IAAI,CAAC;EACzE,MAAMG,WAAW,GAAGC,IAAA,CAAIvC,OAAO,CAAC;IAACwC,GAAG,EAAE;EAAK,CA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C9BnB,MAAM,EAAE9E,SAAS,CAACiG,MAAM;IACxBrB,kBAAkB,EAAE5E,SAAS,CAACqG,IAAI;IAClCd,IAAI,EAAEvF,SAAS,CAAC6G,MAAM;IACtBpB,WAAW,EAAEzF,SAAS,CAAC6G;EACzB,CAAC,CAAC;EACF7E,KAAK,EAAEhC,SAAS,CAACiG,MAAM;EACvBhE,QAAQ,EAAEjC,SAAS,CAACmG,KAAK,CAACzF,iBAAiB,CAACmF,SAAS;AACvD,CAAC;AAED,eAAejF,QAAQ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","convert","classnames","Provider","Tag","FaIcon","ButtonLink","BulletPointMenuButton","COLORS","CardImagePreview","CheckboxWithTitle","style","ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","provider","selected","selectedColor","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","_noop","leftIcon","image","checkbox","dataName","context","skin","primarySelectedColor","_get","mapUncapped","_map","cap","checkable","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","createElement","key","className","_extends","customStyle","dataColumnsView","dataColumn","label","orderView","undefined","extractedIndex","_pipe","_split","_last","wrapper","gridLayout","withSubtitle","cursorPointer","checked","dataColumnsWrapper","hiddenOverflowX","leftSection","iconName","gradientBackground","iconColor","preset","borderRadius","containerImage","titleWrapper","titleProviderWrapper","_isEmpty","providerTag","settings","white","size","faSize","wrapperSize","contextTypes","childContextTypes","translate","propTypes","process","env","NODE_ENV","string","isRequired","shape","oneOf","bool","arrayOf","icon","position","func","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, map, noop, get, last, split, pipe} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport FaIcon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport {COLORS} from '../../variables/colors';\nimport CardImagePreview from '../../atom/card-image-preview';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport style from './style.css';\n\nconst ListItem = (\n {\n buttonLink,\n secondButtonLink,\n bulletPointMenuButton,\n tags,\n title,\n provider,\n selected,\n selectedColor,\n subtitle,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n disabled = false,\n contentType,\n isBulkStyle = false,\n isOverflowHidden = false,\n onClick = noop,\n leftIcon,\n image,\n checkbox,\n 'data-name': dataName\n },\n context\n) => {\n const {skin} = context;\n const primarySelectedColor = selectedColor || get('common.primary', skin);\n const mapUncapped = map.convert({cap: false});\n const checkable = checkbox || false;\n let isPublished = false;\n\n const selectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySelectedColor} a(0.07))`)\n }\n : {};\n\n const tagSelectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySelectedColor} a(0.15))`),\n color: primarySelectedColor\n }\n : {};\n\n const tagsView = mapUncapped((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} customStyle={tagSelectedStyle} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = mapUncapped((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n const extractedIndex = pipe(split('-'), last)(dataName);\n\n return (\n <div\n className={classnames(\n style.wrapper,\n isBulkStyle && style.gridLayout,\n subtitle && style.withSubtitle,\n disabled && style.disabled,\n onClick !== noop && !disabled && style.cursorPointer,\n checkbox?.checked && style.checked\n )}\n onClick={!disabled ? onClick : undefined}\n style={selectedStyle}\n data-name={dataName}\n >\n <div\n className={classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)}\n >\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.leftSection}>\n {checkable ? <CheckboxWithTitle {...checkbox} /> : null}\n {leftIcon && !image ? (\n <div>\n <FaIcon\n iconName={leftIcon.iconName}\n gradientBackground={leftIcon.gradientBackground || true}\n iconColor={leftIcon.iconColor || primarySelectedColor}\n preset={leftIcon.preset || 'xl'}\n borderRadius={leftIcon.borderRadius || '25%'}\n />\n </div>\n ) : null}\n {!leftIcon && image ? (\n <div className={style.containerImage}>\n <CardImagePreview image={image} />\n </div>\n ) : null}\n </div>\n <div className={style.titleWrapper}>\n <div className={style.titleProviderWrapper}>\n <div className={style.title} title={title}>\n {title}\n </div>\n {!isEmpty(provider) ? (\n <Tag label={provider.label} type={provider.type} className={style.providerTag} />\n ) : null}\n </div>\n {subtitle ? <div className={style.subtitle}>{subtitle}</div> : null}\n </div>\n {dataColumnsView}\n </div>\n <div className={style.settings}>\n {tagsView}\n {selected ? (\n <FaIcon\n iconName=\"circle-check\"\n iconColor={primarySelectedColor}\n backgroundColor={COLORS.white}\n size={{faSize: 16, wrapperSize: 16}}\n />\n ) : null}\n {buttonLink ? <ButtonLink {...buttonLink} /> : null}\n {secondButtonLink ? <ButtonLink {...secondButtonLink} /> : null}\n {!isEmpty(bulletPointMenuButton) ? (\n <BulletPointMenuButton\n {...bulletPointMenuButton}\n data-name={`bullet-point-menu-button-${extractedIndex}`}\n />\n ) : null}\n </div>\n </div>\n );\n};\n\nListItem.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nListItem.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n 'data-name': PropTypes.string,\n provider: PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['info', 'default', 'success', 'failure', 'warning', 'progress'])\n }),\n selected: PropTypes.bool,\n selectedColor: PropTypes.string,\n dataColumns: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),\n className: PropTypes.oneOf(['cell', 'title'])\n })\n ),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n secondButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default'])\n })\n ),\n disabled: PropTypes.bool,\n onClick: PropTypes.func,\n isBulkStyle: PropTypes.bool,\n isOverflowHidden: PropTypes.bool,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string,\n leftIcon: PropTypes.shape({\n iconName: PropTypes.string,\n iconColor: PropTypes.string,\n backgroundColor: PropTypes.string,\n borderRadius: PropTypes.string,\n preset: PropTypes.string,\n gradientBackground: PropTypes.bool,\n size: PropTypes.number,\n wrapperSize: PropTypes.number\n }),\n image: PropTypes.string,\n checkbox: PropTypes.shape(CheckboxWithTitle.propTypes)\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAAQC,OA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C;AAED,eAAehF,QAAQ","ignoreList":[]}
|
|
@@ -9,38 +9,26 @@
|
|
|
9
9
|
@value cm_grey_700 from colors;
|
|
10
10
|
@value cm_primary_blue from colors;
|
|
11
11
|
|
|
12
|
-
.wrapper:hover {
|
|
13
|
-
background-color: cm_grey_75;
|
|
14
|
-
}
|
|
15
12
|
.wrapper {
|
|
16
13
|
font-family: Gilroy;
|
|
14
|
+
align-items: center;
|
|
17
15
|
background-color: color(xtraLightGrey a(90%));
|
|
18
16
|
box-sizing: border-box;
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
19
|
padding: 0 24px;
|
|
20
20
|
width: 100%;
|
|
21
21
|
border-radius: 12px;
|
|
22
22
|
min-height: 64px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
justify-content: space-between;
|
|
28
|
-
align-items: center;
|
|
25
|
+
.wrapper:hover {
|
|
26
|
+
background-color: cm_grey_75;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
.gridLayout {
|
|
32
30
|
display: grid;
|
|
33
|
-
grid-template-columns:
|
|
34
|
-
align-items: center;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.settings {
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
justify-content: flex-end;
|
|
41
|
-
gap: 16px;
|
|
42
|
-
height: 100%;
|
|
43
|
-
|
|
31
|
+
grid-template-columns: 60% auto;
|
|
44
32
|
}
|
|
45
33
|
|
|
46
34
|
.disabled {
|
|
@@ -79,6 +67,15 @@
|
|
|
79
67
|
cursor: pointer;
|
|
80
68
|
}
|
|
81
69
|
|
|
70
|
+
.settings {
|
|
71
|
+
align-items: center;
|
|
72
|
+
display: flex;
|
|
73
|
+
height: 100%;
|
|
74
|
+
gap: 16px;
|
|
75
|
+
text-overflow: ellipsis;
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
}
|
|
78
|
+
|
|
82
79
|
.tag {
|
|
83
80
|
text-overflow: ellipsis;
|
|
84
81
|
white-space: nowrap;
|
|
@@ -93,9 +90,8 @@
|
|
|
93
90
|
.titleWrapper {
|
|
94
91
|
display: flex;
|
|
95
92
|
flex-direction: column;
|
|
96
|
-
justify-content: center;
|
|
97
93
|
gap: 2px;
|
|
98
|
-
margin: 0 16px
|
|
94
|
+
margin: 0 16px;
|
|
99
95
|
}
|
|
100
96
|
|
|
101
97
|
.titleProviderWrapper {
|
|
@@ -122,10 +118,8 @@
|
|
|
122
118
|
.dataColumnsWrapper {
|
|
123
119
|
display: flex;
|
|
124
120
|
width: 100%;
|
|
125
|
-
gap: 54px;
|
|
126
|
-
min-height: inherit;
|
|
127
|
-
justify-content: flex-start;
|
|
128
121
|
align-items: center;
|
|
122
|
+
align-content: space-between;
|
|
129
123
|
}
|
|
130
124
|
|
|
131
125
|
.hiddenOverflowX {
|
|
@@ -414,7 +414,7 @@ declare namespace ListItems {
|
|
|
414
414
|
'data-name': PropTypes.Requireable<string>;
|
|
415
415
|
titleSize: PropTypes.Requireable<string>;
|
|
416
416
|
subtitleSize: PropTypes.Requireable<string>;
|
|
417
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
417
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
418
418
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
419
419
|
label: PropTypes.Requireable<string>;
|
|
420
420
|
type: PropTypes.Requireable<string>;
|
|
@@ -422,17 +422,7 @@ declare namespace ListItems {
|
|
|
422
422
|
customStyle: PropTypes.Requireable<{
|
|
423
423
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
424
424
|
}>;
|
|
425
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
426
|
-
position: PropTypes.Requireable<string>;
|
|
427
|
-
iconName?: React.Validator<string> | undefined;
|
|
428
|
-
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
429
|
-
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
430
|
-
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
431
|
-
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
432
|
-
preset?: React.Validator<string | null | undefined> | undefined;
|
|
433
|
-
size?: React.Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
|
|
434
|
-
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
435
|
-
}>>;
|
|
425
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
436
426
|
}>>;
|
|
437
427
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
438
428
|
type: PropTypes.Requireable<string>;
|
|
@@ -614,5 +604,4 @@ declare namespace ListItems {
|
|
|
614
604
|
};
|
|
615
605
|
}
|
|
616
606
|
import PropTypes from "prop-types";
|
|
617
|
-
import React from "react";
|
|
618
607
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -29,7 +29,7 @@ declare namespace RewardsForm {
|
|
|
29
29
|
'data-name': PropTypes.Requireable<string>;
|
|
30
30
|
titleSize: PropTypes.Requireable<string>;
|
|
31
31
|
subtitleSize: PropTypes.Requireable<string>;
|
|
32
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
32
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
33
33
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
34
34
|
label: PropTypes.Requireable<string>;
|
|
35
35
|
type: PropTypes.Requireable<string>;
|
|
@@ -37,17 +37,7 @@ declare namespace RewardsForm {
|
|
|
37
37
|
customStyle: PropTypes.Requireable<{
|
|
38
38
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
39
39
|
}>;
|
|
40
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
41
|
-
position: PropTypes.Requireable<string>;
|
|
42
|
-
iconName?: React.Validator<string> | undefined;
|
|
43
|
-
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
44
|
-
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
45
|
-
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
46
|
-
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
47
|
-
preset?: React.Validator<string | null | undefined> | undefined;
|
|
48
|
-
size?: React.Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
|
|
49
|
-
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
50
|
-
}>>;
|
|
40
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
51
41
|
}>>;
|
|
52
42
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
53
43
|
type: PropTypes.Requireable<string>;
|
|
@@ -195,5 +185,4 @@ declare namespace RewardsForm {
|
|
|
195
185
|
}
|
|
196
186
|
}
|
|
197
187
|
import PropTypes from "prop-types";
|
|
198
|
-
import React from "react";
|
|
199
188
|
//# sourceMappingURL=index.d.ts.map
|