@coorpacademy/components 11.40.26 → 11.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/chip/index.d.ts +1 -0
- package/es/atom/chip/index.d.ts.map +1 -1
- package/es/atom/chip/index.js +6 -3
- package/es/atom/chip/index.js.map +1 -1
- package/es/atom/drag-and-drop/index.d.ts +2 -0
- package/es/atom/drag-and-drop/index.d.ts.map +1 -1
- package/es/atom/drag-and-drop/index.js +9 -4
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/input-date/index.d.ts +21 -0
- package/es/atom/input-date/index.d.ts.map +1 -0
- package/es/atom/input-date/index.js +73 -0
- package/es/atom/input-date/index.js.map +1 -0
- package/es/atom/input-date/style.css +88 -0
- package/es/atom/input-file-draggable/index.d.ts +10 -2
- package/es/atom/input-file-draggable/index.d.ts.map +1 -1
- package/es/atom/input-file-draggable/index.js +12 -4
- package/es/atom/input-file-draggable/index.js.map +1 -1
- package/es/atom/radio-with-title/index.d.ts +1 -0
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +1 -0
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/title/index.d.ts +1 -0
- package/es/atom/title/index.d.ts.map +1 -1
- package/es/atom/title/index.js +16 -6
- package/es/atom/title/index.js.map +1 -1
- package/es/atom/title/style.css +4 -0
- package/es/atom/video-upload/index.d.ts +2 -0
- package/es/molecule/assignment-card/index.d.ts +62 -0
- package/es/molecule/assignment-card/index.d.ts.map +1 -0
- package/es/molecule/assignment-card/index.js +91 -0
- package/es/molecule/assignment-card/index.js.map +1 -0
- package/es/molecule/assignment-card/style.css +98 -0
- package/es/molecule/assignment-status-tag/index.d.ts +13 -0
- package/es/molecule/assignment-status-tag/index.d.ts.map +1 -0
- package/es/molecule/assignment-status-tag/index.js +42 -0
- package/es/molecule/assignment-status-tag/index.js.map +1 -0
- package/es/molecule/assignment-status-tag/types.d.ts +15 -0
- package/es/molecule/assignment-status-tag/types.d.ts.map +1 -0
- package/es/molecule/assignment-status-tag/types.js +8 -0
- package/es/molecule/assignment-status-tag/types.js.map +1 -0
- package/es/molecule/brand-form-group/index.d.ts.map +1 -1
- package/es/molecule/brand-form-group/index.js +7 -0
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/card/index.d.ts +1 -0
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +3 -0
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card-content/index.d.ts +3 -1
- package/es/molecule/card-content/index.d.ts.map +1 -1
- package/es/molecule/card-content/index.js +7 -1
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +11 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts +3 -0
- package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +11 -5
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
- package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/index.d.ts +6 -0
- package/es/molecule/draggable-list/index.d.ts +63 -54
- package/es/molecule/tabs/index.d.ts +1 -0
- package/es/molecule/tabs/index.d.ts.map +1 -1
- package/es/molecule/tabs/index.js +7 -3
- package/es/molecule/tabs/index.js.map +1 -1
- package/es/molecule/tabs/style.css +4 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +13 -0
- package/es/molecule/title-radio-wrapper/index.d.ts +7 -0
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +7 -0
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/assignment-audience/index.d.ts +92 -0
- package/es/organism/assignment-audience/index.d.ts.map +1 -0
- package/es/organism/assignment-audience/index.js +236 -0
- package/es/organism/assignment-audience/index.js.map +1 -0
- package/es/organism/assignment-audience/style.css +115 -0
- package/es/organism/assignment-audience/types.d.ts +193 -0
- package/es/organism/assignment-audience/types.d.ts.map +1 -0
- package/es/organism/assignment-audience/types.js +108 -0
- package/es/organism/assignment-audience/types.js.map +1 -0
- package/es/organism/assignment-audience/upload-result.css +47 -0
- package/es/organism/assignment-audience/upload-result.d.ts +26 -0
- package/es/organism/assignment-audience/upload-result.d.ts.map +1 -0
- package/es/organism/assignment-audience/upload-result.js +89 -0
- package/es/organism/assignment-audience/upload-result.js.map +1 -0
- package/es/organism/assignment-row/index.d.ts +55 -0
- package/es/organism/assignment-row/index.d.ts.map +1 -0
- package/es/organism/assignment-row/index.js +38 -0
- package/es/organism/assignment-row/index.js.map +1 -0
- package/es/organism/assignment-row/types.d.ts +83 -0
- package/es/organism/assignment-row/types.d.ts.map +1 -0
- package/es/organism/assignment-row/types.js +29 -0
- package/es/organism/assignment-row/types.js.map +1 -0
- package/es/organism/brand-learning-priorities/index.d.ts +63 -54
- package/es/organism/content-skill-modal/index.d.ts +10 -0
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +10 -0
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/list-item/index.d.ts +13 -1
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +45 -3
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +36 -0
- package/es/organism/list-items/index.d.ts +10 -0
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +4 -1
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/mooc-header/index.d.ts +7 -0
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +30 -1
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +11 -0
- package/es/organism/rewards-form/index.d.ts +13 -0
- package/es/organism/select-opponents/index.d.ts +13 -0
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +13 -0
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/title-and-input/index.d.ts +14 -0
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +14 -0
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +13 -0
- package/es/template/app-player/loading/index.d.ts +11 -0
- package/es/template/app-player/player/index.d.ts +22 -0
- package/es/template/app-player/player/slides/index.d.ts +11 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +11 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +14 -0
- package/es/template/app-player/popin-end/summary.d.ts +3 -0
- package/es/template/app-review/index.d.ts +11 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +11 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +11 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +95 -54
- package/es/template/certification-detail/index.d.ts +11 -0
- package/es/template/cockpit/jw-uploader/index.d.ts +2 -0
- package/es/template/common/dashboard/index.d.ts +22 -0
- package/es/template/common/dashboard/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.js +37 -1
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/search-page/index.d.ts +17 -0
- package/es/template/external-course/index.d.ts +11 -0
- package/es/template/my-assignments/index.d.ts +167 -0
- package/es/template/my-assignments/index.d.ts.map +1 -0
- package/es/template/my-assignments/index.js +221 -0
- package/es/template/my-assignments/index.js.map +1 -0
- package/es/template/my-assignments/style.css +84 -0
- package/es/template/my-learning/index.d.ts +3 -0
- package/es/template/playlist-detail/index.d.ts +11 -0
- package/es/template/teams-dashboard/index.d.ts +3 -0
- package/es/util/proptypes.d.ts.map +1 -1
- package/es/util/proptypes.js +2 -2
- package/es/util/proptypes.js.map +1 -1
- package/lib/atom/chip/index.d.ts +1 -0
- package/lib/atom/chip/index.d.ts.map +1 -1
- package/lib/atom/chip/index.js +6 -3
- package/lib/atom/chip/index.js.map +1 -1
- package/lib/atom/drag-and-drop/index.d.ts +2 -0
- package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
- package/lib/atom/drag-and-drop/index.js +9 -4
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/input-date/index.d.ts +21 -0
- package/lib/atom/input-date/index.d.ts.map +1 -0
- package/lib/atom/input-date/index.js +80 -0
- package/lib/atom/input-date/index.js.map +1 -0
- package/lib/atom/input-date/style.css +88 -0
- package/lib/atom/input-file-draggable/index.d.ts +10 -2
- package/lib/atom/input-file-draggable/index.d.ts.map +1 -1
- package/lib/atom/input-file-draggable/index.js +12 -4
- package/lib/atom/input-file-draggable/index.js.map +1 -1
- package/lib/atom/radio-with-title/index.d.ts +1 -0
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +1 -0
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/title/index.d.ts +1 -0
- package/lib/atom/title/index.d.ts.map +1 -1
- package/lib/atom/title/index.js +16 -6
- package/lib/atom/title/index.js.map +1 -1
- package/lib/atom/title/style.css +4 -0
- package/lib/atom/video-upload/index.d.ts +2 -0
- package/lib/molecule/assignment-card/index.d.ts +62 -0
- package/lib/molecule/assignment-card/index.d.ts.map +1 -0
- package/lib/molecule/assignment-card/index.js +97 -0
- package/lib/molecule/assignment-card/index.js.map +1 -0
- package/lib/molecule/assignment-card/style.css +98 -0
- package/lib/molecule/assignment-status-tag/index.d.ts +13 -0
- package/lib/molecule/assignment-status-tag/index.d.ts.map +1 -0
- package/lib/molecule/assignment-status-tag/index.js +47 -0
- package/lib/molecule/assignment-status-tag/index.js.map +1 -0
- package/lib/molecule/assignment-status-tag/types.d.ts +15 -0
- package/lib/molecule/assignment-status-tag/types.d.ts.map +1 -0
- package/lib/molecule/assignment-status-tag/types.js +13 -0
- package/lib/molecule/assignment-status-tag/types.js.map +1 -0
- package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
- package/lib/molecule/brand-form-group/index.js +7 -0
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/card/index.d.ts +1 -0
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +3 -0
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card-content/index.d.ts +3 -1
- package/lib/molecule/card-content/index.d.ts.map +1 -1
- package/lib/molecule/card-content/index.js +7 -1
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +11 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts +3 -0
- package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +11 -5
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
- package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/index.d.ts +6 -0
- package/lib/molecule/draggable-list/index.d.ts +63 -54
- package/lib/molecule/tabs/index.d.ts +1 -0
- package/lib/molecule/tabs/index.d.ts.map +1 -1
- package/lib/molecule/tabs/index.js +7 -3
- package/lib/molecule/tabs/index.js.map +1 -1
- package/lib/molecule/tabs/style.css +4 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +13 -0
- package/lib/molecule/title-radio-wrapper/index.d.ts +7 -0
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +7 -0
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/assignment-audience/index.d.ts +92 -0
- package/lib/organism/assignment-audience/index.d.ts.map +1 -0
- package/lib/organism/assignment-audience/index.js +242 -0
- package/lib/organism/assignment-audience/index.js.map +1 -0
- package/lib/organism/assignment-audience/style.css +115 -0
- package/lib/organism/assignment-audience/types.d.ts +193 -0
- package/lib/organism/assignment-audience/types.d.ts.map +1 -0
- package/lib/organism/assignment-audience/types.js +112 -0
- package/lib/organism/assignment-audience/types.js.map +1 -0
- package/lib/organism/assignment-audience/upload-result.css +47 -0
- package/lib/organism/assignment-audience/upload-result.d.ts +26 -0
- package/lib/organism/assignment-audience/upload-result.d.ts.map +1 -0
- package/lib/organism/assignment-audience/upload-result.js +94 -0
- package/lib/organism/assignment-audience/upload-result.js.map +1 -0
- package/lib/organism/assignment-row/index.d.ts +55 -0
- package/lib/organism/assignment-row/index.d.ts.map +1 -0
- package/lib/organism/assignment-row/index.js +45 -0
- package/lib/organism/assignment-row/index.js.map +1 -0
- package/lib/organism/assignment-row/types.d.ts +83 -0
- package/lib/organism/assignment-row/types.d.ts.map +1 -0
- package/lib/organism/assignment-row/types.js +34 -0
- package/lib/organism/assignment-row/types.js.map +1 -0
- package/lib/organism/brand-learning-priorities/index.d.ts +63 -54
- package/lib/organism/content-skill-modal/index.d.ts +10 -0
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +10 -0
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/list-item/index.d.ts +13 -1
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +44 -3
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +36 -0
- package/lib/organism/list-items/index.d.ts +10 -0
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +4 -1
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/mooc-header/index.d.ts +7 -0
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +30 -1
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +11 -0
- package/lib/organism/rewards-form/index.d.ts +13 -0
- package/lib/organism/select-opponents/index.d.ts +13 -0
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +13 -0
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +14 -0
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +14 -0
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +13 -0
- package/lib/template/app-player/loading/index.d.ts +11 -0
- package/lib/template/app-player/player/index.d.ts +22 -0
- package/lib/template/app-player/player/slides/index.d.ts +11 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +11 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +14 -0
- package/lib/template/app-player/popin-end/summary.d.ts +3 -0
- package/lib/template/app-review/index.d.ts +11 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +11 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +11 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +95 -54
- package/lib/template/certification-detail/index.d.ts +11 -0
- package/lib/template/cockpit/jw-uploader/index.d.ts +2 -0
- package/lib/template/common/dashboard/index.d.ts +22 -0
- package/lib/template/common/dashboard/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.js +37 -1
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/search-page/index.d.ts +17 -0
- package/lib/template/external-course/index.d.ts +11 -0
- package/lib/template/my-assignments/index.d.ts +167 -0
- package/lib/template/my-assignments/index.d.ts.map +1 -0
- package/lib/template/my-assignments/index.js +227 -0
- package/lib/template/my-assignments/index.js.map +1 -0
- package/lib/template/my-assignments/style.css +84 -0
- package/lib/template/my-learning/index.d.ts +3 -0
- package/lib/template/playlist-detail/index.d.ts +11 -0
- package/lib/template/teams-dashboard/index.d.ts +3 -0
- package/lib/util/proptypes.d.ts.map +1 -1
- package/lib/util/proptypes.js +2 -2
- package/lib/util/proptypes.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
4
|
+
import { BulletPointMenuButtonProps } from '../../molecule/bullet-point-menu-button/types';
|
|
5
|
+
export declare const ROW_TAG_KEYS: readonly ["ongoingChanges", "unavailable", "processing", "syncError"];
|
|
6
|
+
export declare type RowTagKey = typeof ROW_TAG_KEYS[number];
|
|
7
|
+
declare const propTypes: {
|
|
8
|
+
title: PropTypes.Validator<string>;
|
|
9
|
+
subtitle: PropTypes.Requireable<string>;
|
|
10
|
+
details: PropTypes.Requireable<string>;
|
|
11
|
+
progress: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
|
+
value: PropTypes.Validator<number>;
|
|
13
|
+
label: PropTypes.Validator<string>;
|
|
14
|
+
}>>;
|
|
15
|
+
infoTags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
16
|
+
key: PropTypes.Validator<NonNullable<"ongoingChanges" | "unavailable" | "processing" | "syncError">>;
|
|
17
|
+
label: PropTypes.Validator<string>;
|
|
18
|
+
}> | null | undefined)[]>;
|
|
19
|
+
leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
20
|
+
iconName: PropTypes.Requireable<string>;
|
|
21
|
+
iconColor: PropTypes.Requireable<string>;
|
|
22
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
23
|
+
borderRadius: PropTypes.Requireable<string>;
|
|
24
|
+
preset: PropTypes.Requireable<string>;
|
|
25
|
+
gradientBackground: PropTypes.Requireable<boolean>;
|
|
26
|
+
size: PropTypes.Requireable<number>;
|
|
27
|
+
wrapperSize: PropTypes.Requireable<number>;
|
|
28
|
+
}>>;
|
|
29
|
+
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
30
|
+
type: PropTypes.Requireable<string>;
|
|
31
|
+
label: PropTypes.Requireable<string>;
|
|
32
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
33
|
+
dataName: PropTypes.Requireable<string>;
|
|
34
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
35
|
+
position: PropTypes.Requireable<string>;
|
|
36
|
+
type: PropTypes.Requireable<string>;
|
|
37
|
+
}>>;
|
|
38
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
|
+
}>>;
|
|
40
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
41
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
42
|
+
menuAriaLabel: PropTypes.Requireable<string>;
|
|
43
|
+
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
44
|
+
'data-name': PropTypes.Requireable<string>;
|
|
45
|
+
label: PropTypes.Requireable<string>;
|
|
46
|
+
type: PropTypes.Requireable<string>;
|
|
47
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
|
+
}> | null | undefined)[]>;
|
|
49
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
50
|
+
}>>;
|
|
51
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
52
|
+
id: PropTypes.Requireable<string>;
|
|
53
|
+
'data-name': PropTypes.Requireable<string>;
|
|
54
|
+
};
|
|
55
|
+
export default propTypes;
|
|
56
|
+
export declare type InfoTag = {
|
|
57
|
+
key: RowTagKey;
|
|
58
|
+
label: string;
|
|
59
|
+
};
|
|
60
|
+
export declare type AssignmentRowProps = {
|
|
61
|
+
title: string;
|
|
62
|
+
subtitle?: string;
|
|
63
|
+
details?: string;
|
|
64
|
+
progress?: {
|
|
65
|
+
value: number;
|
|
66
|
+
label: string;
|
|
67
|
+
};
|
|
68
|
+
infoTags?: InfoTag[];
|
|
69
|
+
leftIcon?: {
|
|
70
|
+
iconName: string;
|
|
71
|
+
iconColor?: string;
|
|
72
|
+
preset?: string;
|
|
73
|
+
};
|
|
74
|
+
buttonLink?: ButtonLinkProps;
|
|
75
|
+
bulletPointMenuButton?: Omit<BulletPointMenuButtonProps, 'data-name'>;
|
|
76
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
77
|
+
id?: string;
|
|
78
|
+
'data-name'?: string;
|
|
79
|
+
};
|
|
80
|
+
export declare type AssignmentRowPropsFixture = {
|
|
81
|
+
props: AssignmentRowProps;
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-row/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,0BAA0B,EAAC,MAAM,+CAA+C,CAAC;AAIzF,eAAO,MAAM,YAAY,uEAAwE,CAAC;AAElG,oBAAY,SAAS,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAEpD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,OAAO,GAAG;IAAC,GAAG,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;AAEtD,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC;IACnE,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,qBAAqB,CAAC,EAAE,IAAI,CAAC,0BAA0B,EAAE,WAAW,CAAC,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IAAC,KAAK,EAAE,kBAAkB,CAAA;CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import ListItem from '../list-item';
|
|
3
|
+
// Row tags appear only when they add information, in this order. There is no lifecycle tag (the
|
|
4
|
+
// list tab already says it) and no "up to date" sync tag (only syncing or a sync error shows).
|
|
5
|
+
export const ROW_TAG_KEYS = ['ongoingChanges', 'unavailable', 'processing', 'syncError'];
|
|
6
|
+
const propTypes = {
|
|
7
|
+
title: ListItem.propTypes.title,
|
|
8
|
+
// The audience summary and the date range, e.g. "Managers FR · 02 Nov 2026 – 15 Dec 2026 (GMT)"
|
|
9
|
+
subtitle: ListItem.propTypes.subtitle,
|
|
10
|
+
// The contents line, e.g. "6 modules · 2 external · 2 chapters"
|
|
11
|
+
details: ListItem.propTypes.details,
|
|
12
|
+
// Completion (0 to 100) and its label; absent on a draft
|
|
13
|
+
progress: ListItem.propTypes.progress,
|
|
14
|
+
infoTags: PropTypes.arrayOf(PropTypes.shape({
|
|
15
|
+
key: PropTypes.oneOf(ROW_TAG_KEYS).isRequired,
|
|
16
|
+
label: PropTypes.string.isRequired
|
|
17
|
+
})),
|
|
18
|
+
// Defaults to the calendar-check icon
|
|
19
|
+
leftIcon: ListItem.propTypes.leftIcon,
|
|
20
|
+
// The « Tracking » button (or « Edit » on a draft)
|
|
21
|
+
buttonLink: ListItem.propTypes.buttonLink,
|
|
22
|
+
bulletPointMenuButton: ListItem.propTypes.bulletPointMenuButton,
|
|
23
|
+
// A click on the row opens the tracking page
|
|
24
|
+
onClick: PropTypes.func,
|
|
25
|
+
id: PropTypes.string,
|
|
26
|
+
'data-name': PropTypes.string
|
|
27
|
+
};
|
|
28
|
+
export default propTypes;
|
|
29
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","ListItem","ROW_TAG_KEYS","propTypes","title","subtitle","details","progress","infoTags","arrayOf","shape","key","oneOf","isRequired","label","string","leftIcon","buttonLink","bulletPointMenuButton","onClick","func","id"],"sources":["../../../src/organism/assignment-row/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport {BulletPointMenuButtonProps} from '../../molecule/bullet-point-menu-button/types';\n\n// Row tags appear only when they add information, in this order. There is no lifecycle tag (the\n// list tab already says it) and no \"up to date\" sync tag (only syncing or a sync error shows).\nexport const ROW_TAG_KEYS = ['ongoingChanges', 'unavailable', 'processing', 'syncError'] as const;\n\nexport type RowTagKey = typeof ROW_TAG_KEYS[number];\n\nconst propTypes = {\n title: ListItem.propTypes.title,\n // The audience summary and the date range, e.g. \"Managers FR · 02 Nov 2026 – 15 Dec 2026 (GMT)\"\n subtitle: ListItem.propTypes.subtitle,\n // The contents line, e.g. \"6 modules · 2 external · 2 chapters\"\n details: ListItem.propTypes.details,\n // Completion (0 to 100) and its label; absent on a draft\n progress: ListItem.propTypes.progress,\n infoTags: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.oneOf(ROW_TAG_KEYS).isRequired,\n label: PropTypes.string.isRequired\n })\n ),\n // Defaults to the calendar-check icon\n leftIcon: ListItem.propTypes.leftIcon,\n // The « Tracking » button (or « Edit » on a draft)\n buttonLink: ListItem.propTypes.buttonLink,\n bulletPointMenuButton: ListItem.propTypes.bulletPointMenuButton,\n // A click on the row opens the tracking page\n onClick: PropTypes.func,\n id: PropTypes.string,\n 'data-name': PropTypes.string\n};\n\nexport default propTypes;\n\nexport type InfoTag = {key: RowTagKey; label: string};\n\nexport type AssignmentRowProps = {\n title: string;\n subtitle?: string;\n details?: string;\n progress?: {value: number; label: string};\n infoTags?: InfoTag[];\n leftIcon?: {iconName: string; iconColor?: string; preset?: string};\n buttonLink?: ButtonLinkProps;\n bulletPointMenuButton?: Omit<BulletPointMenuButtonProps, 'data-name'>;\n onClick?: (event: React.MouseEvent<HTMLElement>) => void;\n id?: string;\n 'data-name'?: string;\n};\n\nexport type AssignmentRowPropsFixture = {props: AssignmentRowProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,QAAQ,MAAM,cAAc;AAInC;AACA;AACA,OAAO,MAAMC,YAAY,GAAG,CAAC,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,CAAU;AAIjG,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEH,QAAQ,CAACE,SAAS,CAACC,KAAK;EAC/B;EACAC,QAAQ,EAAEJ,QAAQ,CAACE,SAAS,CAACE,QAAQ;EACrC;EACAC,OAAO,EAAEL,QAAQ,CAACE,SAAS,CAACG,OAAO;EACnC;EACAC,QAAQ,EAAEN,QAAQ,CAACE,SAAS,CAACI,QAAQ;EACrCC,QAAQ,EAAER,SAAS,CAACS,OAAO,CACzBT,SAAS,CAACU,KAAK,CAAC;IACdC,GAAG,EAAEX,SAAS,CAACY,KAAK,CAACV,YAAY,CAAC,CAACW,UAAU;IAC7CC,KAAK,EAAEd,SAAS,CAACe,MAAM,CAACF;EAC1B,CAAC,CACH,CAAC;EACD;EACAG,QAAQ,EAAEf,QAAQ,CAACE,SAAS,CAACa,QAAQ;EACrC;EACAC,UAAU,EAAEhB,QAAQ,CAACE,SAAS,CAACc,UAAU;EACzCC,qBAAqB,EAAEjB,QAAQ,CAACE,SAAS,CAACe,qBAAqB;EAC/D;EACAC,OAAO,EAAEnB,SAAS,CAACoB,IAAI;EACvBC,EAAE,EAAErB,SAAS,CAACe,MAAM;EACpB,WAAW,EAAEf,SAAS,CAACe;AACzB,CAAC;AAED,eAAeZ,SAAS","ignoreList":[]}
|
|
@@ -7,62 +7,17 @@ declare namespace BrandLearningPriorities {
|
|
|
7
7
|
namespace propTypes {
|
|
8
8
|
const content: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
9
|
items: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
|
|
10
|
-
title: PropTypes.Validator<string>;
|
|
11
|
-
onUp: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
-
onDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
display: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
title: PropTypes.Requireable<string>;
|
|
15
|
-
name: PropTypes.Requireable<string>;
|
|
16
|
-
id: PropTypes.Requireable<string>;
|
|
17
|
-
value: PropTypes.Requireable<boolean>;
|
|
18
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
19
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
description: PropTypes.Requireable<string>;
|
|
21
|
-
'aria-labelledby': PropTypes.Requireable<string>;
|
|
22
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
23
|
-
modified: PropTypes.Requireable<boolean>;
|
|
24
|
-
titlePosition: PropTypes.Requireable<string>;
|
|
25
|
-
theme: PropTypes.Requireable<string>;
|
|
26
|
-
details: PropTypes.Requireable<string>;
|
|
27
|
-
'data-name': PropTypes.Requireable<string>;
|
|
28
|
-
requiredSelection: PropTypes.Requireable<boolean>;
|
|
29
|
-
icon: PropTypes.Requireable<string>;
|
|
30
|
-
}>>;
|
|
31
|
-
contentTypes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
32
|
-
modified: PropTypes.Requireable<boolean>;
|
|
33
|
-
color: PropTypes.Requireable<string>;
|
|
34
|
-
theme: PropTypes.Requireable<string>;
|
|
35
|
-
className: PropTypes.Requireable<string>;
|
|
36
|
-
list: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
37
|
-
color: PropTypes.Requireable<string>;
|
|
38
|
-
value: PropTypes.Validator<string>;
|
|
39
|
-
name: PropTypes.Requireable<string>;
|
|
40
|
-
theme: PropTypes.Requireable<string>;
|
|
41
|
-
checked: PropTypes.Requireable<boolean>;
|
|
42
|
-
label: PropTypes.Requireable<string>;
|
|
43
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
44
|
-
}> | null | undefined)[]>;
|
|
45
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
|
-
}>>;
|
|
47
|
-
}> | PropTypes.InferProps<{
|
|
48
|
-
'aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
49
|
-
title: PropTypes.Requireable<string>;
|
|
50
|
-
author: PropTypes.Requireable<string>;
|
|
51
|
-
modules: PropTypes.Requireable<string>;
|
|
52
|
-
position: PropTypes.Requireable<string>;
|
|
53
|
-
}>>;
|
|
54
|
-
image: PropTypes.Requireable<string>;
|
|
55
|
-
badgeList: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
56
|
-
category: PropTypes.Requireable<string>;
|
|
57
|
-
label: PropTypes.Requireable<string>;
|
|
58
|
-
}> | null | undefined)[]>;
|
|
59
|
-
title: PropTypes.Requireable<string>;
|
|
60
|
-
author: PropTypes.Requireable<string>;
|
|
61
|
-
position: PropTypes.Requireable<number>;
|
|
62
|
-
id: PropTypes.Requireable<string>;
|
|
63
|
-
}> | PropTypes.InferProps<{
|
|
64
10
|
title: PropTypes.Validator<string>;
|
|
65
11
|
subtitle: PropTypes.Requireable<string>;
|
|
12
|
+
titleTags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
13
|
+
label: PropTypes.Validator<string>;
|
|
14
|
+
type: PropTypes.Requireable<string>;
|
|
15
|
+
}> | null | undefined)[]>;
|
|
16
|
+
details: PropTypes.Requireable<string>;
|
|
17
|
+
progress: PropTypes.Requireable<PropTypes.InferProps<{
|
|
18
|
+
value: PropTypes.Validator<number>;
|
|
19
|
+
label: PropTypes.Validator<string>;
|
|
20
|
+
}>>;
|
|
66
21
|
'data-name': PropTypes.Requireable<string>;
|
|
67
22
|
provider: PropTypes.Requireable<PropTypes.InferProps<{
|
|
68
23
|
label: PropTypes.Requireable<string>;
|
|
@@ -148,6 +103,60 @@ declare namespace BrandLearningPriorities {
|
|
|
148
103
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
149
104
|
}>;
|
|
150
105
|
}>>;
|
|
106
|
+
}> | PropTypes.InferProps<{
|
|
107
|
+
title: PropTypes.Validator<string>;
|
|
108
|
+
onUp: PropTypes.Requireable<(...args: any[]) => any>;
|
|
109
|
+
onDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
110
|
+
display: PropTypes.Requireable<PropTypes.InferProps<{
|
|
111
|
+
title: PropTypes.Requireable<string>;
|
|
112
|
+
name: PropTypes.Requireable<string>;
|
|
113
|
+
id: PropTypes.Requireable<string>;
|
|
114
|
+
value: PropTypes.Requireable<boolean>;
|
|
115
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
116
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
117
|
+
description: PropTypes.Requireable<string>;
|
|
118
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
119
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
120
|
+
modified: PropTypes.Requireable<boolean>;
|
|
121
|
+
titlePosition: PropTypes.Requireable<string>;
|
|
122
|
+
theme: PropTypes.Requireable<string>;
|
|
123
|
+
details: PropTypes.Requireable<string>;
|
|
124
|
+
'data-name': PropTypes.Requireable<string>;
|
|
125
|
+
requiredSelection: PropTypes.Requireable<boolean>;
|
|
126
|
+
icon: PropTypes.Requireable<string>;
|
|
127
|
+
}>>;
|
|
128
|
+
contentTypes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
129
|
+
modified: PropTypes.Requireable<boolean>;
|
|
130
|
+
color: PropTypes.Requireable<string>;
|
|
131
|
+
theme: PropTypes.Requireable<string>;
|
|
132
|
+
className: PropTypes.Requireable<string>;
|
|
133
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
134
|
+
color: PropTypes.Requireable<string>;
|
|
135
|
+
value: PropTypes.Validator<string>;
|
|
136
|
+
name: PropTypes.Requireable<string>;
|
|
137
|
+
theme: PropTypes.Requireable<string>;
|
|
138
|
+
checked: PropTypes.Requireable<boolean>;
|
|
139
|
+
label: PropTypes.Requireable<string>;
|
|
140
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
141
|
+
}> | null | undefined)[]>;
|
|
142
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
143
|
+
}>>;
|
|
144
|
+
}> | PropTypes.InferProps<{
|
|
145
|
+
'aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
146
|
+
title: PropTypes.Requireable<string>;
|
|
147
|
+
author: PropTypes.Requireable<string>;
|
|
148
|
+
modules: PropTypes.Requireable<string>;
|
|
149
|
+
position: PropTypes.Requireable<string>;
|
|
150
|
+
}>>;
|
|
151
|
+
image: PropTypes.Requireable<string>;
|
|
152
|
+
badgeList: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
153
|
+
category: PropTypes.Requireable<string>;
|
|
154
|
+
label: PropTypes.Requireable<string>;
|
|
155
|
+
}> | null | undefined)[]>;
|
|
156
|
+
title: PropTypes.Requireable<string>;
|
|
157
|
+
author: PropTypes.Requireable<string>;
|
|
158
|
+
position: PropTypes.Requireable<number>;
|
|
159
|
+
id: PropTypes.Requireable<string>;
|
|
151
160
|
}> | PropTypes.InferProps<{
|
|
152
161
|
'aria-label': PropTypes.Requireable<string>;
|
|
153
162
|
id: PropTypes.Requireable<string>;
|
|
@@ -77,6 +77,15 @@ declare const ContentSkillModal: {
|
|
|
77
77
|
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
78
78
|
title: import("prop-types").Validator<string>;
|
|
79
79
|
subtitle: import("prop-types").Requireable<string>;
|
|
80
|
+
titleTags: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
81
|
+
label: import("prop-types").Validator<string>;
|
|
82
|
+
type: import("prop-types").Requireable<string>;
|
|
83
|
+
}> | null | undefined)[]>;
|
|
84
|
+
details: import("prop-types").Requireable<string>;
|
|
85
|
+
progress: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
86
|
+
value: import("prop-types").Validator<number>;
|
|
87
|
+
label: import("prop-types").Validator<string>;
|
|
88
|
+
}>>;
|
|
80
89
|
'data-name': import("prop-types").Requireable<string>;
|
|
81
90
|
provider: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
82
91
|
label: import("prop-types").Requireable<string>;
|
|
@@ -523,6 +532,7 @@ declare const ContentSkillModal: {
|
|
|
523
532
|
customLabelClassName: import("prop-types").Requireable<string>;
|
|
524
533
|
}>>;
|
|
525
534
|
required: import("prop-types").Requireable<boolean>;
|
|
535
|
+
headingLevel: import("prop-types").Requireable<number>;
|
|
526
536
|
}> | null | undefined>>;
|
|
527
537
|
isFetching: import("prop-types").Requireable<boolean>;
|
|
528
538
|
search: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
|
|
@@ -74,6 +74,15 @@ declare const ContentSkillModalPropTypes: {
|
|
|
74
74
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
75
75
|
title: PropTypes.Validator<string>;
|
|
76
76
|
subtitle: PropTypes.Requireable<string>;
|
|
77
|
+
titleTags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
78
|
+
label: PropTypes.Validator<string>;
|
|
79
|
+
type: PropTypes.Requireable<string>;
|
|
80
|
+
}> | null | undefined)[]>;
|
|
81
|
+
details: PropTypes.Requireable<string>;
|
|
82
|
+
progress: PropTypes.Requireable<PropTypes.InferProps<{
|
|
83
|
+
value: PropTypes.Validator<number>;
|
|
84
|
+
label: PropTypes.Validator<string>;
|
|
85
|
+
}>>;
|
|
77
86
|
'data-name': PropTypes.Requireable<string>;
|
|
78
87
|
provider: PropTypes.Requireable<PropTypes.InferProps<{
|
|
79
88
|
label: PropTypes.Requireable<string>;
|
|
@@ -520,6 +529,7 @@ declare const ContentSkillModalPropTypes: {
|
|
|
520
529
|
customLabelClassName: PropTypes.Requireable<string>;
|
|
521
530
|
}>>;
|
|
522
531
|
required: PropTypes.Requireable<boolean>;
|
|
532
|
+
headingLevel: PropTypes.Requireable<number>;
|
|
523
533
|
}> | null | undefined>>;
|
|
524
534
|
isFetching: PropTypes.Requireable<boolean>;
|
|
525
535
|
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAq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;;;;;;;;;;;CAI/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACpD,OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ListItem;
|
|
2
|
-
declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, provider, selected, selectedColor, subtitle, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick, leftIcon, image, checkbox, "data-name": dataName }: {
|
|
2
|
+
declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, provider, selected, selectedColor, subtitle, titleTags, details, progress, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick, leftIcon, image, checkbox, "data-name": dataName }: {
|
|
3
3
|
buttonLink: any;
|
|
4
4
|
secondButtonLink: any;
|
|
5
5
|
bulletPointMenuButton: any;
|
|
@@ -9,6 +9,9 @@ declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton,
|
|
|
9
9
|
selected: any;
|
|
10
10
|
selectedColor: any;
|
|
11
11
|
subtitle: any;
|
|
12
|
+
titleTags: any;
|
|
13
|
+
details: any;
|
|
14
|
+
progress: any;
|
|
12
15
|
dataColumns: any;
|
|
13
16
|
order: any;
|
|
14
17
|
"aria-label": any;
|
|
@@ -50,6 +53,15 @@ declare namespace ListItem {
|
|
|
50
53
|
const propTypes: {
|
|
51
54
|
title: PropTypes.Validator<string>;
|
|
52
55
|
subtitle: PropTypes.Requireable<string>;
|
|
56
|
+
titleTags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
57
|
+
label: PropTypes.Validator<string>;
|
|
58
|
+
type: PropTypes.Requireable<string>;
|
|
59
|
+
}> | null | undefined)[]>;
|
|
60
|
+
details: PropTypes.Requireable<string>;
|
|
61
|
+
progress: PropTypes.Requireable<PropTypes.InferProps<{
|
|
62
|
+
value: PropTypes.Validator<number>;
|
|
63
|
+
label: PropTypes.Validator<string>;
|
|
64
|
+
}>>;
|
|
53
65
|
'data-name': PropTypes.Requireable<string>;
|
|
54
66
|
provider: PropTypes.Requireable<PropTypes.InferProps<{
|
|
55
67
|
label: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;8BA4KC"}
|
|
@@ -18,7 +18,15 @@ import BulletPointMenuButton from '../../molecule/bullet-point-menu-button';
|
|
|
18
18
|
import { COLORS } from '../../variables/colors';
|
|
19
19
|
import CardImagePreview from '../../atom/card-image-preview';
|
|
20
20
|
import CheckboxWithTitle from '../../atom/checkbox-with-title';
|
|
21
|
+
import ProgressBar from '../../molecule/progress-bar';
|
|
21
22
|
import style from './style.css';
|
|
23
|
+
|
|
24
|
+
// The thin completion bar: ProgressBar styles its inner bar through its `style` prop.
|
|
25
|
+
const THIN_PROGRESS_STYLE = {
|
|
26
|
+
backgroundColor: COLORS.cm_positive_500,
|
|
27
|
+
borderRadius: '4px',
|
|
28
|
+
animation: 'none'
|
|
29
|
+
};
|
|
22
30
|
const ListItem = ({
|
|
23
31
|
buttonLink,
|
|
24
32
|
secondButtonLink,
|
|
@@ -29,6 +37,9 @@ const ListItem = ({
|
|
|
29
37
|
selected,
|
|
30
38
|
selectedColor,
|
|
31
39
|
subtitle,
|
|
40
|
+
titleTags,
|
|
41
|
+
details,
|
|
42
|
+
progress,
|
|
32
43
|
dataColumns,
|
|
33
44
|
order,
|
|
34
45
|
'aria-label': ariaLabel,
|
|
@@ -103,7 +114,7 @@ const ListItem = ({
|
|
|
103
114
|
}, /*#__PURE__*/React.createElement("div", {
|
|
104
115
|
className: style.titleProviderWrapper
|
|
105
116
|
}, title ? /*#__PURE__*/React.createElement("div", {
|
|
106
|
-
className: style.title,
|
|
117
|
+
className: classnames(style.title, !_isEmpty(titleTags) && style.titleBeforeTags),
|
|
107
118
|
title: title.replace(/<[^>]*>/g, '')
|
|
108
119
|
// eslint-disable-next-line react/no-danger
|
|
109
120
|
,
|
|
@@ -114,9 +125,28 @@ const ListItem = ({
|
|
|
114
125
|
label: provider.label,
|
|
115
126
|
type: provider.type,
|
|
116
127
|
className: style.providerTag
|
|
117
|
-
}) : null
|
|
128
|
+
}) : null, !_isEmpty(titleTags) ? /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: style.titleTags,
|
|
130
|
+
"data-name": "title-tags"
|
|
131
|
+
}, titleTags.map(tag => /*#__PURE__*/React.createElement("div", {
|
|
132
|
+
key: tag.label,
|
|
133
|
+
className: style.tag
|
|
134
|
+
}, /*#__PURE__*/React.createElement(Tag, tag)))) : null), subtitle ? /*#__PURE__*/React.createElement("div", {
|
|
118
135
|
className: style.subtitle
|
|
119
|
-
}, subtitle) : null
|
|
136
|
+
}, subtitle) : null, details ? /*#__PURE__*/React.createElement("div", {
|
|
137
|
+
className: style.details
|
|
138
|
+
}, details) : null, progress ? /*#__PURE__*/React.createElement("div", {
|
|
139
|
+
className: style.progress,
|
|
140
|
+
"data-name": "list-item-progress"
|
|
141
|
+
}, /*#__PURE__*/React.createElement(ProgressBar, {
|
|
142
|
+
className: style.progressBar,
|
|
143
|
+
value: progress.value,
|
|
144
|
+
max: 100,
|
|
145
|
+
style: THIN_PROGRESS_STYLE,
|
|
146
|
+
displayInfo: false
|
|
147
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
148
|
+
className: style.progressLabel
|
|
149
|
+
}, progress.label)) : null), dataColumnsView), /*#__PURE__*/React.createElement("div", {
|
|
120
150
|
className: style.settings
|
|
121
151
|
}, tagsView, selected ? /*#__PURE__*/React.createElement(FaIcon, {
|
|
122
152
|
iconName: "circle-check",
|
|
@@ -137,6 +167,18 @@ ListItem.contextTypes = {
|
|
|
137
167
|
ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
138
168
|
title: PropTypes.string.isRequired,
|
|
139
169
|
subtitle: PropTypes.string,
|
|
170
|
+
// Tags shown right after the title
|
|
171
|
+
titleTags: PropTypes.arrayOf(PropTypes.shape({
|
|
172
|
+
label: PropTypes.string.isRequired,
|
|
173
|
+
type: Tag.propTypes.type
|
|
174
|
+
})),
|
|
175
|
+
// A second line under the subtitle
|
|
176
|
+
details: PropTypes.string,
|
|
177
|
+
// A thin completion bar (0 to 100) with its label
|
|
178
|
+
progress: PropTypes.shape({
|
|
179
|
+
value: PropTypes.number.isRequired,
|
|
180
|
+
label: PropTypes.string.isRequired
|
|
181
|
+
}),
|
|
140
182
|
'data-name': PropTypes.string,
|
|
141
183
|
provider: PropTypes.shape({
|
|
142
184
|
label: PropTypes.string,
|
|
@@ -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","role","extractedIndex","_pipe","_split","_last","wrapper","gridLayout","flexLayout","withSubtitle","cursorPointer","checked","dataColumnsWrapper","hiddenOverflowX","leftSection","iconName","gradientBackground","iconColor","preset","borderRadius","containerImage","titleWrapper","titleProviderWrapper","replace","dangerouslySetInnerHTML","__html","_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} role=\"group\" 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 {title ? (\n <div\n className={style.title}\n title={title.replace(/<[^>]*>/g, '')}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n ) : null}\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,GAA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EAAEzB,SAAS,CAACyG,IAAI;EACxB5E,OAAO,EAAE7B,SAAS,CAAC6G,IAAI;EACvBlF,WAAW,EAAE3B,SAAS,CAACyG,IAAI;EAC3B7E,gBAAgB,EAAE5B,SAAS,CAACyG,IAAI;EAChClF,KAAK,EAAEvB,SAAS,CAACiH,MAAM;EACvB,YAAY,EAAEjH,SAAS,CAACqG,MAAM;EAC9B3E,WAAW,EAAE1B,SAAS,CAACqG,MAAM;EAC7Ba,EAAE,EAAElH,SAAS,CAACqG,MAAM;EACpBtE,QAAQ,EAAE/B,SAAS,CAACuG,KAAK,CAAC;IACxB3B,QAAQ,EAAE5E,SAAS,CAACqG,MAAM;IAC1BvB,SAAS,EAAE9E,SAAS,CAACqG,MAAM;IAC3BxD,eAAe,EAAE7C,SAAS,CAACqG,MAAM;IACjCrB,YAAY,EAAEhF,SAAS,CAACqG,MAAM;IAC9BtB,MAAM,EAAE/E,SAAS,CAACqG,MAAM;IACxBxB,kBAAkB,EAAE7E,SAAS,CAACyG,IAAI;IAClCd,IAAI,EAAE3F,SAAS,CAACiH,MAAM;IACtBpB,WAAW,EAAE7F,SAAS,CAACiH;EACzB,CAAC,CAAC;EACFjF,KAAK,EAAEhC,SAAS,CAACqG,MAAM;EACvBpE,QAAQ,EAAEjC,SAAS,CAACuG,KAAK,CAAC7F,iBAAiB,CAACuF,SAAS;AACvD,CAAC;AAED,eAAerF,QAAQ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","convert","classnames","Provider","Tag","FaIcon","ButtonLink","BulletPointMenuButton","COLORS","CardImagePreview","CheckboxWithTitle","ProgressBar","style","THIN_PROGRESS_STYLE","backgroundColor","cm_positive_500","borderRadius","animation","ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","provider","selected","selectedColor","subtitle","titleTags","details","progress","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","_noop","leftIcon","image","checkbox","dataName","context","skin","primarySelectedColor","_get","mapUncapped","_map","cap","checkable","isPublished","selectedStyle","tagSelectedStyle","color","tagsView","tag","index","type","createElement","key","className","_extends","customStyle","dataColumnsView","dataColumn","label","orderView","undefined","role","extractedIndex","_pipe","_split","_last","wrapper","gridLayout","flexLayout","withSubtitle","cursorPointer","checked","dataColumnsWrapper","hiddenOverflowX","leftSection","iconName","gradientBackground","iconColor","preset","containerImage","titleWrapper","titleProviderWrapper","_isEmpty","titleBeforeTags","replace","dangerouslySetInnerHTML","__html","providerTag","map","progressBar","value","max","displayInfo","progressLabel","settings","white","size","faSize","wrapperSize","contextTypes","childContextTypes","translate","propTypes","process","env","NODE_ENV","string","isRequired","arrayOf","shape","number","oneOf","bool","icon","position","func","buttonAriaLabel","menuAriaLabel","buttons","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 ProgressBar from '../../molecule/progress-bar';\nimport style from './style.css';\n\n// The thin completion bar: ProgressBar styles its inner bar through its `style` prop.\nconst THIN_PROGRESS_STYLE = {\n backgroundColor: COLORS.cm_positive_500,\n borderRadius: '4px',\n animation: 'none'\n};\n\nconst ListItem = (\n {\n buttonLink,\n secondButtonLink,\n bulletPointMenuButton,\n tags,\n title,\n provider,\n selected,\n selectedColor,\n subtitle,\n titleTags,\n details,\n progress,\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} role=\"group\" 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 {title ? (\n <div\n className={classnames(style.title, !isEmpty(titleTags) && style.titleBeforeTags)}\n title={title.replace(/<[^>]*>/g, '')}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n ) : null}\n {!isEmpty(provider) ? (\n <Tag label={provider.label} type={provider.type} className={style.providerTag} />\n ) : null}\n {!isEmpty(titleTags) ? (\n <div className={style.titleTags} data-name=\"title-tags\">\n {titleTags.map(tag => (\n <div key={tag.label} className={style.tag}>\n <Tag {...tag} />\n </div>\n ))}\n </div>\n ) : null}\n </div>\n {subtitle ? <div className={style.subtitle}>{subtitle}</div> : null}\n {details ? <div className={style.details}>{details}</div> : null}\n {progress ? (\n <div className={style.progress} data-name=\"list-item-progress\">\n <ProgressBar\n className={style.progressBar}\n value={progress.value}\n max={100}\n style={THIN_PROGRESS_STYLE}\n displayInfo={false}\n />\n <span className={style.progressLabel}>{progress.label}</span>\n </div>\n ) : 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 // Tags shown right after the title\n titleTags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n type: Tag.propTypes.type\n })\n ),\n // A second line under the subtitle\n details: PropTypes.string,\n // A thin completion bar (0 to 100) with its label\n progress: PropTypes.shape({\n value: PropTypes.number.isRequired,\n label: PropTypes.string.isRequired\n }),\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,WAAW,MAAM,6BAA6B;AACrD,OAAOC,KAAK,MAAM,aAAa;;AAE/B;AACA,MAAMC,mBAAmB,GAAG;EAC1BC,eAAe,EAAEN,MAAM,CAACO,eAAe;EACvCC,YAAY,EAAE,KAAK;EACnBC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,QAAQ,GAAGA,CACf;EACEC,UAAU;EACVC,gBAAgB;EAChBC,qBAAqB;EACrBC,IAAI;EACJC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,aAAa;EACbC,QAAQ;EACRC,SAAS;EACTC,OAAO;EACPC,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,WAA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SAAS,CAAC;EAChF,CAAC,CACH,CAAC;EACDtF,QAAQ,EAAElC,SAAS,CAACyH,IAAI;EACxBnF,OAAO,EAAEtC,SAAS,CAAC4H,IAAI;EACvBxF,WAAW,EAAEpC,SAAS,CAACyH,IAAI;EAC3BpF,gBAAgB,EAAErC,SAAS,CAACyH,IAAI;EAChCzF,KAAK,EAAEhC,SAAS,CAACuH,MAAM;EACvB,YAAY,EAAEvH,SAAS,CAACmH,MAAM;EAC9BhF,WAAW,EAAEnC,SAAS,CAACmH,MAAM;EAC7Ba,EAAE,EAAEhI,SAAS,CAACmH,MAAM;EACpB3E,QAAQ,EAAExC,SAAS,CAACsH,KAAK,CAAC;IACxBlC,QAAQ,EAAEpF,SAAS,CAACmH,MAAM;IAC1B7B,SAAS,EAAEtF,SAAS,CAACmH,MAAM;IAC3BrG,eAAe,EAAEd,SAAS,CAACmH,MAAM;IACjCnG,YAAY,EAAEhB,SAAS,CAACmH,MAAM;IAC9B5B,MAAM,EAAEvF,SAAS,CAACmH,MAAM;IACxB9B,kBAAkB,EAAErF,SAAS,CAACyH,IAAI;IAClChB,IAAI,EAAEzG,SAAS,CAACuH,MAAM;IACtBZ,WAAW,EAAE3G,SAAS,CAACuH;EACzB,CAAC,CAAC;EACF9E,KAAK,EAAEzC,SAAS,CAACmH,MAAM;EACvBzE,QAAQ,EAAE1C,SAAS,CAACsH,KAAK,CAAC5G,iBAAiB,CAACqG,SAAS;AACvD,CAAC;AAED,eAAe7F,QAAQ","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@value xtraLightGrey from colors;
|
|
5
5
|
@value primaryAdd1 from colors;
|
|
6
6
|
@value cm_grey_75 from colors;
|
|
7
|
+
@value cm_grey_100 from colors;
|
|
7
8
|
@value cm_grey_400 from colors;
|
|
8
9
|
@value cm_grey_500 from colors;
|
|
9
10
|
@value cm_grey_700 from colors;
|
|
@@ -63,6 +64,10 @@
|
|
|
63
64
|
text-align: left;
|
|
64
65
|
}
|
|
65
66
|
|
|
67
|
+
.titleBeforeTags {
|
|
68
|
+
flex: 0 1 auto;
|
|
69
|
+
}
|
|
70
|
+
|
|
66
71
|
.subtitle {
|
|
67
72
|
font-size: 12px;
|
|
68
73
|
font-style: normal;
|
|
@@ -154,3 +159,34 @@
|
|
|
154
159
|
border: 2px solid cm_primary_blue;
|
|
155
160
|
padding: 10px 14px;
|
|
156
161
|
}
|
|
162
|
+
|
|
163
|
+
.titleTags {
|
|
164
|
+
composes: titleProviderWrapper;
|
|
165
|
+
flex-wrap: wrap;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.details {
|
|
169
|
+
composes: subtitle;
|
|
170
|
+
font-weight: 500;
|
|
171
|
+
color: cm_grey_500;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.progress {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
gap: 10px;
|
|
178
|
+
margin-top: 6px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.progressBar {
|
|
182
|
+
width: 220px;
|
|
183
|
+
min-width: 220px;
|
|
184
|
+
height: 4px;
|
|
185
|
+
border-radius: 4px;
|
|
186
|
+
background-color: cm_grey_100;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.progressLabel {
|
|
190
|
+
composes: subtitle;
|
|
191
|
+
margin: 0;
|
|
192
|
+
}
|
|
@@ -83,6 +83,15 @@ declare namespace ListItems {
|
|
|
83
83
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
84
84
|
title: PropTypes.Validator<string>;
|
|
85
85
|
subtitle: PropTypes.Requireable<string>;
|
|
86
|
+
titleTags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
87
|
+
label: PropTypes.Validator<string>;
|
|
88
|
+
type: PropTypes.Requireable<string>;
|
|
89
|
+
}> | null | undefined)[]>;
|
|
90
|
+
details: PropTypes.Requireable<string>;
|
|
91
|
+
progress: PropTypes.Requireable<PropTypes.InferProps<{
|
|
92
|
+
value: PropTypes.Validator<number>;
|
|
93
|
+
label: PropTypes.Validator<string>;
|
|
94
|
+
}>>;
|
|
86
95
|
'data-name': PropTypes.Requireable<string>;
|
|
87
96
|
provider: PropTypes.Requireable<PropTypes.InferProps<{
|
|
88
97
|
label: PropTypes.Requireable<string>;
|
|
@@ -529,6 +538,7 @@ declare namespace ListItems {
|
|
|
529
538
|
customLabelClassName: PropTypes.Requireable<string>;
|
|
530
539
|
}>>;
|
|
531
540
|
required: PropTypes.Requireable<boolean>;
|
|
541
|
+
headingLevel: PropTypes.Requireable<number>;
|
|
532
542
|
}> | null | undefined>>;
|
|
533
543
|
isFetching: PropTypes.Requireable<boolean>;
|
|
534
544
|
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AA0HA;;;;;;;;;;;gBAoDC"}
|