@coorpacademy/components 11.32.24-alpha.6 → 11.32.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/button-link/index.d.ts +1 -0
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +4 -2
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/types.d.ts +2 -0
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js +1 -0
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/circular-progress-bar/index.d.ts.map +1 -1
- package/es/atom/circular-progress-bar/index.js +1 -10
- package/es/atom/circular-progress-bar/index.js.map +1 -1
- package/es/atom/input-doublestep/index.d.ts +1 -0
- package/es/atom/input-doublestep/index.d.ts.map +1 -1
- package/es/atom/input-doublestep/index.js +38 -13
- package/es/atom/input-doublestep/index.js.map +1 -1
- package/es/atom/input-doublestep/style.css +7 -67
- package/es/atom/select/index.js +1 -1
- package/es/atom/select/index.js.map +1 -1
- package/es/molecule/base-modal/index.d.ts +1 -0
- package/es/molecule/base-modal/index.d.ts.map +1 -1
- package/es/molecule/base-modal/index.js +8 -6
- package/es/molecule/base-modal/index.js.map +1 -1
- package/es/molecule/brand-create-form/index.d.ts.map +1 -1
- package/es/molecule/brand-create-form/index.js +9 -4
- package/es/molecule/brand-create-form/index.js.map +1 -1
- package/es/molecule/brand-download-box/index.d.ts.map +1 -1
- package/es/molecule/brand-download-box/index.js +11 -6
- package/es/molecule/brand-download-box/index.js.map +1 -1
- package/es/molecule/brand-download-box/style.css +6 -5
- package/es/molecule/brand-form-group/index.d.ts.map +1 -1
- package/es/molecule/brand-form-group/index.js +12 -1
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +1 -1
- package/es/molecule/cm-popin/types.d.ts +3 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/discipline-associated-skills/index.js +1 -1
- package/es/molecule/discipline-associated-skills/index.js.map +1 -1
- package/es/molecule/draggable-list/index.d.ts +1 -0
- package/es/molecule/expandible-actionable-table/index.d.ts +1 -0
- package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/types.d.ts +1 -0
- package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/es/molecule/learning-priority-modal/index.d.ts.map +1 -1
- package/es/molecule/learning-priority-modal/index.js +8 -15
- package/es/molecule/learning-priority-modal/index.js.map +1 -1
- package/es/molecule/learning-priority-modal/style.css +0 -1
- package/es/molecule/learning-priority-setup-item/index.d.ts.map +1 -1
- package/es/molecule/learning-priority-setup-item/index.js +1 -1
- package/es/molecule/learning-priority-setup-item/index.js.map +1 -1
- package/es/molecule/learning-profile-radar-chart/index.d.ts.map +1 -1
- package/es/molecule/learning-profile-radar-chart/index.js +0 -2
- package/es/molecule/learning-profile-radar-chart/index.js.map +1 -1
- package/es/molecule/playlist-detail-cover/index.d.ts +14 -0
- package/es/molecule/playlist-detail-cover/index.d.ts.map +1 -0
- package/es/molecule/playlist-detail-cover/index.js +52 -0
- package/es/molecule/playlist-detail-cover/index.js.map +1 -0
- package/es/molecule/playlist-detail-cover/style.css +17 -0
- package/es/molecule/setup-section/index.d.ts.map +1 -1
- package/es/molecule/setup-section/index.js +3 -1
- package/es/molecule/setup-section/index.js.map +1 -1
- package/es/molecule/setup-section/style.css +2 -2
- package/es/molecule/skill-picker-modal/index.js +1 -1
- package/es/molecule/skill-picker-modal/index.js.map +1 -1
- package/es/organism/brand-form/index.d.ts.map +1 -1
- package/es/organism/brand-form/index.js +24 -15
- package/es/organism/brand-form/index.js.map +1 -1
- package/es/organism/brand-learning-priorities/index.d.ts +1 -21
- package/es/organism/brand-learning-priorities/index.d.ts.map +1 -1
- package/es/organism/brand-learning-priorities/index.js +1 -14
- package/es/organism/brand-learning-priorities/index.js.map +1 -1
- package/es/organism/brand-learning-priorities/style.css +2 -0
- package/es/organism/list-item/index.d.ts +3 -1
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +7 -5
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-items/index.d.ts +3 -0
- package/es/organism/setup-header/index.d.ts +4 -0
- package/es/organism/wizard-contents/index.d.ts +3 -0
- package/es/template/app-player/loading/index.d.ts +3 -0
- package/es/template/app-player/player/index.d.ts +6 -0
- package/es/template/app-player/player/slides/index.d.ts +3 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +3 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +3 -0
- package/es/template/app-review/index.d.ts +3 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +3 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +3 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-create/index.d.ts +4 -0
- package/es/template/back-office/brand-create/index.d.ts.map +1 -1
- package/es/template/back-office/brand-list/index.d.ts +4 -0
- package/es/template/back-office/brand-list/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +14 -0
- package/es/template/back-office/dashboard-preview/index.d.ts +4 -0
- package/es/template/back-office/layout/index.d.ts +4 -0
- package/es/template/back-office/layout/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +6 -0
- package/es/template/common/search-page/index.d.ts +3 -0
- package/es/template/external-course/index.d.ts +3 -0
- package/es/template/my-learning/index.js +1 -1
- package/es/template/my-learning/index.js.map +1 -1
- package/es/template/playlist-detail/index.d.ts +96 -0
- package/es/template/playlist-detail/index.d.ts.map +1 -0
- package/es/template/playlist-detail/index.js +109 -0
- package/es/template/playlist-detail/index.js.map +1 -0
- package/es/template/playlist-detail/style.css +108 -0
- package/es/template/skill-detail/all-courses.d.ts +1 -1
- package/es/template/skill-detail/all-courses.js +3 -3
- package/es/template/skill-detail/all-courses.js.map +1 -1
- package/es/template/skill-detail/index.d.ts +39 -4
- package/es/template/skill-detail/index.d.ts.map +1 -1
- package/es/template/skill-detail/index.js +2 -4
- package/es/template/skill-detail/index.js.map +1 -1
- package/es/util/external-content.d.ts +1 -0
- package/es/util/external-content.d.ts.map +1 -1
- package/es/util/external-content.js +1 -0
- package/es/util/external-content.js.map +1 -1
- package/lib/atom/button-link/index.d.ts +1 -0
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +4 -2
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/types.d.ts +2 -0
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js +1 -0
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/circular-progress-bar/index.d.ts.map +1 -1
- package/lib/atom/circular-progress-bar/index.js +1 -10
- package/lib/atom/circular-progress-bar/index.js.map +1 -1
- package/lib/atom/input-doublestep/index.d.ts +1 -0
- package/lib/atom/input-doublestep/index.d.ts.map +1 -1
- package/lib/atom/input-doublestep/index.js +39 -13
- package/lib/atom/input-doublestep/index.js.map +1 -1
- package/lib/atom/input-doublestep/style.css +7 -67
- package/lib/atom/select/index.js +1 -1
- package/lib/atom/select/index.js.map +1 -1
- package/lib/molecule/base-modal/index.d.ts +1 -0
- package/lib/molecule/base-modal/index.d.ts.map +1 -1
- package/lib/molecule/base-modal/index.js +8 -6
- package/lib/molecule/base-modal/index.js.map +1 -1
- package/lib/molecule/brand-create-form/index.d.ts.map +1 -1
- package/lib/molecule/brand-create-form/index.js +9 -4
- package/lib/molecule/brand-create-form/index.js.map +1 -1
- package/lib/molecule/brand-download-box/index.d.ts.map +1 -1
- package/lib/molecule/brand-download-box/index.js +11 -6
- package/lib/molecule/brand-download-box/index.js.map +1 -1
- package/lib/molecule/brand-download-box/style.css +6 -5
- package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
- package/lib/molecule/brand-form-group/index.js +12 -1
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +1 -1
- package/lib/molecule/cm-popin/types.d.ts +3 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/discipline-associated-skills/index.js +1 -1
- package/lib/molecule/discipline-associated-skills/index.js.map +1 -1
- package/lib/molecule/draggable-list/index.d.ts +1 -0
- package/lib/molecule/expandible-actionable-table/index.d.ts +1 -0
- package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.d.ts +1 -0
- package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/lib/molecule/learning-priority-modal/index.d.ts.map +1 -1
- package/lib/molecule/learning-priority-modal/index.js +9 -14
- package/lib/molecule/learning-priority-modal/index.js.map +1 -1
- package/lib/molecule/learning-priority-modal/style.css +0 -1
- package/lib/molecule/learning-priority-setup-item/index.d.ts.map +1 -1
- package/lib/molecule/learning-priority-setup-item/index.js +1 -1
- package/lib/molecule/learning-priority-setup-item/index.js.map +1 -1
- package/lib/molecule/learning-profile-radar-chart/index.d.ts.map +1 -1
- package/lib/molecule/learning-profile-radar-chart/index.js +0 -2
- package/lib/molecule/learning-profile-radar-chart/index.js.map +1 -1
- package/lib/molecule/playlist-detail-cover/index.d.ts +14 -0
- package/lib/molecule/playlist-detail-cover/index.d.ts.map +1 -0
- package/lib/molecule/playlist-detail-cover/index.js +68 -0
- package/lib/molecule/playlist-detail-cover/index.js.map +1 -0
- package/lib/molecule/playlist-detail-cover/style.css +17 -0
- package/lib/molecule/setup-section/index.d.ts.map +1 -1
- package/lib/molecule/setup-section/index.js +4 -1
- package/lib/molecule/setup-section/index.js.map +1 -1
- package/lib/molecule/setup-section/style.css +2 -2
- package/lib/molecule/skill-picker-modal/index.js +1 -1
- package/lib/molecule/skill-picker-modal/index.js.map +1 -1
- package/lib/organism/brand-form/index.d.ts.map +1 -1
- package/lib/organism/brand-form/index.js +24 -15
- package/lib/organism/brand-form/index.js.map +1 -1
- package/lib/organism/brand-learning-priorities/index.d.ts +1 -21
- package/lib/organism/brand-learning-priorities/index.d.ts.map +1 -1
- package/lib/organism/brand-learning-priorities/index.js +3 -15
- package/lib/organism/brand-learning-priorities/index.js.map +1 -1
- package/lib/organism/brand-learning-priorities/style.css +2 -0
- package/lib/organism/list-item/index.d.ts +3 -1
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +7 -5
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-items/index.d.ts +3 -0
- package/lib/organism/setup-header/index.d.ts +4 -0
- package/lib/organism/wizard-contents/index.d.ts +3 -0
- package/lib/template/app-player/loading/index.d.ts +3 -0
- package/lib/template/app-player/player/index.d.ts +6 -0
- package/lib/template/app-player/player/slides/index.d.ts +3 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +3 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +3 -0
- package/lib/template/app-review/index.d.ts +3 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +3 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +3 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-create/index.d.ts +4 -0
- package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-list/index.d.ts +4 -0
- package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +14 -0
- package/lib/template/back-office/dashboard-preview/index.d.ts +4 -0
- package/lib/template/back-office/layout/index.d.ts +4 -0
- package/lib/template/back-office/layout/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +6 -0
- package/lib/template/common/search-page/index.d.ts +3 -0
- package/lib/template/external-course/index.d.ts +3 -0
- package/lib/template/my-learning/index.js +1 -1
- package/lib/template/my-learning/index.js.map +1 -1
- package/lib/template/playlist-detail/index.d.ts +96 -0
- package/lib/template/playlist-detail/index.d.ts.map +1 -0
- package/lib/template/playlist-detail/index.js +134 -0
- package/lib/template/playlist-detail/index.js.map +1 -0
- package/lib/template/playlist-detail/style.css +108 -0
- package/lib/template/skill-detail/all-courses.d.ts +1 -1
- package/lib/template/skill-detail/all-courses.js +3 -3
- package/lib/template/skill-detail/all-courses.js.map +1 -1
- package/lib/template/skill-detail/index.d.ts +39 -4
- package/lib/template/skill-detail/index.d.ts.map +1 -1
- package/lib/template/skill-detail/index.js +3 -2
- package/lib/template/skill-detail/index.js.map +1 -1
- package/lib/util/external-content.d.ts +1 -0
- package/lib/util/external-content.d.ts.map +1 -1
- package/lib/util/external-content.js +3 -1
- package/lib/util/external-content.js.map +1 -1
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ import Link from '../../atom/link';
|
|
|
10
10
|
import Loader from '../../atom/loader';
|
|
11
11
|
import style from './style.css';
|
|
12
12
|
|
|
13
|
-
const buildButtonSection = (onSubmit, submitValue, onReset, resetValue, tooltip, disabled, isModified, isPending,
|
|
13
|
+
const buildButtonSection = (onSubmit, submitValue, onReset, resetValue, tooltip, disabled, isModified, isPending, massiveBattleForm) => {
|
|
14
14
|
if (!onSubmit && !onReset) {
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
@@ -20,27 +20,36 @@ const buildButtonSection = (onSubmit, submitValue, onReset, resetValue, tooltip,
|
|
|
20
20
|
"data-tip": tooltip.title,
|
|
21
21
|
"data-for": "submitButton",
|
|
22
22
|
className: massiveBattleForm ? style.massiveBattleButton : style.saveButton
|
|
23
|
-
},
|
|
23
|
+
}, /*#__PURE__*/React.createElement(ButtonLink, {
|
|
24
24
|
type: "primary",
|
|
25
25
|
label: submitValue,
|
|
26
26
|
disabled: disabledSubmit,
|
|
27
27
|
"data-testid": "submit-button",
|
|
28
|
-
|
|
29
|
-
onClick: onSubmit
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
usage: "submit",
|
|
29
|
+
onClick: onSubmit,
|
|
30
|
+
icon: {
|
|
31
|
+
position: 'left',
|
|
32
|
+
faIcon: {
|
|
33
|
+
name: 'circle-check',
|
|
34
|
+
color: '#FFFFFF',
|
|
35
|
+
size: 16
|
|
36
|
+
}
|
|
37
|
+
}
|
|
34
38
|
})) : null;
|
|
35
|
-
const cancelBackground = {
|
|
36
|
-
backgroundColor: darkColor
|
|
37
|
-
};
|
|
38
39
|
const resetButton = onReset ? /*#__PURE__*/React.createElement("div", {
|
|
39
40
|
className: style.resetButton
|
|
40
|
-
}, /*#__PURE__*/React.createElement(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ButtonLink, {
|
|
42
|
+
usage: "reset",
|
|
43
|
+
label: resetValue,
|
|
44
|
+
"data-testid": "reset-button",
|
|
45
|
+
onClick: onReset,
|
|
46
|
+
icon: {
|
|
47
|
+
position: 'left',
|
|
48
|
+
faIcon: {
|
|
49
|
+
name: 'trash',
|
|
50
|
+
size: 16
|
|
51
|
+
}
|
|
52
|
+
}
|
|
44
53
|
})) : null;
|
|
45
54
|
return /*#__PURE__*/React.createElement("div", {
|
|
46
55
|
className: style.buttons
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","NovaCompositionNavigationArrowLeft","ArrowLeft","BrandFormGroup","Provider","Button","ButtonLink","Link","Loader","style","buildButtonSection","onSubmit","submitValue","onReset","resetValue","tooltip","disabled","isModified","isPending","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","NovaCompositionNavigationArrowLeft","ArrowLeft","BrandFormGroup","Provider","Button","ButtonLink","Link","Loader","style","buildButtonSection","onSubmit","submitValue","onReset","resetValue","tooltip","disabled","isModified","isPending","massiveBattleForm","disabledSubmit","submitButton","title","massiveBattleButton","saveButton","position","faIcon","name","color","size","resetButton","buttons","BrandForm","props","context","groups","back","isLoading","theme","skin","darkColor","fields","type","backView","arrowBack","link","backDesc","desc","brandGroups","map","group","index","buttonSection","handleSubmit","e","preventDefault","handleReset","loaderContainer","loader","form","contextTypes","childContextTypes","defaultProps","place","propTypes","arrayOf","shape","isRequired","bool","func","children","href","string"],"sources":["../../../src/organism/brand-form/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport ButtonLink from '../../atom/button-link';\nimport Link from '../../atom/link';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst buildButtonSection = (\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n massiveBattleForm\n) => {\n if (!onSubmit && !onReset) {\n return null;\n }\n\n const disabledSubmit = disabled || isPending || !isModified;\n const submitButton = onSubmit ? (\n <div\n data-tip={tooltip.title}\n data-for=\"submitButton\"\n className={massiveBattleForm ? style.massiveBattleButton : style.saveButton}\n >\n <ButtonLink\n type=\"primary\"\n label={submitValue}\n disabled={disabledSubmit}\n data-testid=\"submit-button\"\n usage=\"submit\"\n onClick={onSubmit}\n icon={{\n position: 'left',\n faIcon: {\n name: 'circle-check',\n color: '#FFFFFF',\n size: 16\n }\n }}\n />\n </div>\n ) : null;\n\n const resetButton = onReset ? (\n <div className={style.resetButton}>\n <ButtonLink\n usage=\"reset\"\n label={resetValue}\n data-testid=\"reset-button\"\n onClick={onReset}\n icon={{\n position: 'left',\n faIcon: {\n name: 'trash',\n size: 16\n }\n }}\n />\n </div>\n ) : null;\n\n return (\n <div className={style.buttons}>\n {submitButton}\n {resetButton}\n </div>\n );\n};\nconst BrandForm = (props, context) => {\n const {\n groups,\n disabled,\n isModified,\n isPending,\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n back,\n tooltip,\n isLoading,\n theme\n } = props;\n const {skin} = context;\n const darkColor = get('common.dark', skin);\n const massiveBattleForm = groups[0]?.fields?.[0]?.type === 'titleAndInput';\n const backView = back ? (\n <p className={style.back}>\n <ArrowLeft style={{color: darkColor}} className={style.arrowBack} />\n <Link href={back.link} className={style.backDesc}>\n {back.desc}\n </Link>\n </p>\n ) : null;\n\n const brandGroups = groups.map((group, index) => {\n return (\n <div className={style.group} key={index}>\n <BrandFormGroup {...group} />\n </div>\n );\n });\n\n const buttonSection = buildButtonSection(\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n darkColor,\n theme,\n massiveBattleForm\n );\n\n const handleSubmit = useMemo(\n () => e => {\n e.preventDefault();\n return onSubmit(e);\n },\n [onSubmit]\n );\n\n const handleReset = useMemo(\n () => e => {\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n return (\n <div>\n {backView}\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <form onSubmit={handleSubmit} onReset={handleReset} className={style.form}>\n {brandGroups}\n {buttonSection}\n </form>\n )}\n </div>\n );\n};\n\nBrandForm.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nBrandForm.defaultProps = {\n tooltip: {\n title: '',\n place: 'top'\n }\n};\n\nBrandForm.propTypes = {\n groups: PropTypes.arrayOf(PropTypes.shape(BrandFormGroup.propTypes)).isRequired,\n disabled: PropTypes.bool,\n isModified: PropTypes.bool,\n isPending: PropTypes.bool,\n onSubmit: PropTypes.func,\n submitValue: Button.propTypes.submitValue,\n onReset: PropTypes.func,\n resetValue: Button.propTypes.submitValue,\n back: PropTypes.shape({\n desc: Link.propTypes.children,\n link: Link.propTypes.href\n }),\n tooltip: PropTypes.shape({\n title: PropTypes.string,\n place: PropTypes.string\n }),\n isLoading: PropTypes.bool,\n theme: PropTypes.string\n};\n\nexport default BrandForm;\n"],"mappings":";AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAAQC,kCAAkC,IAAIC,SAA9C,QAA8D,0BAA9D;AACA,OAAOC,cAAP,MAA2B,iCAA3B;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,kBAAkB,GAAG,CACzBC,QADyB,EAEzBC,WAFyB,EAGzBC,OAHyB,EAIzBC,UAJyB,EAKzBC,OALyB,EAMzBC,QANyB,EAOzBC,UAPyB,EAQzBC,SARyB,EASzBC,iBATyB,KAUtB;EACH,IAAI,CAACR,QAAD,IAAa,CAACE,OAAlB,EAA2B;IACzB,OAAO,IAAP;EACD;;EAED,MAAMO,cAAc,GAAGJ,QAAQ,IAAIE,SAAZ,IAAyB,CAACD,UAAjD;EACA,MAAMI,YAAY,GAAGV,QAAQ,gBAC3B;IACE,YAAUI,OAAO,CAACO,KADpB;IAEE,YAAS,cAFX;IAGE,SAAS,EAAEH,iBAAiB,GAAGV,KAAK,CAACc,mBAAT,GAA+Bd,KAAK,CAACe;EAHnE,gBAKE,oBAAC,UAAD;IACE,IAAI,EAAC,SADP;IAEE,KAAK,EAAEZ,WAFT;IAGE,QAAQ,EAAEQ,cAHZ;IAIE,eAAY,eAJd;IAKE,KAAK,EAAC,QALR;IAME,OAAO,EAAET,QANX;IAOE,IAAI,EAAE;MACJc,QAAQ,EAAE,MADN;MAEJC,MAAM,EAAE;QACNC,IAAI,EAAE,cADA;QAENC,KAAK,EAAE,SAFD;QAGNC,IAAI,EAAE;MAHA;IAFJ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,CAA2BtB;AADV,CAAzB;AAIAP,SAAS,CAAC8B,YAAV,GAAyB;EACvB/C,OAAO,EAAE;IACPO,KAAK,EAAE,EADA;IAEPyC,KAAK,EAAE;EAFA;AADc,CAAzB;AAOA/B,SAAS,CAACgC,SAAV,2CAAsB;EACpB7B,MAAM,EAAEnC,SAAS,CAACiE,OAAV,CAAkBjE,SAAS,CAACkE,KAAV,CAAgB/D,cAAc,CAAC6D,SAA/B,CAAlB,EAA6DG,UADjD;EAEpBnD,QAAQ,EAAEhB,SAAS,CAACoE,IAFA;EAGpBnD,UAAU,EAAEjB,SAAS,CAACoE,IAHF;EAIpBlD,SAAS,EAAElB,SAAS,CAACoE,IAJD;EAKpBzD,QAAQ,EAAEX,SAAS,CAACqE,IALA;EAMpBzD,WAAW,EAAEP,MAAM,CAAC2D,SAAP,CAAiBpD,WANV;EAOpBC,OAAO,EAAEb,SAAS,CAACqE,IAPC;EAQpBvD,UAAU,EAAET,MAAM,CAAC2D,SAAP,CAAiBpD,WART;EASpBwB,IAAI,EAAEpC,SAAS,CAACkE,KAAV,CAAgB;IACpBnB,IAAI,EAAExC,IAAI,CAACyD,SAAL,CAAeM,QADD;IAEpBzB,IAAI,EAAEtC,IAAI,CAACyD,SAAL,CAAeO;EAFD,CAAhB,CATc;EAapBxD,OAAO,EAAEf,SAAS,CAACkE,KAAV,CAAgB;IACvB5C,KAAK,EAAEtB,SAAS,CAACwE,MADM;IAEvBT,KAAK,EAAE/D,SAAS,CAACwE;EAFM,CAAhB,CAbW;EAiBpBnC,SAAS,EAAErC,SAAS,CAACoE,IAjBD;EAkBpB9B,KAAK,EAAEtC,SAAS,CAACwE;AAlBG,CAAtB;AAqBA,eAAexC,SAAf"}
|
|
@@ -2,27 +2,6 @@ export default BrandLearningPriorities;
|
|
|
2
2
|
declare function BrandLearningPriorities(props: any, context: any): JSX.Element;
|
|
3
3
|
declare namespace BrandLearningPriorities {
|
|
4
4
|
namespace contextTypes {
|
|
5
|
-
const skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
-
common: PropTypes.Requireable<{
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
}>;
|
|
9
|
-
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
-
'logo-mobile': PropTypes.Requireable<any>;
|
|
11
|
-
logo: PropTypes.Requireable<any>;
|
|
12
|
-
'logo-email': PropTypes.Requireable<any>;
|
|
13
|
-
login: PropTypes.Requireable<any>;
|
|
14
|
-
}>>;
|
|
15
|
-
icons: PropTypes.Requireable<{
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
}>;
|
|
18
|
-
mod: PropTypes.Requireable<{
|
|
19
|
-
[x: string]: any;
|
|
20
|
-
}>;
|
|
21
|
-
courses: PropTypes.Requireable<any[]>;
|
|
22
|
-
texts: PropTypes.Requireable<{
|
|
23
|
-
[x: string]: any;
|
|
24
|
-
}>;
|
|
25
|
-
}>>;
|
|
26
5
|
const translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
6
|
}
|
|
28
7
|
namespace propTypes {
|
|
@@ -84,6 +63,7 @@ declare namespace BrandLearningPriorities {
|
|
|
84
63
|
title: PropTypes.Validator<string>;
|
|
85
64
|
subtitle: PropTypes.Requireable<string>;
|
|
86
65
|
selected: PropTypes.Requireable<boolean>;
|
|
66
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
87
67
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
88
68
|
label: PropTypes.Requireable<string>;
|
|
89
69
|
type: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/brand-learning-priorities/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/brand-learning-priorities/index.js"],"names":[],"mappings":";AAUA,gFA2FC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import _get from "lodash/fp/get";
|
|
2
|
-
|
|
3
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
2
|
|
|
5
3
|
import React, { useState, useCallback, useMemo, useEffect } from 'react';
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
7
|
-
import { convert } from 'css-color-function';
|
|
8
5
|
import Provider from '../../atom/provider';
|
|
9
6
|
import Loader from '../../atom/loader';
|
|
10
7
|
import { SelectOptionPropTypes } from '../../atom/select';
|
|
@@ -29,12 +26,8 @@ const BrandLearningPriorities = (props, context) => {
|
|
|
29
26
|
const [itemList, setItemList] = useState([...items]);
|
|
30
27
|
const [openModal, setOpenModal] = useState(false);
|
|
31
28
|
const {
|
|
32
|
-
skin,
|
|
33
29
|
translate
|
|
34
30
|
} = context;
|
|
35
|
-
|
|
36
|
-
const primarySkinColor = _get('common.primary', skin);
|
|
37
|
-
|
|
38
31
|
const selectedPriorities = useMemo(() => items.map(priority => priority.priorityRef), [items]);
|
|
39
32
|
const handleDropItem = useCallback((dragRef, dropRef) => {
|
|
40
33
|
const dragIndex = itemList.findIndex(item => item.priorityRef === dragRef);
|
|
@@ -82,14 +75,10 @@ const BrandLearningPriorities = (props, context) => {
|
|
|
82
75
|
}, /*#__PURE__*/React.createElement("div", {
|
|
83
76
|
className: style.priorityCount
|
|
84
77
|
}, `${items.length} ${translate('items')}`), /*#__PURE__*/React.createElement(ButtonLink, {
|
|
78
|
+
type: "primary",
|
|
85
79
|
customStyle: {
|
|
86
|
-
backgroundColor: primarySkinColor,
|
|
87
|
-
color: '#FFFFFF',
|
|
88
|
-
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',
|
|
89
80
|
width: 'fit-content'
|
|
90
81
|
},
|
|
91
|
-
hoverBackgroundColor: convert(`color(${primarySkinColor} a(0.07))`),
|
|
92
|
-
hoverColor: primarySkinColor,
|
|
93
82
|
onClick: handleOpenModal,
|
|
94
83
|
label: translate('add_learning_priority'),
|
|
95
84
|
"data-name": "add-learning-priority",
|
|
@@ -97,7 +86,6 @@ const BrandLearningPriorities = (props, context) => {
|
|
|
97
86
|
position: 'left',
|
|
98
87
|
faIcon: {
|
|
99
88
|
name: 'plus',
|
|
100
|
-
backgroundColor: primarySkinColor,
|
|
101
89
|
color: '#FFFFFF',
|
|
102
90
|
size: 16
|
|
103
91
|
}
|
|
@@ -110,7 +98,6 @@ const BrandLearningPriorities = (props, context) => {
|
|
|
110
98
|
};
|
|
111
99
|
|
|
112
100
|
BrandLearningPriorities.contextTypes = {
|
|
113
|
-
skin: Provider.childContextTypes.skin,
|
|
114
101
|
translate: Provider.childContextTypes.translate
|
|
115
102
|
};
|
|
116
103
|
BrandLearningPriorities.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useState","useCallback","useMemo","useEffect","PropTypes","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useState","useCallback","useMemo","useEffect","PropTypes","Provider","Loader","SelectOptionPropTypes","DraggableList","ButtonLink","LearningPriorityModal","style","BrandLearningPriorities","props","context","content","priorities","filters","isLoading","onAdd","items","onDrop","itemType","itemList","setItemList","openModal","setOpenModal","translate","selectedPriorities","map","priority","priorityRef","handleDropItem","dragRef","dropRef","dragIndex","findIndex","item","dropIndex","newItems","dragItem","splice","type","ref","Loading","loaderContainer","loader","handleOpenModal","handleCloseModal","container","LPtitle","LPdescription","ctaWrapper","priorityCount","length","width","position","faIcon","name","color","size","contextTypes","childContextTypes","propTypes","shape","arrayOf","string","title","courses","number","count","bool","func"],"sources":["../../../src/organism/brand-learning-priorities/index.js"],"sourcesContent":["import React, {useState, useCallback, useMemo, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport Provider from '../../atom/provider';\nimport Loader from '../../atom/loader';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport DraggableList from '../../molecule/draggable-list';\nimport ButtonLink from '../../atom/button-link';\nimport LearningPriorityModal from '../../molecule/learning-priority-modal';\nimport style from './style.css';\n\nconst BrandLearningPriorities = (props, context) => {\n const {content, priorities, filters, isLoading, onAdd} = props;\n const {items, onDrop, itemType} = content;\n const [itemList, setItemList] = useState([...items]);\n const [openModal, setOpenModal] = useState(false);\n const {translate} = context;\n\n const selectedPriorities = useMemo(() => items.map(priority => priority.priorityRef), [items]);\n\n const handleDropItem = useCallback(\n (dragRef, dropRef) => {\n const dragIndex = itemList.findIndex(item => item.priorityRef === dragRef);\n const dropIndex = itemList.findIndex(item => item.priorityRef === dropRef);\n\n if (dragIndex === dropIndex) return;\n\n const newItems = [...itemList];\n const [dragItem] = newItems.splice(dragIndex, 1);\n newItems.splice(dropIndex, 0, dragItem);\n\n setItemList(newItems);\n onDrop(\n newItems.map(item => {\n return {type: item.type, ref: item.priorityRef};\n })\n );\n },\n [itemList, setItemList, onDrop]\n );\n\n const Loading = useCallback(\n () => (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ),\n []\n );\n\n useEffect(() => {\n setItemList(items);\n }, [items]);\n\n const handleOpenModal = useCallback(() => setOpenModal(true), [setOpenModal]);\n const handleCloseModal = useCallback(() => setOpenModal(false), [setOpenModal]);\n return (\n <div className={style.container}>\n <LearningPriorityModal\n isLoading={isLoading}\n isOpen={openModal}\n onCancel={handleCloseModal}\n onClose={handleCloseModal}\n onAdd={onAdd}\n priorities={priorities}\n filters={filters}\n preselected={selectedPriorities}\n />\n <div className={style.LPtitle}>{translate('learning_priorities')}</div>\n <div className={style.LPdescription}>\n {translate('learning_priorities_brand_description')}\n </div>\n\n {isLoading ? (\n <Loading />\n ) : (\n <>\n <div className={style.ctaWrapper}>\n <div className={style.priorityCount}>{`${items.length} ${translate('items')}`}</div>\n <ButtonLink\n type=\"primary\"\n customStyle={{\n width: 'fit-content'\n }}\n onClick={handleOpenModal}\n label={translate('add_learning_priority')}\n data-name=\"add-learning-priority\"\n icon={{\n position: 'left',\n faIcon: {\n name: 'plus',\n color: '#FFFFFF',\n size: 16\n }\n }}\n />\n </div>\n <DraggableList itemType={itemType} items={itemList} onDrop={handleDropItem} />\n </>\n )}\n </div>\n );\n};\n\nBrandLearningPriorities.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nBrandLearningPriorities.propTypes = {\n content: PropTypes.shape(DraggableList.propTypes),\n priorities: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string,\n title: PropTypes.string,\n courses: PropTypes.number,\n type: PropTypes.string\n })\n ),\n filters: PropTypes.arrayOf(\n PropTypes.shape({\n ...SelectOptionPropTypes,\n count: PropTypes.number\n })\n ),\n isLoading: PropTypes.bool,\n onAdd: PropTypes.func\n};\n\nexport default BrandLearningPriorities;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,WAAzB,EAAsCC,OAAtC,EAA+CC,SAA/C,QAA+D,OAA/D;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAAQC,qBAAR,QAAoC,mBAApC;AACA,OAAOC,aAAP,MAA0B,+BAA1B;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,qBAAP,MAAkC,wCAAlC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,uBAAuB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAClD,MAAM;IAACC,OAAD;IAAUC,UAAV;IAAsBC,OAAtB;IAA+BC,SAA/B;IAA0CC;EAA1C,IAAmDN,KAAzD;EACA,MAAM;IAACO,KAAD;IAAQC,MAAR;IAAgBC;EAAhB,IAA4BP,OAAlC;EACA,MAAM,CAACQ,QAAD,EAAWC,WAAX,IAA0BxB,QAAQ,CAAC,CAAC,GAAGoB,KAAJ,CAAD,CAAxC;EACA,MAA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IAQE,IAAI,EAAE;MACJ6B,QAAQ,EAAE,MADN;MAEJC,MAAM,EAAE;QACNC,IAAI,EAAE,MADA;QAENC,KAAK,EAAE,SAFD;QAGNC,IAAI,EAAE;MAHA;IAFJ;EARR,EAFF,CADF,eAqBE,oBAAC,aAAD;IAAe,QAAQ,EAAEtC,QAAzB;IAAmC,KAAK,EAAEC,QAA1C;IAAoD,MAAM,EAAES;EAA5D,EArBF,CAnBJ,CADF;AA8CD,CA3FD;;AA6FApB,uBAAuB,CAACiD,YAAxB,GAAuC;EACrClC,SAAS,EAAEtB,QAAQ,CAACyD,iBAAT,CAA2BnC;AADD,CAAvC;AAIAf,uBAAuB,CAACmD,SAAxB,2CAAoC;EAClChD,OAAO,EAAEX,SAAS,CAAC4D,KAAV,CAAgBxD,aAAa,CAACuD,SAA9B,CADyB;EAElC/C,UAAU,EAAEZ,SAAS,CAAC6D,OAAV,CACV7D,SAAS,CAAC4D,KAAV,CAAgB;IACdrB,GAAG,EAAEvC,SAAS,CAAC8D,MADD;IAEdC,KAAK,EAAE/D,SAAS,CAAC8D,MAFH;IAGdE,OAAO,EAAEhE,SAAS,CAACiE,MAHL;IAId3B,IAAI,EAAEtC,SAAS,CAAC8D;EAJF,CAAhB,CADU,CAFsB;EAUlCjD,OAAO,EAAEb,SAAS,CAAC6D,OAAV,CACP7D,SAAS,CAAC4D,KAAV,cACKzD,qBADL;IAEE+D,KAAK,EAAElE,SAAS,CAACiE;EAFnB,GADO,CAVyB;EAgBlCnD,SAAS,EAAEd,SAAS,CAACmE,IAhBa;EAiBlCpD,KAAK,EAAEf,SAAS,CAACoE;AAjBiB,CAApC;AAoBA,eAAe5D,uBAAf"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export default ListItem;
|
|
2
|
-
declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, selected, subtitle, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick }: {
|
|
2
|
+
declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, selected, selectedColor, subtitle, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick }: {
|
|
3
3
|
buttonLink: any;
|
|
4
4
|
secondButtonLink: any;
|
|
5
5
|
bulletPointMenuButton: any;
|
|
6
6
|
tags: any;
|
|
7
7
|
title: any;
|
|
8
8
|
selected: any;
|
|
9
|
+
selectedColor: any;
|
|
9
10
|
subtitle: any;
|
|
10
11
|
dataColumns: any;
|
|
11
12
|
order: any;
|
|
@@ -45,6 +46,7 @@ declare namespace ListItem {
|
|
|
45
46
|
title: PropTypes.Validator<string>;
|
|
46
47
|
subtitle: PropTypes.Requireable<string>;
|
|
47
48
|
selected: PropTypes.Requireable<boolean>;
|
|
49
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
48
50
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
49
51
|
label: PropTypes.Requireable<string>;
|
|
50
52
|
type: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAaA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAaA;;;;;;;;;;;;;;;;;8BAwGC"}
|
|
@@ -24,6 +24,7 @@ const ListItem = ({
|
|
|
24
24
|
tags,
|
|
25
25
|
title,
|
|
26
26
|
selected,
|
|
27
|
+
selectedColor,
|
|
27
28
|
subtitle,
|
|
28
29
|
dataColumns,
|
|
29
30
|
order,
|
|
@@ -38,7 +39,7 @@ const ListItem = ({
|
|
|
38
39
|
skin
|
|
39
40
|
} = context;
|
|
40
41
|
|
|
41
|
-
const
|
|
42
|
+
const primarySelectedColor = selectedColor || _get('common.primary', skin);
|
|
42
43
|
|
|
43
44
|
const mapUncapped = _map.convert({
|
|
44
45
|
cap: false
|
|
@@ -46,11 +47,11 @@ const ListItem = ({
|
|
|
46
47
|
|
|
47
48
|
let isPublished = false;
|
|
48
49
|
const selectedStyle = selected ? {
|
|
49
|
-
backgroundColor: convert(`color(${
|
|
50
|
+
backgroundColor: convert(`color(${primarySelectedColor} a(0.07))`)
|
|
50
51
|
} : {};
|
|
51
52
|
const tagSelectedStyle = selected ? {
|
|
52
|
-
backgroundColor: convert(`color(${
|
|
53
|
-
color:
|
|
53
|
+
backgroundColor: convert(`color(${primarySelectedColor} a(0.15))`),
|
|
54
|
+
color: primarySelectedColor
|
|
54
55
|
} : {};
|
|
55
56
|
const tagsView = mapUncapped((tag, index) => {
|
|
56
57
|
isPublished = tag.type === 'success';
|
|
@@ -86,7 +87,7 @@ const ListItem = ({
|
|
|
86
87
|
className: style.settings
|
|
87
88
|
}, tagsView, selected ? /*#__PURE__*/React.createElement(Icon, {
|
|
88
89
|
iconName: "circle-check",
|
|
89
|
-
iconColor:
|
|
90
|
+
iconColor: primarySelectedColor,
|
|
90
91
|
backgroundColor: '#ffffff',
|
|
91
92
|
size: {
|
|
92
93
|
faSize: 16,
|
|
@@ -103,6 +104,7 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
103
104
|
title: PropTypes.string.isRequired,
|
|
104
105
|
subtitle: PropTypes.string,
|
|
105
106
|
selected: PropTypes.bool,
|
|
107
|
+
selectedColor: PropTypes.string,
|
|
106
108
|
dataColumns: PropTypes.arrayOf(PropTypes.shape({
|
|
107
109
|
label: PropTypes.string,
|
|
108
110
|
type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","convert","classnames","Provider","Tag","Icon","ButtonLink","BulletPointMenuButton","style","ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","selected","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","context","skin","primarySkinColor","mapUncapped","cap","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","dataColumnsView","dataColumn","className","label","orderView","undefined","wrapper","gridLayout","withSubtitle","cursorPointer","dataColumnsWrapper","hiddenOverflowX","settings","faSize","wrapperSize","contextTypes","childContextTypes","translate","propTypes","string","isRequired","bool","arrayOf","shape","oneOf","dataName","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} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = (\n {\n buttonLink,\n secondButtonLink,\n bulletPointMenuButton,\n tags,\n title,\n selected,\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 },\n context\n) => {\n const {skin} = context;\n const primarySkinColor = get('common.primary', skin);\n const mapUncapped = map.convert({cap: false});\n let isPublished = false;\n\n const selectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`)\n }\n : {};\n\n const tagSelectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySkinColor} a(0.15))`),\n color: primarySkinColor\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 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 )}\n onClick={!disabled ? onClick : undefined}\n style={selectedStyle}\n >\n <div\n className={classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)}\n >\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n {subtitle ? <div className={style.subtitle}>{subtitle}</div> : null}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {selected ? (\n <Icon\n iconName=\"circle-check\"\n iconColor={primarySkinColor}\n backgroundColor={'#ffffff'}\n size={{faSize: 16, wrapperSize: 16}}\n />\n ) : null}\n {buttonLink ? <ButtonLink {...buttonLink} /> : null}\n {secondButtonLink ? <ButtonLink {...secondButtonLink} /> : null}\n {!isEmpty(bulletPointMenuButton) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} />\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 selected: PropTypes.bool,\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};\n\nexport default ListItem;\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAAQC,OAAR,QAAsB,oBAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,qBAAP,MAAkC,yCAAlC,C,CACA;;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,QAAQ,GAAG,CACf;EACEC,UADF;EAEEC,gBAFF;EAGEC,qBAHF;EAIEC,IAJF;EAKEC,KALF;EAMEC,QANF;EAOEC,QAPF;EAQEC,WARF;EASEC,KATF;EAUE,cAAcC,SAVhB;EAWEC,QAAQ,GAAG,KAXb;EAYEC,WAZF;EAaEC,WAAW,GAAG,KAbhB;EAcEC,gBAAgB,GAAG,KAdrB;EAeEC,OAAO;AAfT,CADe,EAkBfC,OAlBe,KAmB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AO,EAAExB,SAAS,CAACmE,IArDA;EAsDnB7C,WAAW,EAAEtB,SAAS,CAAC4D,IAtDJ;EAuDnBrC,gBAAgB,EAAEvB,SAAS,CAAC4D,IAvDT;EAwDnB1C,KAAK,EAAElB,SAAS,CAACuE,MAxDE;EAyDnB,cAAcvE,SAAS,CAAC0D,MAzDL;EA0DnBrC,WAAW,EAAErB,SAAS,CAAC0D,MA1DJ;EA2DnBc,EAAE,EAAExE,SAAS,CAAC0D;AA3DK,CAArB;AA8DA,eAAejD,QAAf"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","convert","classnames","Provider","Tag","Icon","ButtonLink","BulletPointMenuButton","style","ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","selected","selectedColor","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","context","skin","primarySelectedColor","mapUncapped","cap","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","dataColumnsView","dataColumn","className","label","orderView","undefined","wrapper","gridLayout","withSubtitle","cursorPointer","dataColumnsWrapper","hiddenOverflowX","settings","faSize","wrapperSize","contextTypes","childContextTypes","translate","propTypes","string","isRequired","bool","arrayOf","shape","oneOf","dataName","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} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = (\n {\n buttonLink,\n secondButtonLink,\n bulletPointMenuButton,\n tags,\n title,\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 },\n context\n) => {\n const {skin} = context;\n const primarySelectedColor = selectedColor || get('common.primary', skin);\n const mapUncapped = map.convert({cap: 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 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 )}\n onClick={!disabled ? onClick : undefined}\n style={selectedStyle}\n >\n <div\n className={classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)}\n >\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n {subtitle ? <div className={style.subtitle}>{subtitle}</div> : null}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {selected ? (\n <Icon\n iconName=\"circle-check\"\n iconColor={primarySelectedColor}\n backgroundColor={'#ffffff'}\n size={{faSize: 16, wrapperSize: 16}}\n />\n ) : null}\n {buttonLink ? <ButtonLink {...buttonLink} /> : null}\n {secondButtonLink ? <ButtonLink {...secondButtonLink} /> : null}\n {!isEmpty(bulletPointMenuButton) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} />\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 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};\n\nexport default ListItem;\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,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D,MAFY;IAGrCY,OAAO,EAAEvE,SAAS,CAAC8D,OAAV,CACP9D,SAAS,CAAC+D,KAAV,CAAgB;MACd,aAAa/D,SAAS,CAAC2D,MADT;MAEdhB,KAAK,EAAE3C,SAAS,CAAC2D,MAFH;MAGdpB,IAAI,EAAEvC,SAAS,CAAC2D,MAHF;MAIdlC,OAAO,EAAEzB,SAAS,CAACoE;IAJL,CAAhB,CADO,CAH4B;IAWrC3C,OAAO,EAAEzB,SAAS,CAACoE;EAXkB,CAAhB,CAlCJ;EA+CnBvD,IAAI,EAAEb,SAAS,CAAC8D,OAAV,CACJ9D,SAAS,CAAC+D,KAAV,CAAgB;IACdpB,KAAK,EAAE3C,SAAS,CAAC2D,MADH;IAEdpB,IAAI,EAAEvC,SAAS,CAACgE,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,EAAuB,SAAvB,EAAkC,UAAlC,EAA8C,SAA9C,CAAhB;EAFQ,CAAhB,CADI,CA/Ca;EAqDnB3C,QAAQ,EAAErB,SAAS,CAAC6D,IArDD;EAsDnBpC,OAAO,EAAEzB,SAAS,CAACoE,IAtDA;EAuDnB7C,WAAW,EAAEvB,SAAS,CAAC6D,IAvDJ;EAwDnBrC,gBAAgB,EAAExB,SAAS,CAAC6D,IAxDT;EAyDnB1C,KAAK,EAAEnB,SAAS,CAACwE,MAzDE;EA0DnB,cAAcxE,SAAS,CAAC2D,MA1DL;EA2DnBrC,WAAW,EAAEtB,SAAS,CAAC2D,MA3DJ;EA4DnBc,EAAE,EAAEzE,SAAS,CAAC2D;AA5DK,CAArB;AA+DA,eAAelD,QAAf"}
|
|
@@ -12,6 +12,7 @@ declare namespace ListItems {
|
|
|
12
12
|
'aria-label': PropTypes.Requireable<string>;
|
|
13
13
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
14
|
type: PropTypes.Requireable<string>;
|
|
15
|
+
usage: PropTypes.Requireable<string>;
|
|
15
16
|
label: PropTypes.Requireable<string>;
|
|
16
17
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
18
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -56,6 +57,7 @@ declare namespace ListItems {
|
|
|
56
57
|
title: PropTypes.Validator<string>;
|
|
57
58
|
subtitle: PropTypes.Requireable<string>;
|
|
58
59
|
selected: PropTypes.Requireable<boolean>;
|
|
60
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
59
61
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
60
62
|
label: PropTypes.Requireable<string>;
|
|
61
63
|
type: PropTypes.Requireable<string>;
|
|
@@ -150,6 +152,7 @@ declare namespace ListItems {
|
|
|
150
152
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
151
153
|
componentType: PropTypes.Requireable<string>;
|
|
152
154
|
type: PropTypes.Requireable<string>;
|
|
155
|
+
usage: PropTypes.Requireable<string>;
|
|
153
156
|
label: PropTypes.Requireable<string>;
|
|
154
157
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
155
158
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -5,6 +5,7 @@ declare namespace SetupHeader {
|
|
|
5
5
|
const items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
6
|
seeMyPlatform: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
7
|
type: PropTypes.Requireable<string>;
|
|
8
|
+
usage: PropTypes.Requireable<string>;
|
|
8
9
|
label: PropTypes.Requireable<string>;
|
|
9
10
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
11
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -28,6 +29,7 @@ declare namespace SetupHeader {
|
|
|
28
29
|
}>>;
|
|
29
30
|
logOut: PropTypes.Requireable<PropTypes.InferProps<{
|
|
30
31
|
type: PropTypes.Requireable<string>;
|
|
32
|
+
usage: PropTypes.Requireable<string>;
|
|
31
33
|
label: PropTypes.Requireable<string>;
|
|
32
34
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
33
35
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -51,6 +53,7 @@ declare namespace SetupHeader {
|
|
|
51
53
|
}>>;
|
|
52
54
|
globalAnalytics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
53
55
|
type: PropTypes.Requireable<string>;
|
|
56
|
+
usage: PropTypes.Requireable<string>;
|
|
54
57
|
label: PropTypes.Requireable<string>;
|
|
55
58
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
56
59
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -74,6 +77,7 @@ declare namespace SetupHeader {
|
|
|
74
77
|
}>>;
|
|
75
78
|
platformList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
76
79
|
type: PropTypes.Requireable<string>;
|
|
80
|
+
usage: PropTypes.Requireable<string>;
|
|
77
81
|
label: PropTypes.Requireable<string>;
|
|
78
82
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
79
83
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -21,6 +21,7 @@ declare namespace WizardContents {
|
|
|
21
21
|
}>>;
|
|
22
22
|
firstButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
23
|
type: PropTypes.Requireable<string>;
|
|
24
|
+
usage: PropTypes.Requireable<string>;
|
|
24
25
|
label: PropTypes.Requireable<string>;
|
|
25
26
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
26
27
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -44,6 +45,7 @@ declare namespace WizardContents {
|
|
|
44
45
|
}>>;
|
|
45
46
|
secondButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
46
47
|
type: PropTypes.Requireable<string>;
|
|
48
|
+
usage: PropTypes.Requireable<string>;
|
|
47
49
|
label: PropTypes.Requireable<string>;
|
|
48
50
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
49
51
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -438,6 +440,7 @@ declare namespace WizardContents {
|
|
|
438
440
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
439
441
|
componentType: PropTypes.Requireable<string>;
|
|
440
442
|
type: PropTypes.Requireable<string>;
|
|
443
|
+
usage: PropTypes.Requireable<string>;
|
|
441
444
|
label: PropTypes.Requireable<string>;
|
|
442
445
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
443
446
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -92,6 +92,7 @@ declare namespace PlayerLoading {
|
|
|
92
92
|
'aria-label': PropTypes.Requireable<string>;
|
|
93
93
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
94
94
|
type: PropTypes.Requireable<string>;
|
|
95
|
+
usage: PropTypes.Requireable<string>;
|
|
95
96
|
label: PropTypes.Requireable<string>;
|
|
96
97
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
97
98
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -136,6 +137,7 @@ declare namespace PlayerLoading {
|
|
|
136
137
|
title: PropTypes.Validator<string>;
|
|
137
138
|
subtitle: PropTypes.Requireable<string>;
|
|
138
139
|
selected: PropTypes.Requireable<boolean>;
|
|
140
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
139
141
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
140
142
|
label: PropTypes.Requireable<string>;
|
|
141
143
|
type: PropTypes.Requireable<string>;
|
|
@@ -230,6 +232,7 @@ declare namespace PlayerLoading {
|
|
|
230
232
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
231
233
|
componentType: PropTypes.Requireable<string>;
|
|
232
234
|
type: PropTypes.Requireable<string>;
|
|
235
|
+
usage: PropTypes.Requireable<string>;
|
|
233
236
|
label: PropTypes.Requireable<string>;
|
|
234
237
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
235
238
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -143,6 +143,7 @@ declare namespace SlidePlayer {
|
|
|
143
143
|
'aria-label': PropTypes.Requireable<string>;
|
|
144
144
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
145
145
|
type: PropTypes.Requireable<string>;
|
|
146
|
+
usage: PropTypes.Requireable<string>;
|
|
146
147
|
label: PropTypes.Requireable<string>;
|
|
147
148
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
148
149
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -187,6 +188,7 @@ declare namespace SlidePlayer {
|
|
|
187
188
|
title: PropTypes.Validator<string>;
|
|
188
189
|
subtitle: PropTypes.Requireable<string>;
|
|
189
190
|
selected: PropTypes.Requireable<boolean>;
|
|
191
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
190
192
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
191
193
|
label: PropTypes.Requireable<string>;
|
|
192
194
|
type: PropTypes.Requireable<string>;
|
|
@@ -281,6 +283,7 @@ declare namespace SlidePlayer {
|
|
|
281
283
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
282
284
|
componentType: PropTypes.Requireable<string>;
|
|
283
285
|
type: PropTypes.Requireable<string>;
|
|
286
|
+
usage: PropTypes.Requireable<string>;
|
|
284
287
|
label: PropTypes.Requireable<string>;
|
|
285
288
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
286
289
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -433,6 +436,7 @@ declare namespace SlidePlayer {
|
|
|
433
436
|
'aria-label': PropTypes.Requireable<string>;
|
|
434
437
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
435
438
|
type: PropTypes.Requireable<string>;
|
|
439
|
+
usage: PropTypes.Requireable<string>;
|
|
436
440
|
label: PropTypes.Requireable<string>;
|
|
437
441
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
438
442
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -477,6 +481,7 @@ declare namespace SlidePlayer {
|
|
|
477
481
|
title: PropTypes.Validator<string>;
|
|
478
482
|
subtitle: PropTypes.Requireable<string>;
|
|
479
483
|
selected: PropTypes.Requireable<boolean>;
|
|
484
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
480
485
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
481
486
|
label: PropTypes.Requireable<string>;
|
|
482
487
|
type: PropTypes.Requireable<string>;
|
|
@@ -571,6 +576,7 @@ declare namespace SlidePlayer {
|
|
|
571
576
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
572
577
|
componentType: PropTypes.Requireable<string>;
|
|
573
578
|
type: PropTypes.Requireable<string>;
|
|
579
|
+
usage: PropTypes.Requireable<string>;
|
|
574
580
|
label: PropTypes.Requireable<string>;
|
|
575
581
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
576
582
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -149,6 +149,7 @@ declare namespace SlidesPlayer {
|
|
|
149
149
|
'aria-label': PropTypes.Requireable<string>;
|
|
150
150
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
151
151
|
type: PropTypes.Requireable<string>;
|
|
152
|
+
usage: PropTypes.Requireable<string>;
|
|
152
153
|
label: PropTypes.Requireable<string>;
|
|
153
154
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
154
155
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -193,6 +194,7 @@ declare namespace SlidesPlayer {
|
|
|
193
194
|
title: PropTypes.Validator<string>;
|
|
194
195
|
subtitle: PropTypes.Requireable<string>;
|
|
195
196
|
selected: PropTypes.Requireable<boolean>;
|
|
197
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
196
198
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
197
199
|
label: PropTypes.Requireable<string>;
|
|
198
200
|
type: PropTypes.Requireable<string>;
|
|
@@ -287,6 +289,7 @@ declare namespace SlidesPlayer {
|
|
|
287
289
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
288
290
|
componentType: PropTypes.Requireable<string>;
|
|
289
291
|
type: PropTypes.Requireable<string>;
|
|
292
|
+
usage: PropTypes.Requireable<string>;
|
|
290
293
|
label: PropTypes.Requireable<string>;
|
|
291
294
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
292
295
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
|