@coorpacademy/components 11.42.0 → 11.42.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/checkbox-with-title/index.d.ts +1 -0
- package/es/atom/checkbox-with-title/index.d.ts.map +1 -1
- package/es/atom/checkbox-with-title/index.js +6 -3
- package/es/atom/checkbox-with-title/index.js.map +1 -1
- package/es/atom/radio-group/index.d.ts +13 -7
- package/es/atom/radio-group/index.d.ts.map +1 -1
- package/es/atom/radio-group/index.js +51 -0
- package/es/atom/radio-group/index.js.map +1 -1
- package/es/atom/radio-group/style.css +37 -0
- package/es/atom/radio-with-title/index.d.ts +3 -0
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/index.js +23 -5
- package/es/atom/radio-with-title/index.js.map +1 -1
- package/es/atom/radio-with-title/style.css +27 -0
- package/es/atom/radio-with-title/types.d.ts +6 -0
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.js +3 -0
- package/es/atom/radio-with-title/types.js.map +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/es/molecule/cm-popin/index.d.ts.map +1 -1
- package/es/molecule/cm-popin/index.js +20 -3
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +17 -0
- package/es/molecule/cm-popin/types.d.ts +36 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js +3 -0
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/molecule/draggable-list/index.d.ts +12 -0
- package/es/molecule/progress-bar/index.d.ts +16 -7
- package/es/molecule/progress-bar/index.d.ts.map +1 -1
- package/es/molecule/progress-bar/index.js +61 -4
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/progress-bar/style.css +56 -0
- package/es/molecule/setup-section/index.d.ts +6 -0
- package/es/molecule/setup-sections/index.d.ts +6 -0
- package/es/molecule/table/index.d.ts +8 -0
- package/es/molecule/table/index.d.ts.map +1 -1
- package/es/molecule/table/index.js +43 -5
- package/es/molecule/table/index.js.map +1 -1
- package/es/molecule/table/style.css +24 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
- package/es/molecule/title-radio-wrapper/index.d.ts +3 -0
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +3 -0
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/molecule/wizard-summary/index.d.ts +3 -0
- package/es/molecule/wizard-summary/index.d.ts.map +1 -1
- package/es/molecule/wizard-summary/index.js +35 -3
- package/es/molecule/wizard-summary/index.js.map +1 -1
- package/es/molecule/wizard-summary/style.css +54 -1
- package/es/organism/assignment-audience/index.d.ts +23 -11
- package/es/organism/assignment-audience/index.d.ts.map +1 -1
- package/es/organism/assignment-audience/index.js +100 -59
- package/es/organism/assignment-audience/index.js.map +1 -1
- package/es/organism/assignment-audience/types.d.ts +39 -15
- package/es/organism/assignment-audience/types.d.ts.map +1 -1
- package/es/organism/assignment-audience/types.js +17 -5
- package/es/organism/assignment-audience/types.js.map +1 -1
- package/es/organism/brand-learning-priorities/index.d.ts +12 -0
- package/es/organism/brand-table/index.d.ts +8 -0
- package/es/organism/content-selection-list/index.d.ts +95 -0
- package/es/organism/content-selection-list/index.d.ts.map +1 -0
- package/es/organism/content-selection-list/index.js +175 -0
- package/es/organism/content-selection-list/index.js.map +1 -0
- package/es/organism/content-selection-list/style.css +8 -0
- package/es/organism/content-selection-list/types.d.ts +113 -0
- package/es/organism/content-selection-list/types.d.ts.map +1 -0
- package/es/organism/content-selection-list/types.js +58 -0
- package/es/organism/content-selection-list/types.js.map +1 -0
- package/es/organism/content-skill-modal/index.d.ts +7 -0
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +7 -0
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.d.ts +13 -4
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +31 -6
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/header-with-actions/style.css +42 -0
- package/es/organism/header-with-actions/types.d.ts +24 -6
- package/es/organism/header-with-actions/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/types.js +7 -2
- package/es/organism/header-with-actions/types.js.map +1 -1
- package/es/organism/list-item/index.d.ts +9 -1
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +16 -3
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +15 -0
- package/es/organism/list-items/index.d.ts +7 -0
- package/es/organism/rewards-form/index.d.ts +1 -0
- package/es/organism/select-opponents/index.d.ts +1 -0
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +1 -0
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/skill-edition/index.d.ts +8 -3
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/index.js +3 -168
- package/es/organism/skill-edition/index.js.map +1 -1
- package/es/organism/skill-edition/styles.d.ts +10 -0
- package/es/organism/skill-edition/styles.d.ts.map +1 -0
- package/es/organism/skill-edition/styles.js +10 -0
- package/es/organism/skill-edition/styles.js.map +1 -0
- package/es/organism/skill-edition/types.d.ts +10 -54
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/organism/skill-edition/types.js +3 -52
- package/es/organism/skill-edition/types.js.map +1 -1
- package/es/organism/title-and-input/index.d.ts +1 -0
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +1 -0
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +4 -0
- package/es/template/app-player/loading/index.d.ts +33 -0
- package/es/template/app-player/player/index.d.ts +66 -0
- package/es/template/app-player/player/slides/index.d.ts +33 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +33 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +33 -0
- package/es/template/app-review/index.d.ts +33 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +33 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +33 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +120 -7
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +19 -4
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +18 -0
- package/es/template/certification-detail/index.d.ts +33 -0
- package/es/template/common/dashboard/index.d.ts +66 -0
- package/es/template/common/search-page/index.d.ts +33 -0
- package/es/template/external-course/index.d.ts +33 -0
- package/es/template/playlist-detail/index.d.ts +33 -0
- package/lib/atom/checkbox-with-title/index.d.ts +1 -0
- package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
- package/lib/atom/checkbox-with-title/index.js +6 -3
- package/lib/atom/checkbox-with-title/index.js.map +1 -1
- package/lib/atom/radio-group/index.d.ts +13 -7
- package/lib/atom/radio-group/index.d.ts.map +1 -1
- package/lib/atom/radio-group/index.js +51 -0
- package/lib/atom/radio-group/index.js.map +1 -1
- package/lib/atom/radio-group/style.css +37 -0
- package/lib/atom/radio-with-title/index.d.ts +3 -0
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/index.js +23 -5
- package/lib/atom/radio-with-title/index.js.map +1 -1
- package/lib/atom/radio-with-title/style.css +27 -0
- package/lib/atom/radio-with-title/types.d.ts +6 -0
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.js +3 -0
- package/lib/atom/radio-with-title/types.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/molecule/cm-popin/index.d.ts.map +1 -1
- package/lib/molecule/cm-popin/index.js +20 -3
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +17 -0
- package/lib/molecule/cm-popin/types.d.ts +36 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +3 -0
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/draggable-list/index.d.ts +12 -0
- package/lib/molecule/progress-bar/index.d.ts +16 -7
- package/lib/molecule/progress-bar/index.d.ts.map +1 -1
- package/lib/molecule/progress-bar/index.js +61 -4
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/progress-bar/style.css +56 -0
- package/lib/molecule/setup-section/index.d.ts +6 -0
- package/lib/molecule/setup-sections/index.d.ts +6 -0
- package/lib/molecule/table/index.d.ts +8 -0
- package/lib/molecule/table/index.d.ts.map +1 -1
- package/lib/molecule/table/index.js +43 -5
- package/lib/molecule/table/index.js.map +1 -1
- package/lib/molecule/table/style.css +24 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
- package/lib/molecule/title-radio-wrapper/index.d.ts +3 -0
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +3 -0
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/molecule/wizard-summary/index.d.ts +3 -0
- package/lib/molecule/wizard-summary/index.d.ts.map +1 -1
- package/lib/molecule/wizard-summary/index.js +35 -3
- package/lib/molecule/wizard-summary/index.js.map +1 -1
- package/lib/molecule/wizard-summary/style.css +54 -1
- package/lib/organism/assignment-audience/index.d.ts +23 -11
- package/lib/organism/assignment-audience/index.d.ts.map +1 -1
- package/lib/organism/assignment-audience/index.js +100 -59
- package/lib/organism/assignment-audience/index.js.map +1 -1
- package/lib/organism/assignment-audience/types.d.ts +39 -15
- package/lib/organism/assignment-audience/types.d.ts.map +1 -1
- package/lib/organism/assignment-audience/types.js +17 -5
- package/lib/organism/assignment-audience/types.js.map +1 -1
- package/lib/organism/brand-learning-priorities/index.d.ts +12 -0
- package/lib/organism/brand-table/index.d.ts +8 -0
- package/lib/organism/content-selection-list/index.d.ts +95 -0
- package/lib/organism/content-selection-list/index.d.ts.map +1 -0
- package/lib/organism/content-selection-list/index.js +181 -0
- package/lib/organism/content-selection-list/index.js.map +1 -0
- package/lib/organism/content-selection-list/style.css +8 -0
- package/lib/organism/content-selection-list/types.d.ts +113 -0
- package/lib/organism/content-selection-list/types.d.ts.map +1 -0
- package/lib/organism/content-selection-list/types.js +63 -0
- package/lib/organism/content-selection-list/types.js.map +1 -0
- package/lib/organism/content-skill-modal/index.d.ts +7 -0
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +7 -0
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.d.ts +13 -4
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +31 -6
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/header-with-actions/style.css +42 -0
- package/lib/organism/header-with-actions/types.d.ts +24 -6
- package/lib/organism/header-with-actions/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/types.js +7 -2
- package/lib/organism/header-with-actions/types.js.map +1 -1
- package/lib/organism/list-item/index.d.ts +9 -1
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +16 -3
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +15 -0
- package/lib/organism/list-items/index.d.ts +7 -0
- package/lib/organism/rewards-form/index.d.ts +1 -0
- package/lib/organism/select-opponents/index.d.ts +1 -0
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +1 -0
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/skill-edition/index.d.ts +8 -3
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/index.js +11 -174
- package/lib/organism/skill-edition/index.js.map +1 -1
- package/lib/organism/skill-edition/styles.d.ts +10 -0
- package/lib/organism/skill-edition/styles.d.ts.map +1 -0
- package/lib/organism/skill-edition/styles.js +15 -0
- package/lib/organism/skill-edition/styles.js.map +1 -0
- package/lib/organism/skill-edition/types.d.ts +10 -54
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.js +6 -53
- package/lib/organism/skill-edition/types.js.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +1 -0
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +1 -0
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +4 -0
- package/lib/template/app-player/loading/index.d.ts +33 -0
- package/lib/template/app-player/player/index.d.ts +66 -0
- package/lib/template/app-player/player/slides/index.d.ts +33 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +33 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +33 -0
- package/lib/template/app-review/index.d.ts +33 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +33 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +33 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +120 -7
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +19 -4
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +18 -0
- package/lib/template/certification-detail/index.d.ts +33 -0
- package/lib/template/common/dashboard/index.d.ts +66 -0
- package/lib/template/common/search-page/index.d.ts +33 -0
- package/lib/template/external-course/index.d.ts +33 -0
- package/lib/template/playlist-detail/index.d.ts +33 -0
- package/locales/bs/global.json +2 -2
- package/locales/cs/global.json +2 -2
- package/locales/de/global.json +2 -2
- package/locales/es/global.json +2 -2
- package/locales/et/global.json +2 -2
- package/locales/fi/global.json +2 -2
- package/locales/fr/global.json +2 -2
- package/locales/hr/global.json +2 -2
- package/locales/hu/global.json +2 -2
- package/locales/hy/global.json +2 -2
- package/locales/it/global.json +2 -2
- package/locales/ja/global.json +2 -2
- package/locales/ko/global.json +2 -2
- package/locales/lt/global.json +2 -2
- package/locales/nl/global.json +2 -2
- package/locales/pl/global.json +2 -2
- package/locales/pt/global.json +2 -2
- package/locales/ro/global.json +2 -2
- package/locales/ru/global.json +2 -2
- package/locales/sk/global.json +2 -2
- package/locales/sl/global.json +2 -2
- package/locales/sv/global.json +2 -2
- package/locales/tl/global.json +2 -2
- package/locales/tr/global.json +2 -2
- package/locales/uk/global.json +2 -2
- package/locales/vi/global.json +2 -2
- package/locales/zh/global.json +2 -2
- package/locales/zh_TW/global.json +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","STATUSES","labelsByStatus","shape","valid","string","unknown","ambiguous","inactive","fileType","name","detail","UploadResultPropTypes","file","summary","keptLabel","report","label","isRequired","onDownload","func","removeLabel","onRemove","learnerType","id","login","AssignmentAudiencePropTypes","title","subtitle","disabledExplanation","everyone","value","bool","onChange","populations","options","arrayOf","selected","count","oneOfType","number","upload","templateLink","href","templatePreview","header","rows","dropzone","description","browse","dropLabel","loadingLabel","status","oneOf","error","onUpload","individuals","placeholder","suggestions","onSearch","onAdd","total"],"sources":["../../../src/organism/assignment-audience/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\n// Each file row resolves to one of four statuses. A never-connected account is `valid` and added\n// with no warning; a deactivated account is `inactive`, skipped and reported.\nexport const STATUSES = ['valid', 'unknown', 'ambiguous', 'inactive'] as const;\nexport type UploadRowStatus = typeof STATUSES[number];\n\nconst labelsByStatus = PropTypes.shape({\n valid: PropTypes.string,\n unknown: PropTypes.string,\n ambiguous: PropTypes.string,\n inactive: PropTypes.string\n});\n\nconst fileType = PropTypes.shape({name: PropTypes.string, detail: PropTypes.string});\n\nexport const UploadResultPropTypes = {\n file: fileType,\n // The four count labels, formatted by the app, e.g. {valid: '201 valid', unknown: '6 unknown'}\n summary: labelsByStatus,\n keptLabel: PropTypes.string,\n // The logins not kept, with their reason, as a file the app builds: offered only when some are\n report: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onDownload: PropTypes.func.isRequired\n }),\n removeLabel: PropTypes.string,\n onRemove: PropTypes.func\n};\n\nconst learnerType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n login: PropTypes.string.isRequired\n});\n\nconst AssignmentAudiencePropTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n disabledExplanation: PropTypes.string,\n everyone: PropTypes.shape({\n title: PropTypes.string,\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n // Receives the new boolean\n onChange: PropTypes.func.isRequired\n }).isRequired,\n populations: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string,\n label: PropTypes.string,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n // The population's learner count, formatted by the app, shown on its chip\n count: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n })\n ).isRequired,\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Managers FR »\n removeLabel: PropTypes.string,\n // Receives the selected options, with selected: true\n onChange: PropTypes.func.isRequired\n }).isRequired,\n upload: PropTypes.shape({\n // The file line and the result, once the file is checked\n ...UploadResultPropTypes,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n templateLink: PropTypes.shape({\n label: PropTypes.string,\n href: PropTypes.string\n }),\n // A sample of the expected file, shown left of the upload: a header and example values\n templatePreview: PropTypes.shape({\n header: PropTypes.string.isRequired,\n rows: PropTypes.arrayOf(PropTypes.string)\n }),\n // The Coorpmanager uploader's texts: the hint, the button, the drop text, the loader text\n dropzone: PropTypes.shape({\n description: PropTypes.string,\n browse: PropTypes.string,\n dropLabel: PropTypes.string,\n loadingLabel: PropTypes.string\n }),\n status: PropTypes.oneOf(['idle', 'loading', 'done', 'error']).isRequired,\n error: PropTypes.string,\n // Receives the first File. Parsing and login resolution belong to the consumer.\n onUpload: PropTypes.func.isRequired\n }).isRequired,\n individuals: PropTypes.shape({\n title: PropTypes.string,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n suggestions: PropTypes.arrayOf(learnerType),\n selected: PropTypes.arrayOf(learnerType),\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Camille Durand »\n removeLabel: PropTypes.string,\n // Receives the query, searched by name or login\n onSearch: PropTypes.func.isRequired,\n // Receives the original {id, label, login} suggestion\n onAdd: PropTypes.func.isRequired,\n // Receives the learner id\n onRemove: PropTypes.func.isRequired\n }).isRequired,\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n detail: PropTypes.string\n }).isRequired\n};\n\nexport default AssignmentAudiencePropTypes;\n\ntype LabelsByStatus = Partial<Record<UploadRowStatus, string>>;\n\nexport type UploadResultProps = {\n file?: {name?: string; detail?: string};\n summary?: LabelsByStatus;\n keptLabel?: string;\n report?: {label: string; onDownload: () => void};\n removeLabel?: string;\n onRemove?: () => void;\n};\n\nexport type PopulationOption = {\n name: string;\n value: string;\n selected: boolean;\n count?: string | number;\n};\n\nexport type Learner = {\n id: string;\n label: string;\n login: string;\n};\n\nexport type AssignmentAudienceProps = {\n title: string;\n subtitle?: string;\n disabledExplanation?: string;\n everyone: {\n title?: string;\n label: string;\n value: boolean;\n onChange: (value: boolean) => void;\n };\n populations: {\n title?: string;\n subtitle?: string;\n label?: string;\n options: PopulationOption[];\n removeLabel?: string;\n onChange: (selected: PopulationOption[]) => void;\n };\n upload: UploadResultProps & {\n title?: string;\n subtitle?: string;\n templateLink?: {label?: string; href?: string};\n templatePreview?: {header: string; rows?: string[]};\n dropzone?: {\n description?: string;\n browse?: string;\n dropLabel?: string;\n loadingLabel?: string;\n };\n status: 'idle' | 'loading' | 'done' | 'error';\n error?: string;\n onUpload: (file: File) => void;\n };\n individuals: {\n title?: string;\n placeholder?: string;\n value?: string;\n suggestions?: Learner[];\n selected?: Learner[];\n removeLabel?: string;\n onSearch: (query: string) => void;\n onAdd: (learner: Learner) => void;\n onRemove: (id: string) => void;\n };\n total: {label: string; detail?: string};\n};\n\nexport type AssignmentAudiencePropsFixture = {props: AssignmentAudienceProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;;AAElC;AACA;AACA,OAAO,MAAMC,QAAQ,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,CAAU;AAG9E,MAAMC,cAAc,GAAGF,SAAS,CAACG,KAAK,CAAC;EACrCC,KAAK,EAAEJ,SAAS,CAACK,MAAM;EACvBC,OAAO,EAAEN,SAAS,CAACK,MAAM;EACzBE,SAAS,EAAEP,SAAS,CAACK,MAAM;EAC3BG,QAAQ,EAAER,SAAS,CAACK;AACtB,CAAC,CAAC;AAEF,MAAMI,QAAQ,GAAGT,SAAS,CAACG,KAAK,CAAC;EAACO,IAAI,EAAEV,SAAS,CAACK,MAAM;EAAEM,MAAM,EAAEX,SAAS,CAACK;AAAM,CAAC,CAAC;AAEpF,OAAO,MAAMO,qBAAqB,GAAG;EACnCC,IAAI,EAAEJ,QAAQ;EACd;EACAK,OAAO,EAAEZ,cAAc;EACvBa,SAAS,EAAEf,SAAS,CAACK,MAAM;EAC3B;EACAW,MAAM,EAAEhB,SAAS,CAACG,KAAK,CAAC;IACtBc,KAAK,EAAEjB,SAAS,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,CAAC,CAACA,UAAU;EACbsC,WAAW,EAAExD,SAAS,CAACG,KAAK,CAAC;IAC3BwB,KAAK,EAAE3B,SAAS,CAACK,MAAM;IACvBoD,WAAW,EAAEzD,SAAS,CAACK,MAAM;IAC7B0B,KAAK,EAAE/B,SAAS,CAACK,MAAM;IACvBqD,WAAW,EAAE1D,SAAS,CAACoC,OAAO,CAACb,WAAW,CAAC;IAC3Cc,QAAQ,EAAErC,SAAS,CAACoC,OAAO,CAACb,WAAW,CAAC;IACxC;IACAF,WAAW,EAAErB,SAAS,CAACK,MAAM;IAC7B;IACAsD,QAAQ,EAAE3D,SAAS,CAACoB,IAAI,CAACF,UAAU;IACnC;IACA0C,KAAK,EAAE5D,SAAS,CAACoB,IAAI,CAACF,UAAU;IAChC;IACAI,QAAQ,EAAEtB,SAAS,CAACoB,IAAI,CAACF;EAC3B,CAAC,CAAC,CAACA,UAAU;EACb2C,KAAK,EAAE7D,SAAS,CAACG,KAAK,CAAC;IACrBc,KAAK,EAAEjB,SAAS,CAACK,MAAM,CAACa,UAAU;IAClCP,MAAM,EAAEX,SAAS,CAACK;EACpB,CAAC,CAAC,CAACa;AACL,CAAC;AAED,eAAeQ,2BAA2B","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","STATUSES","labelsByStatus","shape","valid","string","unknown","ambiguous","inactive","fileType","name","detail","UploadResultPropTypes","file","summary","keptLabel","report","label","isRequired","onDownload","func","removeLabel","onRemove","learnerType","id","login","AssignmentAudiencePropTypes","title","subtitle","disabledExplanation","team","invalidTargets","arrayOf","ref","invalidLabel","error","disabled","bool","everyone","value","onChange","populations","options","selected","count","oneOfType","number","upload","templateLink","href","templatePreview","header","rows","dropzone","description","browse","dropLabel","loadingLabel","status","oneOf","onUpload","individuals","placeholder","suggestions","onSearch","onAdd","total"],"sources":["../../../src/organism/assignment-audience/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\n// Each file row resolves to one of four statuses. A never-connected account is `valid` and added\n// with no warning; a deactivated account is `inactive`, skipped and reported.\nexport const STATUSES = ['valid', 'unknown', 'ambiguous', 'inactive'] as const;\nexport type UploadRowStatus = typeof STATUSES[number];\n\nconst labelsByStatus = PropTypes.shape({\n valid: PropTypes.string,\n unknown: PropTypes.string,\n ambiguous: PropTypes.string,\n inactive: PropTypes.string\n});\n\nconst fileType = PropTypes.shape({\n name: PropTypes.string,\n detail: PropTypes.string\n});\n\nexport const UploadResultPropTypes = {\n file: fileType,\n // The four count labels, formatted by the app, e.g. {valid: '201 valid', unknown: '6 unknown'}\n summary: labelsByStatus,\n keptLabel: PropTypes.string,\n // The logins not kept, with their reason, as a file the app builds: offered only when some are\n report: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onDownload: PropTypes.func.isRequired\n }),\n removeLabel: PropTypes.string,\n onRemove: PropTypes.func\n};\n\nconst learnerType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n login: PropTypes.string.isRequired\n});\n\nconst AssignmentAudiencePropTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n disabledExplanation: PropTypes.string,\n team: PropTypes.shape({\n label: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired\n }),\n invalidTargets: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n onRemove: PropTypes.func.isRequired\n })\n ),\n invalidLabel: PropTypes.string,\n error: PropTypes.string,\n disabled: PropTypes.bool,\n everyone: PropTypes.shape({\n title: PropTypes.string,\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n // Receives the new boolean\n onChange: PropTypes.func.isRequired\n }),\n populations: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string,\n label: PropTypes.string,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n // The population's learner count, formatted by the app, shown on its chip\n count: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n })\n ).isRequired,\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Managers FR »\n removeLabel: PropTypes.string,\n // Receives the selected options, with selected: true\n onChange: PropTypes.func.isRequired\n }),\n upload: PropTypes.shape({\n // The file line and the result, once the file is checked\n ...UploadResultPropTypes,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n templateLink: PropTypes.shape({\n label: PropTypes.string,\n href: PropTypes.string\n }),\n // A sample of the expected file, shown left of the upload: a header and example values\n templatePreview: PropTypes.shape({\n header: PropTypes.string.isRequired,\n rows: PropTypes.arrayOf(PropTypes.string)\n }),\n // The Coorpmanager uploader's texts: the hint, the button, the drop text, the loader text\n dropzone: PropTypes.shape({\n description: PropTypes.string,\n browse: PropTypes.string,\n dropLabel: PropTypes.string,\n loadingLabel: PropTypes.string\n }),\n status: PropTypes.oneOf(['idle', 'loading', 'done', 'error']).isRequired,\n error: PropTypes.string,\n // Receives the first File. Parsing and login resolution belong to the consumer.\n onUpload: PropTypes.func.isRequired\n }),\n individuals: PropTypes.shape({\n title: PropTypes.string,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n suggestions: PropTypes.arrayOf(learnerType),\n selected: PropTypes.arrayOf(learnerType),\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Camille Durand »\n removeLabel: PropTypes.string,\n // Receives the query, searched by name or login\n onSearch: PropTypes.func.isRequired,\n // Receives the original {id, label, login} suggestion\n onAdd: PropTypes.func.isRequired,\n // Receives the learner id\n onRemove: PropTypes.func.isRequired\n }),\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n detail: PropTypes.string\n })\n};\n\nexport default AssignmentAudiencePropTypes;\n\ntype LabelsByStatus = Partial<Record<UploadRowStatus, string>>;\n\nexport type UploadResultProps = {\n file?: {name?: string; detail?: string};\n summary?: LabelsByStatus;\n keptLabel?: string;\n report?: {label: string; onDownload: () => void};\n removeLabel?: string;\n onRemove?: () => void;\n};\n\nexport type PopulationOption = {\n name: string;\n value: string;\n selected: boolean;\n count?: string | number;\n};\n\nexport type Learner = {\n id: string;\n label: string;\n login: string;\n};\n\nexport type AssignmentAudienceProps = {\n title: string;\n subtitle?: string;\n disabledExplanation?: string;\n team?: {label: string; name: string};\n invalidTargets?: Array<{ref: string; label: string; onRemove: () => void}>;\n invalidLabel?: string;\n error?: string;\n disabled?: boolean;\n everyone?: {\n title?: string;\n label: string;\n value: boolean;\n onChange: (value: boolean) => void;\n };\n populations?: {\n title?: string;\n subtitle?: string;\n label?: string;\n options: PopulationOption[];\n removeLabel?: string;\n onChange: (selected: PopulationOption[]) => void;\n };\n upload?: UploadResultProps & {\n title?: string;\n subtitle?: string;\n templateLink?: {label?: string; href?: string};\n templatePreview?: {header: string; rows?: string[]};\n dropzone?: {\n description?: string;\n browse?: string;\n dropLabel?: string;\n loadingLabel?: string;\n };\n status: 'idle' | 'loading' | 'done' | 'error';\n error?: string;\n onUpload: (file: File) => void;\n };\n individuals?: {\n title?: string;\n placeholder?: string;\n value?: string;\n suggestions?: Learner[];\n selected?: Learner[];\n removeLabel?: string;\n onSearch: (query: string) => void;\n onAdd: (learner: Learner) => void;\n onRemove: (id: string) => void;\n };\n total?: {label: string; detail?: string};\n};\n\nexport type AssignmentAudiencePropsFixture = {props: AssignmentAudienceProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;;AAElC;AACA;AACA,OAAO,MAAMC,QAAQ,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,CAAU;AAG9E,MAAMC,cAAc,GAAGF,SAAS,CAACG,KAAK,CAAC;EACrCC,KAAK,EAAEJ,SAAS,CAACK,MAAM;EACvBC,OAAO,EAAEN,SAAS,CAACK,MAAM;EACzBE,SAAS,EAAEP,SAAS,CAACK,MAAM;EAC3BG,QAAQ,EAAER,SAAS,CAACK;AACtB,CAAC,CAAC;AAEF,MAAMI,QAAQ,GAAGT,SAAS,CAACG,KAAK,CAAC;EAC/BO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AAK,EAAEjE,SAAS,CAACoB,IAAI,CAACF,UAAU;IAChC;IACAI,QAAQ,EAAEtB,SAAS,CAACoB,IAAI,CAACF;EAC3B,CAAC,CAAC;EACFgD,KAAK,EAAElE,SAAS,CAACG,KAAK,CAAC;IACrBc,KAAK,EAAEjB,SAAS,CAACK,MAAM,CAACa,UAAU;IAClCP,MAAM,EAAEX,SAAS,CAACK;EACpB,CAAC;AACH,CAAC;AAED,eAAeqB,2BAA2B","ignoreList":[]}
|
|
@@ -85,6 +85,11 @@ declare namespace BrandLearningPriorities {
|
|
|
85
85
|
size: PropTypes.Requireable<number>;
|
|
86
86
|
wrapperSize: PropTypes.Requireable<number>;
|
|
87
87
|
}>>;
|
|
88
|
+
imageOverlay: PropTypes.Requireable<string>;
|
|
89
|
+
contentBadge: PropTypes.Requireable<PropTypes.InferProps<{
|
|
90
|
+
category: PropTypes.Requireable<string>;
|
|
91
|
+
label: PropTypes.Requireable<string>;
|
|
92
|
+
}>>;
|
|
88
93
|
image: PropTypes.Requireable<string>;
|
|
89
94
|
checkbox: PropTypes.Requireable<PropTypes.InferProps<{
|
|
90
95
|
value: PropTypes.Requireable<string>;
|
|
@@ -102,6 +107,7 @@ declare namespace BrandLearningPriorities {
|
|
|
102
107
|
customStyle: PropTypes.Requireable<{
|
|
103
108
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
104
109
|
}>;
|
|
110
|
+
className: PropTypes.Requireable<string>;
|
|
105
111
|
}>>;
|
|
106
112
|
}> | PropTypes.InferProps<{
|
|
107
113
|
title: PropTypes.Validator<string>;
|
|
@@ -130,6 +136,12 @@ declare namespace BrandLearningPriorities {
|
|
|
130
136
|
color: PropTypes.Requireable<string>;
|
|
131
137
|
theme: PropTypes.Requireable<string>;
|
|
132
138
|
className: PropTypes.Requireable<string>;
|
|
139
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
140
|
+
label: PropTypes.Validator<string>;
|
|
141
|
+
value: PropTypes.Validator<string>;
|
|
142
|
+
}> | null | undefined)[]>;
|
|
143
|
+
value: PropTypes.Requireable<string>;
|
|
144
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
133
145
|
list: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
134
146
|
color: PropTypes.Requireable<string>;
|
|
135
147
|
value: PropTypes.Validator<string>;
|
|
@@ -26,6 +26,12 @@ declare namespace BrandTable {
|
|
|
26
26
|
const rows: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
27
27
|
fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
|
|
28
28
|
icon: PropTypes.Requireable<string>;
|
|
29
|
+
title: PropTypes.Requireable<string>;
|
|
30
|
+
text: PropTypes.Requireable<string>;
|
|
31
|
+
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
32
|
+
status: PropTypes.Requireable<string>;
|
|
33
|
+
label: PropTypes.Validator<string>;
|
|
34
|
+
}> | null | undefined)[]>;
|
|
29
35
|
}> | null | undefined> | null | undefined)[]>;
|
|
30
36
|
editHref: PropTypes.Requireable<string>;
|
|
31
37
|
highlighted: PropTypes.Requireable<boolean>;
|
|
@@ -34,6 +40,8 @@ declare namespace BrandTable {
|
|
|
34
40
|
title: PropTypes.Validator<string>;
|
|
35
41
|
info: PropTypes.Requireable<string>;
|
|
36
42
|
filtered: PropTypes.Requireable<boolean>;
|
|
43
|
+
order: PropTypes.Requireable<string>;
|
|
44
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
37
45
|
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
38
46
|
title: PropTypes.Validator<string>;
|
|
39
47
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContentPropsType } from './types';
|
|
3
|
+
export declare const buildButtonProps: (button: {
|
|
4
|
+
label: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}) => {
|
|
8
|
+
type: string;
|
|
9
|
+
'aria-label': string;
|
|
10
|
+
'data-name': string;
|
|
11
|
+
hoverBackgroundColor: "#D6E6FF";
|
|
12
|
+
hoverColor: "#0061FF";
|
|
13
|
+
icon: {
|
|
14
|
+
position: string;
|
|
15
|
+
faIcon: {
|
|
16
|
+
name: string;
|
|
17
|
+
color: "#0061FF";
|
|
18
|
+
size: number;
|
|
19
|
+
customStyle: {
|
|
20
|
+
padding: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
customStyle: {
|
|
25
|
+
width: string;
|
|
26
|
+
backgroundColor: "#f1f6fe";
|
|
27
|
+
color: "#0061FF";
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
fontWeight: number;
|
|
30
|
+
};
|
|
31
|
+
label: string;
|
|
32
|
+
onClick?: (() => void) | undefined;
|
|
33
|
+
disabled?: boolean | undefined;
|
|
34
|
+
};
|
|
35
|
+
declare const ContentSelectionList: {
|
|
36
|
+
({ title, subtitle, button, list: { title: listTitle, items, search, emptyResult }, actionButtons, checkboxWithTitle: checkboxWithTitleProps, readOnly, isFetching, error, hiddenLabel }: ContentPropsType): JSX.Element;
|
|
37
|
+
propTypes: {
|
|
38
|
+
title: import("prop-types").Validator<string>;
|
|
39
|
+
subtitle: import("prop-types").Requireable<string>;
|
|
40
|
+
button: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
41
|
+
label: import("prop-types").Validator<string>;
|
|
42
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
43
|
+
}>>>;
|
|
44
|
+
list: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
45
|
+
title: import("prop-types").Requireable<string>;
|
|
46
|
+
items: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
47
|
+
hidden: import("prop-types").Requireable<boolean>;
|
|
48
|
+
hint: import("prop-types").Requireable<string>;
|
|
49
|
+
ref: import("prop-types").Validator<string>;
|
|
50
|
+
title: import("prop-types").Validator<string>;
|
|
51
|
+
subtitle: import("prop-types").Validator<string>;
|
|
52
|
+
image: import("prop-types").Validator<string>;
|
|
53
|
+
tags: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
54
|
+
label: import("prop-types").Validator<string>;
|
|
55
|
+
iconName: import("prop-types").Validator<string>;
|
|
56
|
+
}>>>;
|
|
57
|
+
checkbox: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
58
|
+
checked: import("prop-types").Validator<boolean>;
|
|
59
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
60
|
+
}>>>;
|
|
61
|
+
deleteButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
62
|
+
label: import("prop-types").Requireable<string>;
|
|
63
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
64
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
65
|
+
}>>;
|
|
66
|
+
}>>[]>;
|
|
67
|
+
search: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
68
|
+
value: import("prop-types").Validator<string>;
|
|
69
|
+
placeholder: import("prop-types").Validator<string>;
|
|
70
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
71
|
+
}>>;
|
|
72
|
+
emptyResult: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
73
|
+
title: import("prop-types").Validator<string>;
|
|
74
|
+
description: import("prop-types").Validator<string>;
|
|
75
|
+
}>>;
|
|
76
|
+
checkbox: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
77
|
+
title: import("prop-types").Validator<string>;
|
|
78
|
+
checked: import("prop-types").Validator<boolean>;
|
|
79
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
80
|
+
}>>;
|
|
81
|
+
}>>>;
|
|
82
|
+
error: import("prop-types").Requireable<string>;
|
|
83
|
+
hiddenLabel: import("prop-types").Requireable<string>;
|
|
84
|
+
isFetching: import("prop-types").Requireable<boolean>;
|
|
85
|
+
actionButtons: import("prop-types").Requireable<(object | null | undefined)[]>;
|
|
86
|
+
checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
87
|
+
title: import("prop-types").Requireable<string>;
|
|
88
|
+
checked: import("prop-types").Requireable<boolean>;
|
|
89
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
90
|
+
}>>;
|
|
91
|
+
readOnly: import("prop-types").Requireable<boolean>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export default ContentSelectionList;
|
|
95
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-selection-list/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAC,gBAAgB,EAAqD,MAAM,SAAS,CAAC;AAE7F,eAAO,MAAM,gBAAgB,WAAY;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;;;;;;;;;;;;;;;;;;;;;;;WAHQ,MAAM;qBACG,IAAI;;CAyBpB,CAAC;AA+DH,QAAA,MAAM,oBAAoB;8LAWvB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiElB,CAAC;AAIF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import _map from "lodash/fp/map";
|
|
2
|
+
import _isEmpty from "lodash/fp/isEmpty";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import classnames from 'classnames';
|
|
5
|
+
import ListItems from '../list-items';
|
|
6
|
+
import Title from '../../atom/title';
|
|
7
|
+
import Notification from '../../atom/notification';
|
|
8
|
+
import { COLORS } from '../../variables/colors';
|
|
9
|
+
import { contentContainer } from '../skill-edition/styles';
|
|
10
|
+
import style from './style.css';
|
|
11
|
+
import { ContentSelectionListPropTypes } from './types';
|
|
12
|
+
export const buildButtonProps = button => ({
|
|
13
|
+
...button,
|
|
14
|
+
type: 'primary',
|
|
15
|
+
'aria-label': button.label,
|
|
16
|
+
'data-name': `button-${button.label}`,
|
|
17
|
+
hoverBackgroundColor: COLORS.primary_100,
|
|
18
|
+
hoverColor: COLORS.cm_primary_blue,
|
|
19
|
+
icon: {
|
|
20
|
+
position: 'left',
|
|
21
|
+
faIcon: {
|
|
22
|
+
name: 'plus',
|
|
23
|
+
color: COLORS.cm_primary_blue,
|
|
24
|
+
size: 14,
|
|
25
|
+
customStyle: {
|
|
26
|
+
padding: 0
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
customStyle: {
|
|
31
|
+
width: 'fit-content',
|
|
32
|
+
backgroundColor: COLORS.cm_blue_50,
|
|
33
|
+
color: COLORS.cm_primary_blue,
|
|
34
|
+
borderRadius: '12px',
|
|
35
|
+
fontWeight: 600
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const buildContentItem = (readOnly, hiddenLabel) => ({
|
|
39
|
+
ref,
|
|
40
|
+
title,
|
|
41
|
+
subtitle,
|
|
42
|
+
image,
|
|
43
|
+
tags: {
|
|
44
|
+
label,
|
|
45
|
+
iconName
|
|
46
|
+
},
|
|
47
|
+
checkbox,
|
|
48
|
+
deleteButton,
|
|
49
|
+
hidden,
|
|
50
|
+
hint
|
|
51
|
+
}) => {
|
|
52
|
+
return {
|
|
53
|
+
...(readOnly ? {} : {
|
|
54
|
+
secondButtonLink: {
|
|
55
|
+
...deleteButton,
|
|
56
|
+
'data-name': `button-${deleteButton?.label}`,
|
|
57
|
+
type: 'primary',
|
|
58
|
+
customStyle: {
|
|
59
|
+
width: 'fit-content',
|
|
60
|
+
backgroundColor: 'transparent'
|
|
61
|
+
},
|
|
62
|
+
hoverBackgroundColor: COLORS.cm_grey_100,
|
|
63
|
+
icon: {
|
|
64
|
+
position: 'left',
|
|
65
|
+
faIcon: {
|
|
66
|
+
name: 'trash',
|
|
67
|
+
color: COLORS.neutral_500,
|
|
68
|
+
size: 16
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}),
|
|
73
|
+
imageOverlay: hidden ? 'hidden' : undefined,
|
|
74
|
+
contentBadge: hidden ? {
|
|
75
|
+
category: 'hidden',
|
|
76
|
+
label: hiddenLabel
|
|
77
|
+
} : undefined,
|
|
78
|
+
details: hint,
|
|
79
|
+
id: ref,
|
|
80
|
+
title,
|
|
81
|
+
subtitle,
|
|
82
|
+
image,
|
|
83
|
+
tags: [{
|
|
84
|
+
label,
|
|
85
|
+
type: 'default',
|
|
86
|
+
icon: {
|
|
87
|
+
iconName,
|
|
88
|
+
preset: 's',
|
|
89
|
+
customStyle: {
|
|
90
|
+
padding: 0
|
|
91
|
+
},
|
|
92
|
+
position: 'left'
|
|
93
|
+
}
|
|
94
|
+
}],
|
|
95
|
+
checkbox: readOnly ? undefined : checkbox
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
const ContentSelectionList = ({
|
|
99
|
+
title,
|
|
100
|
+
subtitle,
|
|
101
|
+
button,
|
|
102
|
+
list: {
|
|
103
|
+
title: listTitle,
|
|
104
|
+
items,
|
|
105
|
+
search,
|
|
106
|
+
emptyResult
|
|
107
|
+
},
|
|
108
|
+
actionButtons,
|
|
109
|
+
checkboxWithTitle: checkboxWithTitleProps,
|
|
110
|
+
readOnly = false,
|
|
111
|
+
isFetching = false,
|
|
112
|
+
error,
|
|
113
|
+
hiddenLabel
|
|
114
|
+
}) => {
|
|
115
|
+
const buttonProps = buildButtonProps(button);
|
|
116
|
+
const titleProps = {
|
|
117
|
+
type: 'form-group',
|
|
118
|
+
title,
|
|
119
|
+
subtitle,
|
|
120
|
+
button: !readOnly ? buttonProps : undefined,
|
|
121
|
+
required: true
|
|
122
|
+
};
|
|
123
|
+
const listProps = {
|
|
124
|
+
title: listTitle,
|
|
125
|
+
'aria-label': 'content list items',
|
|
126
|
+
content: {
|
|
127
|
+
...(!_isEmpty(emptyResult) && {
|
|
128
|
+
emptyResult: {
|
|
129
|
+
...emptyResult,
|
|
130
|
+
button: buttonProps
|
|
131
|
+
}
|
|
132
|
+
}),
|
|
133
|
+
items: _map(buildContentItem(readOnly, hiddenLabel), items),
|
|
134
|
+
type: 'list'
|
|
135
|
+
},
|
|
136
|
+
search: search ? {
|
|
137
|
+
...search,
|
|
138
|
+
theme: 'coorpmanager',
|
|
139
|
+
// Keep search interactive even in readOnly mode
|
|
140
|
+
disabled: false
|
|
141
|
+
} : undefined,
|
|
142
|
+
actionButtons: readOnly ? [] : _map(actionButton => ({
|
|
143
|
+
...actionButton,
|
|
144
|
+
customStyle: {
|
|
145
|
+
fontWeight: '600',
|
|
146
|
+
borderRadius: '12px',
|
|
147
|
+
width: 'auto'
|
|
148
|
+
}
|
|
149
|
+
}), actionButtons),
|
|
150
|
+
checkboxWithTitle: readOnly ? undefined : {
|
|
151
|
+
...checkboxWithTitleProps,
|
|
152
|
+
name: checkboxWithTitleProps?.title,
|
|
153
|
+
'aria-label': checkboxWithTitleProps?.title,
|
|
154
|
+
'data-name': checkboxWithTitleProps?.title,
|
|
155
|
+
className: style.checkboxWithTitle,
|
|
156
|
+
icon: {
|
|
157
|
+
iconName: 'minus',
|
|
158
|
+
iconColor: 'white',
|
|
159
|
+
preset: 's'
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
isFetching
|
|
163
|
+
};
|
|
164
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
165
|
+
className: classnames(contentContainer, style.list)
|
|
166
|
+
}, /*#__PURE__*/React.createElement(Title, titleProps), error ? /*#__PURE__*/React.createElement("div", {
|
|
167
|
+
role: "alert"
|
|
168
|
+
}, /*#__PURE__*/React.createElement(Notification, {
|
|
169
|
+
type: "error",
|
|
170
|
+
message: error
|
|
171
|
+
})) : null, /*#__PURE__*/React.createElement(ListItems, listProps));
|
|
172
|
+
};
|
|
173
|
+
ContentSelectionList.propTypes = process.env.NODE_ENV !== "production" ? ContentSelectionListPropTypes : {};
|
|
174
|
+
export default ContentSelectionList;
|
|
175
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","classnames","ListItems","Title","Notification","COLORS","contentContainer","style","ContentSelectionListPropTypes","buildButtonProps","button","type","label","hoverBackgroundColor","primary_100","hoverColor","cm_primary_blue","icon","position","faIcon","name","color","size","customStyle","padding","width","backgroundColor","cm_blue_50","borderRadius","fontWeight","buildContentItem","readOnly","hiddenLabel","ref","title","subtitle","image","tags","iconName","checkbox","deleteButton","hidden","hint","secondButtonLink","cm_grey_100","neutral_500","imageOverlay","undefined","contentBadge","category","details","id","preset","ContentSelectionList","list","listTitle","items","search","emptyResult","actionButtons","checkboxWithTitle","checkboxWithTitleProps","isFetching","error","buttonProps","titleProps","required","listProps","content","_isEmpty","_map","theme","disabled","actionButton","className","iconColor","createElement","role","message","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/content-selection-list/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {isEmpty, map} from 'lodash/fp';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport Notification from '../../atom/notification';\nimport {COLORS} from '../../variables/colors';\nimport {contentContainer} from '../skill-edition/styles';\nimport style from './style.css';\nimport {ContentPropsType, ContentListItemType, ContentSelectionListPropTypes} from './types';\n\nexport const buildButtonProps = (button: {\n label: string;\n onClick?: () => void;\n disabled?: boolean;\n}) => ({\n ...button,\n type: 'primary',\n 'aria-label': button.label,\n 'data-name': `button-${button.label}`,\n hoverBackgroundColor: COLORS.primary_100,\n hoverColor: COLORS.cm_primary_blue,\n icon: {\n position: 'left',\n faIcon: {\n name: 'plus',\n color: COLORS.cm_primary_blue,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n width: 'fit-content',\n backgroundColor: COLORS.cm_blue_50,\n color: COLORS.cm_primary_blue,\n borderRadius: '12px',\n fontWeight: 600\n }\n});\n\nconst buildContentItem =\n (readOnly: boolean, hiddenLabel?: string) =>\n ({\n ref,\n title,\n subtitle,\n image,\n tags: {label, iconName},\n checkbox,\n deleteButton,\n hidden,\n hint\n }: ContentListItemType) => {\n return {\n ...(readOnly\n ? {}\n : {\n secondButtonLink: {\n ...deleteButton,\n 'data-name': `button-${deleteButton?.label}`,\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.neutral_500,\n size: 16\n }\n }\n }\n }),\n imageOverlay: hidden ? 'hidden' : undefined,\n contentBadge: hidden ? {category: 'hidden', label: hiddenLabel} : undefined,\n details: hint,\n id: ref,\n title,\n subtitle,\n image,\n tags: [\n {\n label,\n type: 'default',\n icon: {\n iconName,\n preset: 's',\n customStyle: {\n padding: 0\n },\n position: 'left'\n }\n }\n ],\n checkbox: readOnly ? undefined : checkbox\n };\n };\n\nconst ContentSelectionList = ({\n title,\n subtitle,\n button,\n list: {title: listTitle, items, search, emptyResult},\n actionButtons,\n checkboxWithTitle: checkboxWithTitleProps,\n readOnly = false,\n isFetching = false,\n error,\n hiddenLabel\n}: ContentPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const titleProps = {\n type: 'form-group',\n title,\n subtitle,\n button: !readOnly ? buttonProps : undefined,\n required: true\n };\n\n const listProps = {\n title: listTitle,\n 'aria-label': 'content list items',\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: buttonProps}}),\n items: map(buildContentItem(readOnly, hiddenLabel), items),\n type: 'list'\n },\n search: search\n ? {\n ...search,\n theme: 'coorpmanager',\n // Keep search interactive even in readOnly mode\n disabled: false\n }\n : undefined,\n actionButtons: readOnly\n ? []\n : map(\n actionButton => ({\n ...actionButton,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px',\n width: 'auto'\n }\n }),\n actionButtons\n ),\n\n checkboxWithTitle: readOnly\n ? undefined\n : {\n ...checkboxWithTitleProps,\n name: checkboxWithTitleProps?.title,\n 'aria-label': checkboxWithTitleProps?.title,\n 'data-name': checkboxWithTitleProps?.title,\n className: style.checkboxWithTitle,\n icon: {iconName: 'minus', iconColor: 'white', preset: 's'}\n },\n isFetching\n };\n\n return (\n <div className={classnames(contentContainer, style.list)}>\n <Title {...titleProps} />\n {error ? (\n <div role=\"alert\">\n <Notification type=\"error\" message={error} />\n </div>\n ) : null}\n <ListItems {...listProps} />\n </div>\n );\n};\n\nContentSelectionList.propTypes = ContentSelectionListPropTypes;\n\nexport default ContentSelectionList;\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AAEnC,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,YAAY,MAAM,yBAAyB;AAClD,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,SAAQC,gBAAgB,QAAO,yBAAyB;AACxD,OAAOC,KAAK,MAAM,aAAa;AAC/B,SAA+CC,6BAA6B,QAAO,SAAS;AAE5F,OAAO,MAAMC,gBAAgB,GAAIC,MAIhC,KAAM;EACL,GAAGA,MAAM;EACTC,IAAI,EAAE,SAAS;EACf,YAAY,EAAED,MAAM,CAACE,KAAK;EAC1B,WAAW,EAAE,UAAUF,MAAM,CAACE,KAAK,EAAE;EACrCC,oBAAoB,EAAER,MAAM,CAACS,WAAW;EACxCC,UAAU,EAAEV,MAAM,CAACW,eAAe;EAClCC,IAAI,EAAE;IACJC,QAAQ,EAAE,MAAM;IAChBC,MAAM,EAAE;MACNC,IAAI,EAAE,MAAM;MACZC,KAAK,EAAEhB,MAAM,CAACW,eAAe;MAC7BM,IAAI,EAAE,EAAE;MACRC,WAAW,EAAE;QAACC,OAAO,EAAE;MAAC;IAC1B;EACF,CAAC;EACDD,WAAW,EAAE;IACXE,KAAK,EAAE,aA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,KAAK;MACf,GAAGA,YAAY;MACflD,WAAW,EAAE;QACXM,UAAU,EAAE,KAAK;QACjBD,YAAY,EAAE,MAAM;QACpBH,KAAK,EAAE;MACT;IACF,CAAC,CAAC,EACFkC,aACF,CAAC;IAELC,iBAAiB,EAAE7B,QAAQ,GACvBgB,SAAS,GACT;MACE,GAAGc,sBAAsB;MACzBzC,IAAI,EAAEyC,sBAAsB,EAAE3B,KAAK;MACnC,YAAY,EAAE2B,sBAAsB,EAAE3B,KAAK;MAC3C,WAAW,EAAE2B,sBAAsB,EAAE3B,KAAK;MAC1CwC,SAAS,EAAEnE,KAAK,CAACqD,iBAAiB;MAClC3C,IAAI,EAAE;QAACqB,QAAQ,EAAE,OAAO;QAAEqC,SAAS,EAAE,OAAO;QAAEvB,MAAM,EAAE;MAAG;IAC3D,CAAC;IACLU;EACF,CAAC;EAED,oBACE9D,KAAA,CAAA4E,aAAA;IAAKF,SAAS,EAAEzE,UAAU,CAACK,gBAAgB,EAAEC,KAAK,CAAC+C,IAAI;EAAE,gBACvDtD,KAAA,CAAA4E,aAAA,CAACzE,KAAK,EAAK8D,UAAa,CAAC,EACxBF,KAAK,gBACJ/D,KAAA,CAAA4E,aAAA;IAAKC,IAAI,EAAC;EAAO,gBACf7E,KAAA,CAAA4E,aAAA,CAACxE,YAAY;IAACO,IAAI,EAAC,OAAO;IAACmE,OAAO,EAAEf;EAAM,CAAE,CACzC,CAAC,GACJ,IAAI,eACR/D,KAAA,CAAA4E,aAAA,CAAC1E,SAAS,EAAKiE,SAAY,CACxB,CAAC;AAEV,CAAC;AAEDd,oBAAoB,CAAC0B,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG1E,6BAA6B;AAE9D,eAAe6C,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
3
|
+
export declare const ContentSelectionListPropTypes: {
|
|
4
|
+
title: PropTypes.Validator<string>;
|
|
5
|
+
subtitle: PropTypes.Requireable<string>;
|
|
6
|
+
button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
7
|
+
label: PropTypes.Validator<string>;
|
|
8
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
+
}>>>;
|
|
10
|
+
list: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
11
|
+
title: PropTypes.Requireable<string>;
|
|
12
|
+
items: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
13
|
+
hidden: PropTypes.Requireable<boolean>;
|
|
14
|
+
hint: PropTypes.Requireable<string>;
|
|
15
|
+
ref: PropTypes.Validator<string>;
|
|
16
|
+
title: PropTypes.Validator<string>;
|
|
17
|
+
subtitle: PropTypes.Validator<string>;
|
|
18
|
+
image: PropTypes.Validator<string>;
|
|
19
|
+
tags: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
20
|
+
label: PropTypes.Validator<string>;
|
|
21
|
+
iconName: PropTypes.Validator<string>;
|
|
22
|
+
}>>>;
|
|
23
|
+
checkbox: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
24
|
+
checked: PropTypes.Validator<boolean>;
|
|
25
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
26
|
+
}>>>;
|
|
27
|
+
deleteButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
28
|
+
label: PropTypes.Requireable<string>;
|
|
29
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
30
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
}>>;
|
|
32
|
+
}>>[]>;
|
|
33
|
+
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
34
|
+
value: PropTypes.Validator<string>;
|
|
35
|
+
placeholder: PropTypes.Validator<string>;
|
|
36
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
37
|
+
}>>;
|
|
38
|
+
emptyResult: PropTypes.Requireable<PropTypes.InferProps<{
|
|
39
|
+
title: PropTypes.Validator<string>;
|
|
40
|
+
description: PropTypes.Validator<string>;
|
|
41
|
+
}>>;
|
|
42
|
+
checkbox: PropTypes.Requireable<PropTypes.InferProps<{
|
|
43
|
+
title: PropTypes.Validator<string>;
|
|
44
|
+
checked: PropTypes.Validator<boolean>;
|
|
45
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
46
|
+
}>>;
|
|
47
|
+
}>>>;
|
|
48
|
+
error: PropTypes.Requireable<string>;
|
|
49
|
+
hiddenLabel: PropTypes.Requireable<string>;
|
|
50
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
51
|
+
actionButtons: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
52
|
+
checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
53
|
+
title: PropTypes.Requireable<string>;
|
|
54
|
+
checked: PropTypes.Requireable<boolean>;
|
|
55
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
|
+
}>>;
|
|
57
|
+
readOnly: PropTypes.Requireable<boolean>;
|
|
58
|
+
};
|
|
59
|
+
export declare type ContentListItemType = {
|
|
60
|
+
hidden?: boolean;
|
|
61
|
+
hint?: string;
|
|
62
|
+
ref: string;
|
|
63
|
+
title: string;
|
|
64
|
+
subtitle: string;
|
|
65
|
+
image: string;
|
|
66
|
+
tags: {
|
|
67
|
+
label: string;
|
|
68
|
+
iconName: string;
|
|
69
|
+
};
|
|
70
|
+
checkbox: {
|
|
71
|
+
checked: boolean;
|
|
72
|
+
onChange: (value: boolean) => void;
|
|
73
|
+
};
|
|
74
|
+
deleteButton?: ButtonLinkProps;
|
|
75
|
+
};
|
|
76
|
+
export declare type CheckboxWithTitleProps = {
|
|
77
|
+
title?: string;
|
|
78
|
+
checked?: boolean;
|
|
79
|
+
onChange?: (value: boolean) => void;
|
|
80
|
+
};
|
|
81
|
+
export declare type ContentPropsType = {
|
|
82
|
+
error?: string;
|
|
83
|
+
hiddenLabel?: string;
|
|
84
|
+
title: string;
|
|
85
|
+
subtitle?: string;
|
|
86
|
+
button: {
|
|
87
|
+
label: string;
|
|
88
|
+
onClick: () => void;
|
|
89
|
+
};
|
|
90
|
+
list: {
|
|
91
|
+
title?: string;
|
|
92
|
+
items?: ContentListItemType[];
|
|
93
|
+
search?: {
|
|
94
|
+
value: string;
|
|
95
|
+
placeholder: string;
|
|
96
|
+
onChange: (value: string) => void;
|
|
97
|
+
};
|
|
98
|
+
emptyResult?: {
|
|
99
|
+
title: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
checkbox?: {
|
|
103
|
+
title: string;
|
|
104
|
+
checked: boolean;
|
|
105
|
+
onChange: (value: boolean) => void;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
actionButtons?: ButtonLinkProps[];
|
|
109
|
+
checkboxWithTitle?: CheckboxWithTitleProps;
|
|
110
|
+
isFetching?: boolean;
|
|
111
|
+
readOnly?: boolean;
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-selection-list/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDzC,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE;QACJ,KAAK,EAAE,MAA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AE,sBAAsB,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export const ContentSelectionListPropTypes = {
|
|
3
|
+
title: PropTypes.string.isRequired,
|
|
4
|
+
subtitle: PropTypes.string,
|
|
5
|
+
button: PropTypes.shape({
|
|
6
|
+
label: PropTypes.string.isRequired,
|
|
7
|
+
onClick: PropTypes.func.isRequired
|
|
8
|
+
}).isRequired,
|
|
9
|
+
list: PropTypes.shape({
|
|
10
|
+
title: PropTypes.string,
|
|
11
|
+
items: PropTypes.arrayOf(PropTypes.shape({
|
|
12
|
+
hidden: PropTypes.bool,
|
|
13
|
+
hint: PropTypes.string,
|
|
14
|
+
ref: PropTypes.string.isRequired,
|
|
15
|
+
title: PropTypes.string.isRequired,
|
|
16
|
+
subtitle: PropTypes.string.isRequired,
|
|
17
|
+
image: PropTypes.string.isRequired,
|
|
18
|
+
tags: PropTypes.shape({
|
|
19
|
+
label: PropTypes.string.isRequired,
|
|
20
|
+
iconName: PropTypes.string.isRequired
|
|
21
|
+
}).isRequired,
|
|
22
|
+
checkbox: PropTypes.shape({
|
|
23
|
+
checked: PropTypes.bool.isRequired,
|
|
24
|
+
onChange: PropTypes.func.isRequired
|
|
25
|
+
}).isRequired,
|
|
26
|
+
deleteButton: PropTypes.shape({
|
|
27
|
+
label: PropTypes.string,
|
|
28
|
+
'aria-label': PropTypes.string,
|
|
29
|
+
onClick: PropTypes.func
|
|
30
|
+
})
|
|
31
|
+
}).isRequired),
|
|
32
|
+
search: PropTypes.shape({
|
|
33
|
+
value: PropTypes.string.isRequired,
|
|
34
|
+
placeholder: PropTypes.string.isRequired,
|
|
35
|
+
onChange: PropTypes.func.isRequired
|
|
36
|
+
}),
|
|
37
|
+
emptyResult: PropTypes.shape({
|
|
38
|
+
title: PropTypes.string.isRequired,
|
|
39
|
+
description: PropTypes.string.isRequired
|
|
40
|
+
}),
|
|
41
|
+
checkbox: PropTypes.shape({
|
|
42
|
+
title: PropTypes.string.isRequired,
|
|
43
|
+
checked: PropTypes.bool.isRequired,
|
|
44
|
+
onChange: PropTypes.func.isRequired
|
|
45
|
+
})
|
|
46
|
+
}).isRequired,
|
|
47
|
+
error: PropTypes.string,
|
|
48
|
+
hiddenLabel: PropTypes.string,
|
|
49
|
+
isFetching: PropTypes.bool,
|
|
50
|
+
actionButtons: PropTypes.arrayOf(PropTypes.object),
|
|
51
|
+
checkboxWithTitle: PropTypes.shape({
|
|
52
|
+
title: PropTypes.string,
|
|
53
|
+
checked: PropTypes.bool,
|
|
54
|
+
onChange: PropTypes.func
|
|
55
|
+
}),
|
|
56
|
+
readOnly: PropTypes.bool
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","ContentSelectionListPropTypes","title","string","isRequired","subtitle","button","shape","label","onClick","func","list","items","arrayOf","hidden","bool","hint","ref","image","tags","iconName","checkbox","checked","onChange","deleteButton","search","value","placeholder","emptyResult","description","error","hiddenLabel","isFetching","actionButtons","object","checkboxWithTitle","readOnly"],"sources":["../../../src/organism/content-selection-list/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\n\nexport const ContentSelectionListPropTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n button: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n }).isRequired,\n list: PropTypes.shape({\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.shape({\n hidden: PropTypes.bool,\n hint: PropTypes.string,\n ref: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n image: PropTypes.string.isRequired,\n tags: PropTypes.shape({\n label: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired\n }).isRequired,\n checkbox: PropTypes.shape({\n checked: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired\n }).isRequired,\n deleteButton: PropTypes.shape({\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n onClick: PropTypes.func\n })\n }).isRequired\n ),\n search: PropTypes.shape({\n value: PropTypes.string.isRequired,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func.isRequired\n }),\n emptyResult: PropTypes.shape({\n title: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired\n }),\n checkbox: PropTypes.shape({\n title: PropTypes.string.isRequired,\n checked: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired\n })\n }).isRequired,\n error: PropTypes.string,\n hiddenLabel: PropTypes.string,\n isFetching: PropTypes.bool,\n actionButtons: PropTypes.arrayOf(PropTypes.object),\n checkboxWithTitle: PropTypes.shape({\n title: PropTypes.string,\n checked: PropTypes.bool,\n onChange: PropTypes.func\n }),\n readOnly: PropTypes.bool\n};\n\nexport type ContentListItemType = {\n hidden?: boolean;\n hint?: string;\n ref: string;\n title: string;\n subtitle: string;\n image: string;\n tags: {\n label: string;\n iconName: string;\n };\n checkbox: {\n checked: boolean;\n onChange: (value: boolean) => void;\n };\n deleteButton?: ButtonLinkProps;\n};\n\nexport type CheckboxWithTitleProps = {\n title?: string;\n checked?: boolean;\n onChange?: (value: boolean) => void;\n};\n\nexport type ContentPropsType = {\n error?: string;\n hiddenLabel?: string;\n title: string;\n subtitle?: string;\n button: {\n label: string;\n onClick: () => void;\n };\n list: {\n title?: string;\n items?: ContentListItemType[];\n search?: {\n value: string;\n placeholder: string;\n onChange: (value: string) => void;\n };\n emptyResult?: {\n title: string;\n description: string;\n };\n checkbox?: {\n title: string;\n checked: boolean;\n onChange: (value: boolean) => void;\n };\n };\n actionButtons?: ButtonLinkProps[];\n checkboxWithTitle?: CheckboxWithTitleProps;\n isFetching?: boolean;\n readOnly?: boolean;\n};\n"],"mappings":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;QAC9BM,OAAO,EAAET,SAAS,CAACU;MACrB,CAAC;IACH,CAAC,CAAC,CAACN,UACL,CAAC;IACDqB,MAAM,EAAEzB,SAAS,CAACO,KAAK,CAAC;MACtBmB,KAAK,EAAE1B,SAAS,CAACG,MAAM,CAACC,UAAU;MAClCuB,WAAW,EAAE3B,SAAS,CAACG,MAAM,CAACC,UAAU;MACxCmB,QAAQ,EAAEvB,SAAS,CAACU,IAAI,CAACN;IAC3B,CAAC,CAAC;IACFwB,WAAW,EAAE5B,SAAS,CAACO,KAAK,CAAC;MAC3BL,KAAK,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;MAClCyB,WAAW,EAAE7B,SAAS,CAACG,MAAM,CAACC;IAChC,CAAC,CAAC;IACFiB,QAAQ,EAAErB,SAAS,CAACO,KAAK,CAAC;MACxBL,KAAK,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;MAClCkB,OAAO,EAAEtB,SAAS,CAACe,IAAI,CAACX,UAAU;MAClCmB,QAAQ,EAAEvB,SAAS,CAACU,IAAI,CAACN;IAC3B,CAAC;EACH,CAAC,CAAC,CAACA,UAAU;EACb0B,KAAK,EAAE9B,SAAS,CAACG,MAAM;EACvB4B,WAAW,EAAE/B,SAAS,CAACG,MAAM;EAC7B6B,UAAU,EAAEhC,SAAS,CAACe,IAAI;EAC1BkB,aAAa,EAAEjC,SAAS,CAACa,OAAO,CAACb,SAAS,CAACkC,MAAM,CAAC;EAClDC,iBAAiB,EAAEnC,SAAS,CAACO,KAAK,CAAC;IACjCL,KAAK,EAAEF,SAAS,CAACG,MAAM;IACvBmB,OAAO,EAAEtB,SAAS,CAACe,IAAI;IACvBQ,QAAQ,EAAEvB,SAAS,CAACU;EACtB,CAAC,CAAC;EACF0B,QAAQ,EAAEpC,SAAS,CAACe;AACtB,CAAC","ignoreList":[]}
|
|
@@ -153,6 +153,11 @@ declare const ContentSkillModal: {
|
|
|
153
153
|
size: import("prop-types").Requireable<number>;
|
|
154
154
|
wrapperSize: import("prop-types").Requireable<number>;
|
|
155
155
|
}>>;
|
|
156
|
+
imageOverlay: import("prop-types").Requireable<string>;
|
|
157
|
+
contentBadge: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
158
|
+
category: import("prop-types").Requireable<string>;
|
|
159
|
+
label: import("prop-types").Requireable<string>;
|
|
160
|
+
}>>;
|
|
156
161
|
image: import("prop-types").Requireable<string>;
|
|
157
162
|
checkbox: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
158
163
|
value: import("prop-types").Requireable<string>;
|
|
@@ -170,6 +175,7 @@ declare const ContentSkillModal: {
|
|
|
170
175
|
customStyle: import("prop-types").Requireable<{
|
|
171
176
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
172
177
|
}>;
|
|
178
|
+
className: import("prop-types").Requireable<string>;
|
|
173
179
|
}>>;
|
|
174
180
|
}> | null | undefined)[]>;
|
|
175
181
|
type: import("prop-types").Requireable<string>;
|
|
@@ -564,6 +570,7 @@ declare const ContentSkillModal: {
|
|
|
564
570
|
customStyle: import("prop-types").Requireable<{
|
|
565
571
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
566
572
|
}>;
|
|
573
|
+
className: import("prop-types").Requireable<string>;
|
|
567
574
|
}>>;
|
|
568
575
|
actionButtons: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
569
576
|
type: import("prop-types").Requireable<string>;
|
|
@@ -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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