@coorpacademy/components 11.35.2-alpha.4 → 11.35.2-forcedeploy2.15
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 +35 -17
- package/es/atom/icon/index.d.ts.map +1 -1
- package/es/atom/icon/index.js +32 -15
- package/es/atom/icon/index.js.map +1 -1
- package/es/atom/radio-with-title/index.d.ts +13 -3
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +13 -2
- 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 +12 -1
- package/es/atom/tag/style.css +1 -0
- package/es/atom/title/index.d.ts +13 -2
- package/es/molecule/banner/style.css +1 -0
- package/es/molecule/base-modal/style.css +0 -1
- 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 +28 -7
- 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 +2 -0
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/learner-skill-card/index.d.ts +25 -40
- package/es/molecule/learner-skill-card/index.d.ts.map +1 -1
- package/es/molecule/learner-skill-card/index.js +95 -96
- package/es/molecule/learner-skill-card/index.js.map +1 -1
- package/es/molecule/learner-skill-card/prop-types.d.ts +37 -0
- package/es/molecule/learner-skill-card/prop-types.d.ts.map +1 -0
- package/es/molecule/learner-skill-card/prop-types.js +20 -0
- package/es/molecule/learner-skill-card/prop-types.js.map +1 -0
- package/es/molecule/learner-skill-card/style.css +62 -41
- package/es/molecule/learning-priority-modal/style.css +3 -2
- 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 +13 -2
- package/es/molecule/title-radio-wrapper/index.d.ts +13 -3
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +13 -2
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/cards-grid/index.d.ts +48 -10
- package/es/organism/cards-grid/index.d.ts.map +1 -1
- package/es/organism/cards-grid/index.js +3 -2
- package/es/organism/cards-grid/index.js.map +1 -1
- package/es/organism/content-skill-modal/index.d.ts +13 -3
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +12 -2
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.d.ts +8 -22
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +7 -85
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/header-with-actions/types.d.ts +13 -44
- package/es/organism/header-with-actions/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/types.js +6 -22
- 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 +23 -17
- package/es/organism/list-items/index.d.ts +13 -2
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +9 -7
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +22 -18
- package/es/organism/rewards-form/index.d.ts +13 -2
- package/es/organism/select-opponents/index.d.ts +13 -3
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +13 -2
- 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 +37 -7
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/types.d.ts +37 -6
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/organism/title-and-input/index.d.ts +25 -5
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +24 -4
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +13 -2
- package/es/template/app-player/loading/index.d.ts +27 -6
- package/es/template/app-player/player/index.d.ts +53 -12
- package/es/template/app-player/player/slides/index.d.ts +27 -6
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +26 -6
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +27 -6
- package/es/template/app-review/index.d.ts +27 -7
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +27 -6
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +27 -6
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +95 -38
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +2 -4
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +1 -4
- package/es/template/back-office/brand-update/utils.d.ts +11 -39
- package/es/template/back-office/brand-update/utils.js +0 -19
- package/es/template/back-office/brand-update/utils.js.map +1 -1
- package/es/template/common/dashboard/index.d.ts +53 -12
- package/es/template/common/search-page/index.d.ts +27 -6
- package/es/template/external-course/index.d.ts +27 -6
- package/es/template/my-learning/index.d.ts +0 -1
- package/es/template/my-learning/index.d.ts.map +1 -1
- package/es/template/my-learning/index.js +26 -22
- package/es/template/my-learning/index.js.map +1 -1
- package/es/template/my-learning/style.css +9 -6
- package/es/template/skill-detail/all-courses.css +3 -2
- package/es/template/skill-detail/all-courses.d.ts +52 -17
- package/es/template/skill-detail/all-courses.d.ts.map +1 -1
- package/es/template/skill-detail/all-courses.js +12 -11
- package/es/template/skill-detail/all-courses.js.map +1 -1
- package/es/template/skill-detail/continue-learning.css +7 -2
- package/es/template/skill-detail/continue-learning.d.ts +25 -12
- 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 +89 -71
- package/es/template/skill-detail/index.d.ts.map +1 -1
- package/es/template/skill-detail/index.js +99 -58
- package/es/template/skill-detail/index.js.map +1 -1
- package/es/template/skill-detail/style.css +97 -39
- package/es/variables/colors.css +10 -1
- package/es/variables/colors.d.ts +13 -3
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +13 -3
- 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 +35 -17
- package/lib/atom/icon/index.d.ts.map +1 -1
- package/lib/atom/icon/index.js +34 -18
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/atom/radio-with-title/index.d.ts +13 -3
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +13 -2
- 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 +12 -1
- package/lib/atom/tag/style.css +1 -0
- package/lib/atom/title/index.d.ts +13 -2
- package/lib/molecule/banner/style.css +1 -0
- package/lib/molecule/base-modal/style.css +0 -1
- 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 +28 -7
- 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 +2 -0
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/learner-skill-card/index.d.ts +25 -40
- package/lib/molecule/learner-skill-card/index.d.ts.map +1 -1
- package/lib/molecule/learner-skill-card/index.js +98 -96
- package/lib/molecule/learner-skill-card/index.js.map +1 -1
- package/lib/molecule/learner-skill-card/prop-types.d.ts +37 -0
- package/lib/molecule/learner-skill-card/prop-types.d.ts.map +1 -0
- package/lib/molecule/learner-skill-card/prop-types.js +25 -0
- package/lib/molecule/learner-skill-card/prop-types.js.map +1 -0
- package/lib/molecule/learner-skill-card/style.css +62 -41
- package/lib/molecule/learning-priority-modal/style.css +3 -2
- 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 +13 -2
- package/lib/molecule/title-radio-wrapper/index.d.ts +13 -3
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +13 -2
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/cards-grid/index.d.ts +48 -10
- package/lib/organism/cards-grid/index.d.ts.map +1 -1
- package/lib/organism/cards-grid/index.js +3 -2
- package/lib/organism/cards-grid/index.js.map +1 -1
- package/lib/organism/content-skill-modal/index.d.ts +13 -3
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +12 -2
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.d.ts +8 -22
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +7 -85
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/header-with-actions/types.d.ts +13 -44
- package/lib/organism/header-with-actions/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/types.js +6 -22
- 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 +23 -17
- package/lib/organism/list-items/index.d.ts +13 -2
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +8 -6
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +22 -18
- package/lib/organism/rewards-form/index.d.ts +13 -2
- package/lib/organism/select-opponents/index.d.ts +13 -3
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +13 -2
- 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 +37 -7
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.d.ts +37 -6
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +25 -5
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +24 -4
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +13 -2
- package/lib/template/app-player/loading/index.d.ts +27 -6
- package/lib/template/app-player/player/index.d.ts +53 -12
- package/lib/template/app-player/player/slides/index.d.ts +27 -6
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +26 -6
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +27 -6
- package/lib/template/app-review/index.d.ts +27 -7
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +27 -6
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +27 -6
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +95 -38
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +2 -4
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +1 -4
- package/lib/template/back-office/brand-update/utils.d.ts +11 -39
- package/lib/template/back-office/brand-update/utils.js +0 -19
- package/lib/template/back-office/brand-update/utils.js.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +53 -12
- package/lib/template/common/search-page/index.d.ts +27 -6
- package/lib/template/external-course/index.d.ts +27 -6
- package/lib/template/my-learning/index.d.ts +0 -1
- package/lib/template/my-learning/index.d.ts.map +1 -1
- package/lib/template/my-learning/index.js +26 -22
- package/lib/template/my-learning/index.js.map +1 -1
- package/lib/template/my-learning/style.css +9 -6
- package/lib/template/skill-detail/all-courses.css +3 -2
- package/lib/template/skill-detail/all-courses.d.ts +52 -17
- 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 +7 -2
- package/lib/template/skill-detail/continue-learning.d.ts +25 -12
- 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 +89 -71
- package/lib/template/skill-detail/index.d.ts.map +1 -1
- package/lib/template/skill-detail/index.js +99 -58
- package/lib/template/skill-detail/index.js.map +1 -1
- package/lib/template/skill-detail/style.css +97 -39
- package/lib/variables/colors.css +10 -1
- package/lib/variables/colors.d.ts +13 -3
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +13 -3
- 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/cs/global.json +1 -0
- package/locales/en/global.json +1 -0
- package/locales/hr/global.json +1 -0
- package/locales/it/global.json +1 -0
- package/locales/ko/global.json +1 -0
- package/locales/ru/global.json +1 -0
- package/package.json +2 -2
- package/locales/.mtslconfig.json +0 -1
|
@@ -4,7 +4,10 @@ declare const HeaderWithActions: {
|
|
|
4
4
|
(props: HeaderWithActionsProps): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
closeButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
7
|
-
|
|
7
|
+
size: import("prop-types").Validator<string>;
|
|
8
|
+
icon: import("prop-types").Validator<string>;
|
|
9
|
+
'data-name': import("prop-types").Validator<string>;
|
|
10
|
+
'aria-label': import("prop-types").Validator<string>;
|
|
8
11
|
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
9
12
|
}>>;
|
|
10
13
|
title: import("prop-types").Validator<string>;
|
|
@@ -17,7 +20,7 @@ declare const HeaderWithActions: {
|
|
|
17
20
|
display: import("prop-types").Validator<boolean>;
|
|
18
21
|
label: import("prop-types").Requireable<string>;
|
|
19
22
|
}>>>;
|
|
20
|
-
|
|
23
|
+
bulletPointMenuButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
21
24
|
'data-name': import("prop-types").Requireable<string>;
|
|
22
25
|
disabled: import("prop-types").Requireable<boolean>;
|
|
23
26
|
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
@@ -50,18 +53,8 @@ declare const HeaderWithActions: {
|
|
|
50
53
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
51
54
|
menuButtonClassName: import("prop-types").Requireable<string>;
|
|
52
55
|
isBulkMenu: import("prop-types").Requireable<boolean>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
dataName: import("prop-types").Requireable<string>;
|
|
56
|
-
label: import("prop-types").Validator<string>;
|
|
57
|
-
iconName: import("prop-types").Validator<string>;
|
|
58
|
-
iconColor: import("prop-types").Validator<string>;
|
|
59
|
-
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
60
|
-
}> | null | undefined)[]>;
|
|
61
|
-
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
62
|
-
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
63
|
-
}> | null | undefined>>;
|
|
64
|
-
actionButtons: import("prop-types").Validator<NonNullable<NonNullable<(import("prop-types").InferProps<{
|
|
56
|
+
}>>;
|
|
57
|
+
actionButtons: import("prop-types").Validator<(import("prop-types").InferProps<{
|
|
65
58
|
type: import("prop-types").Requireable<string>;
|
|
66
59
|
usage: import("prop-types").Requireable<string>;
|
|
67
60
|
label: import("prop-types").Requireable<string>;
|
|
@@ -97,14 +90,7 @@ declare const HeaderWithActions: {
|
|
|
97
90
|
customStyle: import("prop-types").Requireable<{
|
|
98
91
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
99
92
|
}>;
|
|
100
|
-
}> | null | undefined)[]
|
|
101
|
-
type: import("prop-types").Validator<string>;
|
|
102
|
-
label: import("prop-types").Validator<string>;
|
|
103
|
-
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
104
|
-
disabled: import("prop-types").Requireable<boolean>;
|
|
105
|
-
iconName: import("prop-types").Validator<string>;
|
|
106
|
-
iconColor: import("prop-types").Validator<string>;
|
|
107
|
-
}> | null | undefined)[] | null | undefined>>>;
|
|
93
|
+
}> | null | undefined)[]>;
|
|
108
94
|
};
|
|
109
95
|
};
|
|
110
96
|
export default HeaderWithActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAO3E,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
|
|
@@ -18,78 +18,6 @@ const getDataName = suffix => `header-with-actions-${suffix}`;
|
|
|
18
18
|
const uncappedMap = _map.default.convert({
|
|
19
19
|
cap: false
|
|
20
20
|
});
|
|
21
|
-
const buildCloseButton = ({
|
|
22
|
-
onClick,
|
|
23
|
-
ariaLabel
|
|
24
|
-
}) => {
|
|
25
|
-
return {
|
|
26
|
-
size: 'default',
|
|
27
|
-
icon: 'close',
|
|
28
|
-
'data-name': 'close-button',
|
|
29
|
-
'aria-label': ariaLabel,
|
|
30
|
-
onClick
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
const buildButtonMenu = ({
|
|
34
|
-
dataName,
|
|
35
|
-
label,
|
|
36
|
-
iconName,
|
|
37
|
-
iconColor,
|
|
38
|
-
onClick
|
|
39
|
-
}) => {
|
|
40
|
-
return {
|
|
41
|
-
'data-name': dataName,
|
|
42
|
-
label,
|
|
43
|
-
buttonLinkType: 'tertiary',
|
|
44
|
-
icon: {
|
|
45
|
-
position: 'left',
|
|
46
|
-
faIcon: {
|
|
47
|
-
name: iconName,
|
|
48
|
-
color: iconColor,
|
|
49
|
-
size: 14,
|
|
50
|
-
customStyle: {
|
|
51
|
-
padding: 0
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
onClick,
|
|
56
|
-
type: 'defaultLeft'
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
const buildActionButton = ({
|
|
60
|
-
type,
|
|
61
|
-
label,
|
|
62
|
-
onClick,
|
|
63
|
-
disabled,
|
|
64
|
-
iconName,
|
|
65
|
-
iconColor
|
|
66
|
-
}) => {
|
|
67
|
-
return {
|
|
68
|
-
type,
|
|
69
|
-
label,
|
|
70
|
-
onClick,
|
|
71
|
-
disabled,
|
|
72
|
-
icon: {
|
|
73
|
-
position: 'left',
|
|
74
|
-
faIcon: {
|
|
75
|
-
name: iconName,
|
|
76
|
-
color: iconColor,
|
|
77
|
-
size: 14,
|
|
78
|
-
customStyle: {
|
|
79
|
-
padding: 0
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
customStyle: {
|
|
84
|
-
fontWeight: '600',
|
|
85
|
-
borderRadius: '12px',
|
|
86
|
-
padding: '0 8px 0 16px'
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
const isButtonActionProps = action => {
|
|
91
|
-
return typeof action.iconName === 'string' && typeof action.iconColor === 'string';
|
|
92
|
-
};
|
|
93
21
|
const HeaderWithActions = props => {
|
|
94
22
|
const {
|
|
95
23
|
closeButton,
|
|
@@ -99,23 +27,13 @@ const HeaderWithActions = props => {
|
|
|
99
27
|
bulletPointMenuButton,
|
|
100
28
|
actionButtons
|
|
101
29
|
} = props;
|
|
102
|
-
const renderedActionButtons = uncappedMap((action, key) => {
|
|
103
|
-
return isButtonActionProps(action) ? /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, buildActionButton(action), {
|
|
104
|
-
key: key
|
|
105
|
-
})) : /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, action, {
|
|
106
|
-
key: key
|
|
107
|
-
}));
|
|
108
|
-
}, actionButtons);
|
|
109
30
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
110
31
|
className: _style.default.headerWrapper,
|
|
111
32
|
"data-name": getDataName('wrapper')
|
|
112
33
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
113
34
|
className: _style.default.titleAndButtonWrapper,
|
|
114
35
|
"data-name": getDataName('title-and-button-wrapper')
|
|
115
|
-
}, /*#__PURE__*/_react.default.createElement(_buttonLinkIcon.default, _extends({},
|
|
116
|
-
onClick: closeButton.onClick,
|
|
117
|
-
ariaLabel: closeButton['aria-label']
|
|
118
|
-
}), {
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLinkIcon.default, _extends({}, closeButton, {
|
|
119
37
|
className: _style.default.button
|
|
120
38
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
121
39
|
className: _style.default.titleWrapper
|
|
@@ -131,8 +49,12 @@ const HeaderWithActions = props => {
|
|
|
131
49
|
className: _style.default.buttonsWrapper,
|
|
132
50
|
"data-name": getDataName('buttons-wrapper')
|
|
133
51
|
}, bulletPointMenuButton && !(0, _isEmpty.default)(bulletPointMenuButton.buttons) ? /*#__PURE__*/_react.default.createElement(_bulletPointMenuButton.default, _extends({}, bulletPointMenuButton, {
|
|
134
|
-
|
|
135
|
-
})) : null,
|
|
52
|
+
buttonAriaLabel: "More actions"
|
|
53
|
+
})) : null, uncappedMap((action, key) => {
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, action, {
|
|
55
|
+
key: key
|
|
56
|
+
}));
|
|
57
|
+
}, actionButtons)));
|
|
136
58
|
};
|
|
137
59
|
HeaderWithActions.propTypes = process.env.NODE_ENV !== "production" ? _types.default : {};
|
|
138
60
|
var _default = exports.default = HeaderWithActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_isEmpty","_map","_buttonLink","_buttonLinkIcon","_tag","_bulletPointMenuButton","_types","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","getDataName","suffix","uncappedMap","map","convert","cap","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_isEmpty","_map","_buttonLink","_buttonLinkIcon","_tag","_bulletPointMenuButton","_types","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","getDataName","suffix","uncappedMap","map","convert","cap","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","createElement","className","style","headerWrapper","titleAndButtonWrapper","button","titleWrapper","statusWrapper","display","label","buttonsWrapper","isEmpty","buttons","buttonAriaLabel","action","key","propTypes","process","env","NODE_ENV","headerWithActionsPropTypes","_default","exports"],"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, {HeaderWithActionsProps} 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 HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\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 {...closeButton} className={style.button} />\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 {...bulletPointMenuButton} buttonAriaLabel=\"More actions\" />\n ) : null}\n {uncappedMap((action: ButtonLinkProps, key: string) => {\n return <ButtonLink {...action} key={key} />;\n }, actionButtons)}\n </div>\n </div>\n );\n};\n\nHeaderWithActions.propTypes = headerWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,eAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAAM,sBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,MAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAA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,EAAEC,cAAK,CAACP,KAAM;IAAC,cAAYA,KAAM;IAAC,aAAWT,WAAW,CAAC,OAAO;EAAE,GAC5ES,KACC,CACD,CACF,CAAC,eACNnC,MAAA,CAAAa,OAAA,CAAA2B,aAAA;IAAKC,SAAS,EAAEC,cAAK,CAACQ,cAAe;IAAC,aAAWxB,WAAW,CAAC,iBAAiB;EAAE,GAC7EY,qBAAqB,IAAI,CAAC,IAAAa,gBAAO,EAACb,qBAAqB,CAACc,OAAO,CAAC,gBAC/DpD,MAAA,CAAAa,OAAA,CAAA2B,aAAA,CAAChC,sBAAA,CAAAK,OAAqB,EAAAC,QAAA,KAAKwB,qBAAqB;IAAEe,eAAe,EAAC;EAAc,EAAE,CAAC,GACjF,IAAI,EACPzB,WAAW,CAAC,CAAC0B,MAAuB,EAAEC,GAAW,KAAK;IACrD,oBAAOvD,MAAA,CAAAa,OAAA,CAAA2B,aAAA,CAACnC,WAAA,CAAAQ,OAAU,EAAAC,QAAA,KAAKwC,MAAM;MAAEC,GAAG,EAAEA;IAAI,EAAE,CAAC;EAC7C,CAAC,EAAEhB,aAAa,CACb,CACF,CAAC;AAEV,CAAC;AAEDP,iBAAiB,CAACwB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGC,cAA0B;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjD,OAAA,GAE1CmB,iBAAiB","ignoreList":[]}
|
|
@@ -3,7 +3,10 @@ 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
|
-
|
|
6
|
+
size: PropTypes.Validator<string>;
|
|
7
|
+
icon: PropTypes.Validator<string>;
|
|
8
|
+
'data-name': PropTypes.Validator<string>;
|
|
9
|
+
'aria-label': PropTypes.Validator<string>;
|
|
7
10
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
11
|
}>>;
|
|
9
12
|
title: PropTypes.Validator<string>;
|
|
@@ -16,7 +19,7 @@ declare const headerWithActionsPropTypes: {
|
|
|
16
19
|
display: PropTypes.Validator<boolean>;
|
|
17
20
|
label: PropTypes.Requireable<string>;
|
|
18
21
|
}>>>;
|
|
19
|
-
|
|
22
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
20
23
|
'data-name': PropTypes.Requireable<string>;
|
|
21
24
|
disabled: PropTypes.Requireable<boolean>;
|
|
22
25
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
@@ -49,18 +52,8 @@ declare const headerWithActionsPropTypes: {
|
|
|
49
52
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
50
53
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
51
54
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
52
|
-
}
|
|
53
|
-
|
|
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<{
|
|
55
|
+
}>>;
|
|
56
|
+
actionButtons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
64
57
|
type: PropTypes.Requireable<string>;
|
|
65
58
|
usage: PropTypes.Requireable<string>;
|
|
66
59
|
label: PropTypes.Requireable<string>;
|
|
@@ -96,14 +89,7 @@ declare const headerWithActionsPropTypes: {
|
|
|
96
89
|
customStyle: PropTypes.Requireable<{
|
|
97
90
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
98
91
|
}>;
|
|
99
|
-
}> | null | undefined)[]
|
|
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>>>;
|
|
92
|
+
}> | null | undefined)[]>;
|
|
107
93
|
};
|
|
108
94
|
export default headerWithActionsPropTypes;
|
|
109
95
|
declare type TagProps = {
|
|
@@ -116,36 +102,19 @@ declare type SaveStatusProps = {
|
|
|
116
102
|
label?: 'Unsaved changes' | 'Saved';
|
|
117
103
|
};
|
|
118
104
|
declare type CloseButtonProps = {
|
|
105
|
+
size: 'default' | 'small' | 'responsive';
|
|
106
|
+
icon: string;
|
|
107
|
+
'data-name': string;
|
|
119
108
|
'aria-label': string;
|
|
120
109
|
onClick: () => void;
|
|
121
110
|
};
|
|
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
|
-
};
|
|
142
111
|
export declare type HeaderWithActionsProps = {
|
|
143
112
|
closeButton: CloseButtonProps;
|
|
144
113
|
title: string;
|
|
145
114
|
tag: TagProps;
|
|
146
115
|
saveStatus: SaveStatusProps;
|
|
147
|
-
actionButtons: ButtonLinkProps[]
|
|
148
|
-
bulletPointMenuButton?: BulletPointMenuButtonProps
|
|
116
|
+
actionButtons: ButtonLinkProps[];
|
|
117
|
+
bulletPointMenuButton?: BulletPointMenuButtonProps;
|
|
149
118
|
};
|
|
150
119
|
export declare type HeaderWithActionsPropsFixture = {
|
|
151
120
|
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,+CAA+C,CAAC;AACvD,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;
|
|
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,+CAA+C,CAAC;AACvD,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AASlF,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,QAAQ,GAAG;IACd,KAAK,EAAE,WAAW,GAAG,iBAAiB,GAAG,OAAO,GAAG,UAAU,CAAC;IAC9D,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,aAAK,eAAe,GAAG;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,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,CAAC;IACjC,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;CACpD,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC"}
|
|
@@ -7,24 +7,12 @@ var _types = _interopRequireDefault(require("../../molecule/bullet-point-menu-bu
|
|
|
7
7
|
var _types2 = _interopRequireDefault(require("../../atom/button-link/types"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
const closeButtonPropTypes = {
|
|
10
|
-
|
|
10
|
+
size: _propTypes.default.oneOf(['default', 'small', 'responsive']).isRequired,
|
|
11
|
+
icon: _propTypes.default.string.isRequired,
|
|
12
|
+
'data-name': _propTypes.default.string.isRequired,
|
|
13
|
+
'aria-label': _propTypes.default.string.isRequired,
|
|
11
14
|
onClick: _propTypes.default.func.isRequired
|
|
12
15
|
};
|
|
13
|
-
const ButtonMenuPropTypes = {
|
|
14
|
-
dataName: _propTypes.default.string,
|
|
15
|
-
label: _propTypes.default.string.isRequired,
|
|
16
|
-
iconName: _propTypes.default.string.isRequired,
|
|
17
|
-
iconColor: _propTypes.default.string.isRequired,
|
|
18
|
-
onClick: _propTypes.default.func.isRequired
|
|
19
|
-
};
|
|
20
|
-
const ButtonActionPropTypes = {
|
|
21
|
-
type: _propTypes.default.string.isRequired,
|
|
22
|
-
label: _propTypes.default.string.isRequired,
|
|
23
|
-
onClick: _propTypes.default.func.isRequired,
|
|
24
|
-
disabled: _propTypes.default.bool,
|
|
25
|
-
iconName: _propTypes.default.string.isRequired,
|
|
26
|
-
iconColor: _propTypes.default.string.isRequired
|
|
27
|
-
};
|
|
28
16
|
const headerWithActionsPropTypes = {
|
|
29
17
|
closeButton: _propTypes.default.shape(closeButtonPropTypes),
|
|
30
18
|
title: _propTypes.default.string.isRequired,
|
|
@@ -37,12 +25,8 @@ const headerWithActionsPropTypes = {
|
|
|
37
25
|
display: _propTypes.default.bool.isRequired,
|
|
38
26
|
label: _propTypes.default.oneOf(['Unsaved changes', 'Saved'])
|
|
39
27
|
}).isRequired,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
onClick: _propTypes.default.func.isRequired,
|
|
43
|
-
buttonAriaLabel: _propTypes.default.string
|
|
44
|
-
})]),
|
|
45
|
-
actionButtons: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.shape(_types2.default)), _propTypes.default.arrayOf(_propTypes.default.shape(ButtonActionPropTypes))]).isRequired
|
|
28
|
+
bulletPointMenuButton: _propTypes.default.shape(_types.default),
|
|
29
|
+
actionButtons: _propTypes.default.arrayOf(_propTypes.default.shape(_types2.default)).isRequired
|
|
46
30
|
};
|
|
47
31
|
var _default = exports.default = headerWithActionsPropTypes;
|
|
48
32
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_types","_types2","e","__esModule","default","closeButtonPropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_types","_types2","e","__esModule","default","closeButtonPropTypes","size","PropTypes","oneOf","isRequired","icon","string","onClick","func","headerWithActionsPropTypes","closeButton","shape","title","tag","label","type","saveStatus","display","bool","bulletPointMenuButton","bulletPointMenuButtonPropTypes","actionButtons","arrayOf","ButtonLinkPropTypes","_default","exports"],"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 size: PropTypes.oneOf(['default', 'small', 'responsive']).isRequired,\n icon: PropTypes.string.isRequired,\n 'data-name': PropTypes.string.isRequired,\n 'aria-label': PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\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 bulletPointMenuButton: PropTypes.shape(bulletPointMenuButtonPropTypes),\n actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)).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 size: 'default' | 'small' | 'responsive';\n icon: string;\n 'data-name': string;\n 'aria-label': string;\n onClick: () => void;\n};\n\nexport type HeaderWithActionsProps = {\n closeButton: CloseButtonProps;\n title: string;\n tag: TagProps;\n saveStatus: SaveStatusProps;\n actionButtons: ButtonLinkProps[];\n bulletPointMenuButton?: BulletPointMenuButtonProps;\n};\n\nexport type HeaderW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U,KAAK,EAAEZ,kBAAS,CAACC,KAAK,CAAC,CAAC,iBAAiB,EAAE,OAAO,CAAC;EACrD,CAAC,CAAC,CAACC,UAAU;EACbe,qBAAqB,EAAEjB,kBAAS,CAACS,KAAK,CAACS,cAA8B,CAAC;EACtEC,aAAa,EAAEnB,kBAAS,CAACoB,OAAO,CAACpB,kBAAS,CAACS,KAAK,CAACY,eAAmB,CAAC,CAAC,CAACnB;AACzE,CAAC;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAA1B,OAAA,GAEaU,0BAA0B","ignoreList":[]}
|
|
@@ -84,25 +84,25 @@ const ListItem = ({
|
|
|
84
84
|
}, order + 1) : null;
|
|
85
85
|
const extractedIndex = (0, _pipe2.default)((0, _split2.default)('-'), _last2.default)(dataName);
|
|
86
86
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
-
className: (0, _classnames.default)(_style.default.wrapper, isBulkStyle
|
|
87
|
+
className: (0, _classnames.default)(_style.default.wrapper, isBulkStyle ? _style.default.gridLayout : _style.default.flexLayout, subtitle && _style.default.withSubtitle, disabled && _style.default.disabled, onClick !== _noop2.default && !disabled && _style.default.cursorPointer, checkbox?.checked && _style.default.checked),
|
|
88
88
|
onClick: !disabled ? onClick : undefined,
|
|
89
89
|
style: selectedStyle,
|
|
90
90
|
"data-name": dataName
|
|
91
91
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
92
92
|
className: (0, _classnames.default)(_style.default.dataColumnsWrapper, isOverflowHidden && _style.default.hiddenOverflowX)
|
|
93
|
-
}, isPublished && contentType === 'certification' ? orderView : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
93
|
+
}, isPublished && contentType === 'certification' ? orderView : null, leftIcon || image || checkable ? /*#__PURE__*/_react.default.createElement("div", {
|
|
94
94
|
className: _style.default.leftSection
|
|
95
|
-
}, checkable ? /*#__PURE__*/_react.default.createElement(_checkboxWithTitle.default, checkbox) : null, leftIcon && !image ? /*#__PURE__*/_react.default.createElement(
|
|
95
|
+
}, checkable ? /*#__PURE__*/_react.default.createElement(_checkboxWithTitle.default, checkbox) : null, leftIcon && !image ? /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
96
96
|
iconName: leftIcon.iconName,
|
|
97
97
|
gradientBackground: leftIcon.gradientBackground || true,
|
|
98
98
|
iconColor: leftIcon.iconColor || primarySelectedColor,
|
|
99
99
|
preset: leftIcon.preset || 'xl',
|
|
100
100
|
borderRadius: leftIcon.borderRadius || '25%'
|
|
101
|
-
})
|
|
101
|
+
}) : null, !leftIcon && image ? /*#__PURE__*/_react.default.createElement("div", {
|
|
102
102
|
className: _style.default.containerImage
|
|
103
103
|
}, /*#__PURE__*/_react.default.createElement(_cardImagePreview.default, {
|
|
104
104
|
image: image
|
|
105
|
-
})) : null), /*#__PURE__*/_react.default.createElement("div", {
|
|
105
|
+
})) : null) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
106
106
|
className: _style.default.titleWrapper
|
|
107
107
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
108
108
|
className: _style.default.titleProviderWrapper
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_cssColorFunction","_classnames","_provider","_tag","_icon","_buttonLink","_bulletPointMenuButton","_colors","_cardImagePreview","_checkboxWithTitle","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","provider","selected","selectedColor","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","_noop2","leftIcon","image","checkbox","dataName","context","skin","primarySelectedColor","_get2","mapUncapped","_map2","convert","cap","checkable","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","createElement","key","className","style","customStyle","dataColumnsView","dataColumn","label","orderView","undefined","extractedIndex","_pipe2","_split2","_last2","classnames","wrapper","gridLayout","withSubtitle","cursorPointer","checked","dataColumnsWrapper","hiddenOverflowX","leftSection","iconName","gradientBackground","iconColor","preset","borderRadius","containerImage","titleWrapper","titleProviderWrapper","_isEmpty2","providerTag","settings","COLORS","white","size","faSize","wrapperSize","contextTypes","Provider","childContextTypes","translate","propTypes","process","env","NODE_ENV","PropTypes","string","isRequired","shape","oneOf","bool","arrayOf","icon","position","func","buttonAriaLabel","menuAriaLabel","buttons","number","id","CheckboxWithTitle","_default","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,KAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,WAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,sBAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,kBAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,MAAA,GAAAb,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAc,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAA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;EACpBtE,QAAQ,EAAEqE,kBAAS,CAACG,KAAK,CAAC;IACxB3B,QAAQ,EAAEwB,kBAAS,CAACC,MAAM;IAC1BvB,SAAS,EAAEsB,kBAAS,CAACC,MAAM;IAC3BvD,eAAe,EAAEsD,kBAAS,CAACC,MAAM;IACjCrB,YAAY,EAAEoB,kBAAS,CAACC,MAAM;IAC9BtB,MAAM,EAAEqB,kBAAS,CAACC,MAAM;IACxBxB,kBAAkB,EAAEuB,kBAAS,CAACK,IAAI;IAClChB,IAAI,EAAEW,kBAAS,CAACa,MAAM;IACtBtB,WAAW,EAAES,kBAAS,CAACa;EACzB,CAAC,CAAC;EACFjF,KAAK,EAAEoE,kBAAS,CAACC,MAAM;EACvBpE,QAAQ,EAAEmE,kBAAS,CAACG,KAAK,CAACY,0BAAiB,CAACnB,SAAS;AACvD,CAAC;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAAtH,OAAA,GAEaa,QAAQ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_cssColorFunction","_classnames","_provider","_tag","_icon","_buttonLink","_bulletPointMenuButton","_colors","_cardImagePreview","_checkboxWithTitle","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","provider","selected","selectedColor","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","_noop2","leftIcon","image","checkbox","dataName","context","skin","primarySelectedColor","_get2","mapUncapped","_map2","convert","cap","checkable","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","createElement","key","className","style","customStyle","dataColumnsView","dataColumn","label","orderView","undefined","extractedIndex","_pipe2","_split2","_last2","classnames","wrapper","gridLayout","flexLayout","withSubtitle","cursorPointer","checked","dataColumnsWrapper","hiddenOverflowX","leftSection","iconName","gradientBackground","iconColor","preset","borderRadius","containerImage","titleWrapper","titleProviderWrapper","_isEmpty2","providerTag","settings","COLORS","white","size","faSize","wrapperSize","contextTypes","Provider","childContextTypes","translate","propTypes","process","env","NODE_ENV","PropTypes","string","isRequired","shape","oneOf","bool","arrayOf","icon","position","func","buttonAriaLabel","menuAriaLabel","buttons","number","id","CheckboxWithTitle","_default","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,KAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,WAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,sBAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,kBAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,MAAA,GAAAb,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAc,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA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,EAAEsE,kBAAS,CAACG,KAAK,CAAC;IACxB3B,QAAQ,EAAEwB,kBAAS,CAACC,MAAM;IAC1BvB,SAAS,EAAEsB,kBAAS,CAACC,MAAM;IAC3BxD,eAAe,EAAEuD,kBAAS,CAACC,MAAM;IACjCrB,YAAY,EAAEoB,kBAAS,CAACC,MAAM;IAC9BtB,MAAM,EAAEqB,kBAAS,CAACC,MAAM;IACxBxB,kBAAkB,EAAEuB,kBAAS,CAACK,IAAI;IAClChB,IAAI,EAAEW,kBAAS,CAACa,MAAM;IACtBtB,WAAW,EAAES,kBAAS,CAACa;EACzB,CAAC,CAAC;EACFlF,KAAK,EAAEqE,kBAAS,CAACC,MAAM;EACvBrE,QAAQ,EAAEoE,kBAAS,CAACG,KAAK,CAACY,0BAAiB,CAACnB,SAAS;AACvD,CAAC;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAAvH,OAAA,GAEaa,QAAQ","ignoreList":[]}
|
|
@@ -9,26 +9,38 @@
|
|
|
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
|
+
}
|
|
12
15
|
.wrapper {
|
|
13
16
|
font-family: Gilroy;
|
|
14
|
-
align-items: center;
|
|
15
17
|
background-color: color(xtraLightGrey a(90%));
|
|
16
18
|
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
|
-
|
|
25
|
+
.flexLayout {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
align-items: center;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
.gridLayout {
|
|
30
32
|
display: grid;
|
|
31
|
-
grid-template-columns:
|
|
33
|
+
grid-template-columns: 1fr auto;
|
|
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
|
+
|
|
32
44
|
}
|
|
33
45
|
|
|
34
46
|
.disabled {
|
|
@@ -67,15 +79,6 @@
|
|
|
67
79
|
cursor: pointer;
|
|
68
80
|
}
|
|
69
81
|
|
|
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
|
-
|
|
79
82
|
.tag {
|
|
80
83
|
text-overflow: ellipsis;
|
|
81
84
|
white-space: nowrap;
|
|
@@ -90,8 +93,9 @@
|
|
|
90
93
|
.titleWrapper {
|
|
91
94
|
display: flex;
|
|
92
95
|
flex-direction: column;
|
|
96
|
+
justify-content: center;
|
|
93
97
|
gap: 2px;
|
|
94
|
-
margin: 0 16px;
|
|
98
|
+
margin: 0 16px 0 0;
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
.titleProviderWrapper {
|
|
@@ -118,8 +122,10 @@
|
|
|
118
122
|
.dataColumnsWrapper {
|
|
119
123
|
display: flex;
|
|
120
124
|
width: 100%;
|
|
125
|
+
gap: 54px;
|
|
126
|
+
min-height: inherit;
|
|
127
|
+
justify-content: flex-start;
|
|
121
128
|
align-items: center;
|
|
122
|
-
align-content: space-between;
|
|
123
129
|
}
|
|
124
130
|
|
|
125
131
|
.hiddenOverflowX {
|