@coorpacademy/components 11.42.1 → 11.42.4
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/style.css +3 -1
- 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 +6 -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/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/brand-learning-priorities/index.d.ts +6 -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/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 +80 -3
- 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/style.css +3 -1
- 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 +6 -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/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/brand-learning-priorities/index.d.ts +6 -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/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 +80 -3
- 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/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_icon","_colors","_provider","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DEFAULT_ICON_STYLE","padding","width","height","CheckboxWithTitle","props","context","value","title","name","checked","onChange","_noop2","dataName","ariaLabel","icon","iconName","iconColor","preset","customStyle","skin","primaryColor","_getOr2","COLORS","cm_primary_blue","idCheckbox","useMemo","_uniqueId2","handleChange","target","createElement","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_icon","_colors","_provider","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DEFAULT_ICON_STYLE","padding","width","height","CheckboxWithTitle","props","context","value","title","name","checked","onChange","_noop2","dataName","ariaLabel","icon","iconName","iconColor","preset","customStyle","className","skin","primaryColor","_getOr2","COLORS","cm_primary_blue","idCheckbox","useMemo","_uniqueId2","handleChange","target","createElement","classnames","style","container","htmlFor","type","id","checkbox","label","background","borderColor","dangerouslySetInnerHTML","__html","propTypes","process","env","NODE_ENV","PropTypes","string","bool","func","shape","objectOf","oneOfType","number","contextTypes","Provider","childContextTypes","_default","exports"],"sources":["../../../src/atom/checkbox-with-title/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {getOr, noop, uniqueId} from 'lodash/fp';\nimport FaIcon from '../icon';\nimport {COLORS} from '../../variables/colors';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst DEFAULT_ICON_STYLE = {padding: '0', width: '20px', height: '20px'};\n\nconst CheckboxWithTitle = (props, context) => {\n const {\n value,\n title,\n name,\n checked,\n onChange = noop,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n icon = {iconName: 'check', iconColor: 'white', preset: 's'},\n customStyle = {},\n className\n } = props;\n const {skin} = context;\n const primaryColor = getOr(COLORS.cm_primary_blue, 'common.primary', skin);\n const {iconName, iconColor, preset} = icon;\n const idCheckbox = useMemo(() => uniqueId('input-checkbox-'), []);\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n return (\n <div className={classnames(style.container, className)} style={{...customStyle}}>\n {onChange !== noop ? (\n <label htmlFor={idCheckbox}>\n <input\n type=\"checkbox\"\n data-value={value}\n id={idCheckbox}\n name={name}\n onChange={handleChange}\n checked={checked}\n className={style.checkbox}\n data-name={dataName}\n aria-label={ariaLabel}\n />\n <div\n className={style.label}\n style={checked ? {background: primaryColor, borderColor: primaryColor} : null}\n >\n {checked ? (\n <FaIcon\n className={style.icon}\n iconName={iconName}\n iconColor={iconColor}\n preset={preset}\n customStyle={DEFAULT_ICON_STYLE}\n />\n ) : (\n <FaIcon\n className={style.icon}\n iconName={'square'}\n iconColor={'transparent'}\n preset=\"s\"\n customStyle={DEFAULT_ICON_STYLE}\n />\n )}\n </div>\n </label>\n ) : null}\n {title ? (\n <span\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n ) : null}\n </div>\n );\n};\n\nCheckboxWithTitle.propTypes = {\n value: PropTypes.string,\n title: PropTypes.string,\n name: PropTypes.string,\n checked: PropTypes.bool,\n onChange: PropTypes.func,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n icon: PropTypes.shape({\n iconName: PropTypes.string,\n iconColor: PropTypes.string,\n preset: PropTypes.string\n }),\n customStyle: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),\n className: PropTypes.string\n};\n\nCheckboxWithTitle.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\nexport default CheckboxWithTitle;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,KAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAgC,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAA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AAEuC,kBAAS,CAACC,MAAM;EACtBvC,OAAO,EAAEsC,kBAAS,CAACE,IAAI;EACvBvC,QAAQ,EAAEqC,kBAAS,CAACG,IAAI;EACxB,YAAY,EAAEH,kBAAS,CAACC,MAAM;EAC9B,WAAW,EAAED,kBAAS,CAACC,MAAM;EAC7BlC,IAAI,EAAEiC,kBAAS,CAACI,KAAK,CAAC;IACpBpC,QAAQ,EAAEgC,kBAAS,CAACC,MAAM;IAC1BhC,SAAS,EAAE+B,kBAAS,CAACC,MAAM;IAC3B/B,MAAM,EAAE8B,kBAAS,CAACC;EACpB,CAAC,CAAC;EACF9B,WAAW,EAAE6B,kBAAS,CAACK,QAAQ,CAACL,kBAAS,CAACM,SAAS,CAAC,CAACN,kBAAS,CAACC,MAAM,EAAED,kBAAS,CAACO,MAAM,CAAC,CAAC,CAAC;EAC1FnC,SAAS,EAAE4B,kBAAS,CAACC;AACvB,CAAC;AAED7C,iBAAiB,CAACoD,YAAY,GAAG;EAC/BnC,IAAI,EAAEoC,iBAAQ,CAACC,iBAAiB,CAACrC;AACnC,CAAC;AAAC,IAAAsC,QAAA,GAAAC,OAAA,CAAA1E,OAAA,GACakB,iBAAiB","ignoreList":[]}
|
|
@@ -83,6 +83,9 @@ declare const RadioWithTitle: {
|
|
|
83
83
|
}>>>;
|
|
84
84
|
name: import("prop-types").Requireable<string>;
|
|
85
85
|
checked: import("prop-types").Requireable<boolean>;
|
|
86
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
87
|
+
example: import("prop-types").Requireable<string>;
|
|
88
|
+
hint: import("prop-types").Requireable<string>;
|
|
86
89
|
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
87
90
|
'aria-label': import("prop-types").Requireable<string>;
|
|
88
91
|
'data-name': import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,OAAO,EAAY,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAEvD,QAAA,MAAM,cAAc;YAAW,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDjD,CAAC;AAIF,eAAe,cAAc,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
var _uniqueId2 = _interopRequireDefault(require("lodash/fp/uniqueId"));
|
|
6
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
7
8
|
var _title = _interopRequireDefault(require("../title"));
|
|
8
9
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
9
10
|
var _types = require("./types");
|
|
@@ -16,14 +17,22 @@ const RadioWithTitle = props => {
|
|
|
16
17
|
title,
|
|
17
18
|
name,
|
|
18
19
|
checked,
|
|
20
|
+
disabled,
|
|
21
|
+
example,
|
|
22
|
+
hint,
|
|
19
23
|
onChange,
|
|
20
24
|
'data-name': dataName,
|
|
21
25
|
'aria-label': ariaLabel
|
|
22
26
|
} = props;
|
|
23
27
|
const idRadio = (0, _uniqueId2.default)('input-radio-');
|
|
24
|
-
const
|
|
28
|
+
const hintId = hint ? `${idRadio}-hint` : undefined;
|
|
29
|
+
const handleChange = (0, _react.useCallback)(e => {
|
|
30
|
+
if (!disabled) onChange(e.target.checked);
|
|
31
|
+
}, [disabled, onChange]);
|
|
25
32
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
-
className: _style.default.container
|
|
33
|
+
className: (0, _classnames.default)(_style.default.container, {
|
|
34
|
+
[_style.default.withHint]: hint
|
|
35
|
+
})
|
|
27
36
|
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
28
37
|
htmlFor: idRadio
|
|
29
38
|
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
@@ -32,15 +41,24 @@ const RadioWithTitle = props => {
|
|
|
32
41
|
name: name,
|
|
33
42
|
onChange: handleChange,
|
|
34
43
|
checked: checked,
|
|
44
|
+
disabled: disabled,
|
|
35
45
|
className: _style.default.radio,
|
|
36
46
|
"data-name": dataName,
|
|
37
|
-
"aria-label": ariaLabel
|
|
47
|
+
"aria-label": ariaLabel,
|
|
48
|
+
"aria-describedby": hintId
|
|
38
49
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
39
|
-
className: _style.default.title
|
|
50
|
+
className: (0, _classnames.default)(_style.default.title, {
|
|
51
|
+
[_style.default.withExample]: example
|
|
52
|
+
})
|
|
40
53
|
}, /*#__PURE__*/_react.default.createElement(_title.default, _extends({}, title, {
|
|
41
54
|
titleSize: 'small',
|
|
42
55
|
subtitleSize: 'extra-small'
|
|
43
|
-
}))
|
|
56
|
+
})), example ? /*#__PURE__*/_react.default.createElement("span", {
|
|
57
|
+
className: _style.default.example
|
|
58
|
+
}, example) : null)), hint ? /*#__PURE__*/_react.default.createElement("span", {
|
|
59
|
+
id: hintId,
|
|
60
|
+
className: _style.default.hint
|
|
61
|
+
}, hint) : null);
|
|
44
62
|
};
|
|
45
63
|
RadioWithTitle.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
46
64
|
var _default = exports.default = RadioWithTitle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_title","_style","_types","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","RadioWithTitle","props","title","name","checked","disabled","example","hint","onChange","dataName","ariaLabel","idRadio","_uniqueId2","hintId","undefined","handleChange","useCallback","target","createElement","className","classnames","style","container","withHint","htmlFor","type","id","radio","withExample","titleSize","subtitleSize","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/atom/radio-with-title/index.tsx"],"sourcesContent":["import React, {useCallback} from 'react';\nimport {uniqueId} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Title from '../title';\nimport style from './style.css';\nimport {propTypes, RadioWithTitleProps} from './types';\n\nconst RadioWithTitle = (props: RadioWithTitleProps) => {\n const {\n title,\n name,\n checked,\n disabled,\n example,\n hint,\n onChange,\n 'data-name': dataName,\n 'aria-label': ariaLabel\n } = props;\n const idRadio = uniqueId('input-radio-');\n const hintId = hint ? `${idRadio}-hint` : undefined;\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (!disabled) onChange(e.target.checked);\n },\n [disabled, onChange]\n );\n\n return (\n <div className={classnames(style.container, {[style.withHint]: hint})}>\n <label htmlFor={idRadio}>\n <input\n type=\"radio\"\n id={idRadio}\n name={name}\n onChange={handleChange}\n checked={checked}\n disabled={disabled}\n className={style.radio}\n data-name={dataName}\n aria-label={ariaLabel}\n aria-describedby={hintId}\n />\n <span className={classnames(style.title, {[style.withExample]: example})}>\n <Title {...title} titleSize={'small'} subtitleSize={'extra-small'} />\n {example ? <span className={style.example}>{example}</span> : null}\n </span>\n </label>\n {hint ? (\n <span id={hintId} className={style.hint}>\n {hint}\n </span>\n ) : null}\n </div>\n );\n};\n\nRadioWithTitle.propTypes = propTypes;\n\nexport default RadioWithTitle;\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sB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 0.4;
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
.title {
|
|
38
44
|
font-family: "Gilroy";
|
|
39
45
|
font-weight: 700;
|
|
@@ -46,4 +52,25 @@
|
|
|
46
52
|
color: black;
|
|
47
53
|
}
|
|
48
54
|
|
|
55
|
+
.withExample {
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: flex-start;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.example {
|
|
61
|
+
composes: extraSmallSubtitleFormGroup from "../title/style.css";
|
|
62
|
+
font-style: italic;
|
|
63
|
+
margin-top: 4px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.withHint {
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
align-items: flex-start;
|
|
69
|
+
}
|
|
49
70
|
|
|
71
|
+
.hint {
|
|
72
|
+
composes: extraSmallSubtitleFormGroup from "../title/style.css";
|
|
73
|
+
font-style: normal;
|
|
74
|
+
margin-top: 4px;
|
|
75
|
+
margin-left: 40px;
|
|
76
|
+
}
|
|
@@ -81,6 +81,9 @@ export declare const propTypes: {
|
|
|
81
81
|
}>>>;
|
|
82
82
|
name: PropTypes.Requireable<string>;
|
|
83
83
|
checked: PropTypes.Requireable<boolean>;
|
|
84
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
85
|
+
example: PropTypes.Requireable<string>;
|
|
86
|
+
hint: PropTypes.Requireable<string>;
|
|
84
87
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
85
88
|
'aria-label': PropTypes.Requireable<string>;
|
|
86
89
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -95,6 +98,9 @@ export declare type RadioWithTitleProps = {
|
|
|
95
98
|
};
|
|
96
99
|
name?: string;
|
|
97
100
|
checked: boolean;
|
|
101
|
+
disabled?: boolean;
|
|
102
|
+
example?: string;
|
|
103
|
+
hint?: string;
|
|
98
104
|
onChange: (value: boolean) => void;
|
|
99
105
|
'aria-label': string;
|
|
100
106
|
'data-name'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUrB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -9,6 +9,9 @@ const propTypes = exports.propTypes = {
|
|
|
9
9
|
title: _propTypes.default.shape(_title.default.propTypes).isRequired,
|
|
10
10
|
name: _propTypes.default.string,
|
|
11
11
|
checked: _propTypes.default.bool,
|
|
12
|
+
disabled: _propTypes.default.bool,
|
|
13
|
+
example: _propTypes.default.string,
|
|
14
|
+
hint: _propTypes.default.string,
|
|
12
15
|
onChange: _propTypes.default.func.isRequired,
|
|
13
16
|
'aria-label': _propTypes.default.string,
|
|
14
17
|
'data-name': _propTypes.default.string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_title","e","__esModule","default","propTypes","exports","title","PropTypes","shape","Title","isRequired","name","string","checked","bool","onChange","func"],"sources":["../../../src/atom/radio-with-title/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Title from '../title';\n\nexport const propTypes = {\n title: PropTypes.shape(Title.propTypes).isRequired,\n name: PropTypes.string,\n checked: PropTypes.bool,\n onChange: PropTypes.func.isRequired,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string\n};\n\nexport type RadioWithTitleProps = {\n title: {\n title: string;\n subtitle: string;\n type: string;\n 'data-name': string;\n subtitleSize: string;\n };\n name?: string;\n checked: boolean;\n onChange: (value: boolean) => void;\n 'aria-label': string;\n 'data-name'?: string;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA6B,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB,MAAMG,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG;EACvBE,KAAK,EAAEC,kBAAS,CAACC,KAAK,CAACC,cAAK,CAACL,SAAS,CAAC,CAACM,UAAU;EAClDC,IAAI,EAAEJ,kBAAS,CAACK,MAAM;EACtBC,OAAO,EAAEN,kBAAS,CAACO,IAAI;EACvBC,QAAQ,EAAER,kBAAS,
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_title","e","__esModule","default","propTypes","exports","title","PropTypes","shape","Title","isRequired","name","string","checked","bool","disabled","example","hint","onChange","func"],"sources":["../../../src/atom/radio-with-title/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Title from '../title';\n\nexport const propTypes = {\n title: PropTypes.shape(Title.propTypes).isRequired,\n name: PropTypes.string,\n checked: PropTypes.bool,\n disabled: PropTypes.bool,\n example: PropTypes.string,\n hint: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string\n};\n\nexport type RadioWithTitleProps = {\n title: {\n title: string;\n subtitle: string;\n type: string;\n 'data-name': string;\n subtitleSize: string;\n };\n name?: string;\n checked: boolean;\n disabled?: boolean;\n example?: string;\n hint?: string;\n onChange: (value: boolean) => void;\n 'aria-label': string;\n 'data-name'?: string;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA6B,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB,MAAMG,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG;EACvBE,KAAK,EAAEC,kBAAS,CAACC,KAAK,CAACC,cAAK,CAACL,SAAS,CAAC,CAACM,UAAU;EAClDC,IAAI,EAAEJ,kBAAS,CAACK,MAAM;EACtBC,OAAO,EAAEN,kBAAS,CAACO,IAAI;EACvBC,QAAQ,EAAER,kBAAS,CAACO,IAAI;EACxBE,OAAO,EAAET,kBAAS,CAACK,MAAM;EACzBK,IAAI,EAAEV,kBAAS,CAACK,MAAM;EACtBM,QAAQ,EAAEX,kBAAS,CAACY,IAAI,CAACT,UAAU;EACnC,YAAY,EAAEH,kBAAS,CAACK,MAAM;EAC9B,WAAW,EAAEL,kBAAS,CAACK;AACzB,CAAC","ignoreList":[]}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
+
exports.ContentSelectionList = void 0;
|
|
4
5
|
var _provider = _interopRequireDefault(require("./atom/provider"));
|
|
5
6
|
exports.Provider = _provider.default;
|
|
6
7
|
var _popinEnd = _interopRequireDefault(require("./template/app-player/popin-end"));
|
|
@@ -13,5 +14,7 @@ var _loading = _interopRequireDefault(require("./template/app-player/loading"));
|
|
|
13
14
|
exports.Loading = _loading.default;
|
|
14
15
|
var _popinNoAccess = _interopRequireDefault(require("./template/app-player/popin-no-access"));
|
|
15
16
|
exports.PopinNoAccess = _popinNoAccess.default;
|
|
17
|
+
var _contentSelectionList = _interopRequireDefault(require("./organism/content-selection-list"));
|
|
18
|
+
exports.ContentSelectionList = _contentSelectionList.default;
|
|
16
19
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
20
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_provider","_interopRequireDefault","require","exports","Provider","default","_popinEnd","PopinEnd","_popinCorrection","PopinCorrection","_player","Player","_loading","Loading","_popinNoAccess","PopinNoAccess","e","__esModule"],"sources":["../src/index.js"],"sourcesContent":["import Provider from './atom/provider';\nimport PopinEnd from './template/app-player/popin-end';\nimport PopinCorrection from './template/app-player/popin-correction';\nimport Player from './template/app-player/player';\nimport Loading from './template/app-player/loading';\nimport PopinNoAccess from './template/app-player/popin-no-access';\n\nexport {Provider, PopinEnd, PopinCorrection, Loading, Player, PopinNoAccess};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["_provider","_interopRequireDefault","require","exports","Provider","default","_popinEnd","PopinEnd","_popinCorrection","PopinCorrection","_player","Player","_loading","Loading","_popinNoAccess","PopinNoAccess","_contentSelectionList","ContentSelectionList","e","__esModule"],"sources":["../src/index.js"],"sourcesContent":["import Provider from './atom/provider';\nimport PopinEnd from './template/app-player/popin-end';\nimport PopinCorrection from './template/app-player/popin-correction';\nimport Player from './template/app-player/player';\nimport Loading from './template/app-player/loading';\nimport PopinNoAccess from './template/app-player/popin-no-access';\n\nexport {Provider, PopinEnd, PopinCorrection, Loading, Player, PopinNoAccess};\nexport {default as ContentSelectionList} from './organism/content-selection-list';\n"],"mappings":";;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuCC,OAAA,CAAAC,QAAA,GAAAJ,SAAA,CAAAK,OAAA;AACvC,IAAAC,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAuDC,OAAA,CAAAI,QAAA,GAAAD,SAAA,CAAAD,OAAA;AACvD,IAAAG,gBAAA,GAAAP,sBAAA,CAAAC,OAAA;AAAqEC,OAAA,CAAAM,eAAA,GAAAD,gBAAA,CAAAH,OAAA;AACrE,IAAAK,OAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAkDC,OAAA,CAAAQ,MAAA,GAAAD,OAAA,CAAAL,OAAA;AAClD,IAAAO,QAAA,GAAAX,sBAAA,CAAAC,OAAA;AAAoDC,OAAA,CAAAU,OAAA,GAAAD,QAAA,CAAAP,OAAA;AACpD,IAAAS,cAAA,GAAAb,sBAAA,CAAAC,OAAA;AAAkEC,OAAA,CAAAY,aAAA,GAAAD,cAAA,CAAAT,OAAA;AAGlE,IAAAW,qBAAA,GAAAf,sBAAA,CAAAC,OAAA;AAAkFC,OAAA,CAAAc,oBAAA,GAAAD,qBAAA,CAAAX,OAAA;AAAA,SAAAJ,uBAAAiB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAb,OAAA,EAAAa,CAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";AA8CA,kDAiTC"}
|
|
@@ -16,6 +16,8 @@ var _cardsGrid = _interopRequireDefault(require("../../organism/cards-grid"));
|
|
|
16
16
|
var _listItems = _interopRequireDefault(require("../../organism/list-items"));
|
|
17
17
|
var _link = _interopRequireDefault(require("../../atom/link"));
|
|
18
18
|
var _icon = _interopRequireDefault(require("../../atom/icon"));
|
|
19
|
+
var _wizardSummary = _interopRequireDefault(require("../wizard-summary"));
|
|
20
|
+
var _notification = _interopRequireDefault(require("../../atom/notification"));
|
|
19
21
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
20
22
|
var _types = _interopRequireDefault(require("./types"));
|
|
21
23
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -51,6 +53,8 @@ const CMPopin = props => {
|
|
|
51
53
|
icon,
|
|
52
54
|
backgroundImageUrl,
|
|
53
55
|
descriptionText,
|
|
56
|
+
sections,
|
|
57
|
+
warning,
|
|
54
58
|
thirdButton,
|
|
55
59
|
cookieTitle,
|
|
56
60
|
descriptionBtnTxt,
|
|
@@ -86,7 +90,8 @@ const CMPopin = props => {
|
|
|
86
90
|
};
|
|
87
91
|
}
|
|
88
92
|
}, [handleCloseButton, mode, onClose]);
|
|
89
|
-
const
|
|
93
|
+
const hasImpact = (mode === 'alert' || mode === 'information') && (!(0, _isEmpty.default)(sections) || Boolean(warning));
|
|
94
|
+
const wrapperPopinStyle = (0, _classnames.default)(_style.default.popin, hasImpact && _style.default.popinImpact, mode === 'cookie' && _style.default.popinCookie, mode === 'list' && _style.default.popinFilesList, mode === 'items' && _style.default.popinItems);
|
|
90
95
|
const buildIcon = () => {
|
|
91
96
|
if (typeof icon === 'string') {
|
|
92
97
|
const LogoComponent = LOGO[icon];
|
|
@@ -254,14 +259,26 @@ const CMPopin = props => {
|
|
|
254
259
|
"data-name": `cm-popin-cta-${thirdButton.type}`
|
|
255
260
|
}))) : null);
|
|
256
261
|
};
|
|
262
|
+
const renderImpact = () => {
|
|
263
|
+
if (mode !== 'alert' && mode !== 'information') return null;
|
|
264
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !(0, _isEmpty.default)(sections) ? /*#__PURE__*/_react.default.createElement(_wizardSummary.default, {
|
|
265
|
+
sections: sections,
|
|
266
|
+
inline: true
|
|
267
|
+
}) : null, warning ? /*#__PURE__*/_react.default.createElement("div", {
|
|
268
|
+
role: "alert"
|
|
269
|
+
}, /*#__PURE__*/_react.default.createElement(_notification.default, {
|
|
270
|
+
type: "warning",
|
|
271
|
+
message: warning
|
|
272
|
+
})) : null);
|
|
273
|
+
};
|
|
257
274
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
258
|
-
className: mode !== 'cookie' ? _style.default.background : null,
|
|
275
|
+
className: mode !== 'cookie' ? (0, _classnames.default)(_style.default.background, hasImpact && _style.default.impactBackground) : null,
|
|
259
276
|
style: backgroundImageStyle,
|
|
260
277
|
"data-name": 'cm-popin-container'
|
|
261
278
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
262
279
|
className: wrapperPopinStyle,
|
|
263
280
|
ref: nodeRef
|
|
264
|
-
}, renderHeader(), renderContent(), descriptionBtnTxt ? /*#__PURE__*/_react.default.createElement("div", {
|
|
281
|
+
}, renderHeader(), renderContent(), renderImpact(), descriptionBtnTxt ? /*#__PURE__*/_react.default.createElement("div", {
|
|
265
282
|
className: _style.default.descriptionBtn
|
|
266
283
|
}, descriptionBtnTxt) : null, renderItems(), renderBtnSwitch(), renderButtons()));
|
|
267
284
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_novaIcons","_map","_interopRequireDefault","_isEmpty","_classnames","_provider","_buttonLink","_buttonLinkIcon","_inputSwitch","_title","_cardsGrid","_listItems","_link","_icon","_style","_types","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","LOGO","AlertDiamond","WindowUpload","MoonRocket","CheckCircle1","AlertIcon","IconType","lockedContent","createElement","NovaCompositionCoorpacademyPadlock","className","style","lockIcon","fileZipped","filesListIconContainer","NovaSolidFilesBasicFileLines","filesListIcon","CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","items","link","backgroundImageStyle","backgroundImage","backgroundSize","handleCloseButton","useMemo","nodeRef","useRef","useEffect","closePopin","current","contains","target","handleKeyDown","key","document","addEventListener","removeEventListener","wrapperPopinStyle","classNames","popin","popinCookie","popinFilesList","popinItems","buildIcon","LogoComponent","isEmpty","buildHeader","title","headerIcon","TopTitleIcon","Fragment","headerContent","headerBackground","src","cookieHeader","cookieIconContainer","NovaLineSettingsCookie","cookieIcon","renderHeader","close","onCloseButton","onClick","size","popinHeader","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","map","convert","cap","el","type","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","renderItems","list","itemsContainer","filesListContainer","renderContent","isCookieOrInformations","renderContentTitle","message","dangerouslySetInnerHTML","__html","cookieTitleContainer","titleContainer","contentSection","renderButtons","buttonContainer","largeButton","button","handleOnclick","background","ref","descriptionBtn","propTypes","process","env","NODE_ENV","contextTypes","translate","Provider","childContextTypes","_default","exports"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React, {useRef, useEffect, useMemo} from 'react';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket,\n NovaCompositionCoorpacademyPadlock as LockIcon,\n NovaLineStatusCheckCircle1 as CheckCircle1,\n NovaSolidFilesBasicFileLines as FileLinesIcon,\n NovaSolidInterfaceFeedbackInterfaceAlertRounded as AlertIcon\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport classNames from 'classnames';\nimport Provider from '../../atom/provider';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\nimport Link from '../../atom/link';\nimport Icon from '../../atom/icon';\nimport style from './style.css';\nimport propTypes from './types';\n\n// DEPRECATED\nconst LOGO = {\n AlertDiamond,\n WindowUpload,\n MoonRocket,\n CheckCircle1,\n AlertIcon\n};\n\nconst IconType = {\n lockedContent: <LockIcon className={style.lockIcon} />,\n fileZipped: (\n <div className={style.filesListIconContainer}>\n <FileLinesIcon className={style.filesListIcon} />\n </div>\n )\n};\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth,\n items,\n link\n } = props;\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const handleCloseButton = useMemo(() => () => onClose(), [onClose]);\n const nodeRef = useRef(null);\n useEffect(() => {\n if (mode === 'items') {\n const closePopin = e => {\n if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {\n handleCloseButton();\n }\n };\n const handleKeyDown = e => {\n if (e?.key === 'Escape') {\n handleCloseButton();\n }\n };\n document.addEventListener('click', closePopin);\n document.addEventListener('touchstart', closePopin);\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('click', closePopin);\n document.removeEventListener('touchstart', closePopin);\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [handleCloseButton, mode, onClose]);\n\n const wrapperPopinStyle = classNames(\n style.popin,\n mode === 'cookie' && style.popinCookie,\n mode === 'list' && style.popinFilesList,\n mode === 'items' && style.popinItems\n );\n\n const buildIcon = () => {\n if (typeof icon === 'string') {\n const LogoComponent = LOGO[icon];\n return LogoComponent ? <LogoComponent className={style.icon} /> : null;\n }\n\n return !isEmpty(icon) ? <Icon {...icon} className={style.icon} /> : null;\n };\n\n const buildHeader = () => {\n if (header) {\n const {title, headerIcon, backgroundImage} = header;\n const TopTitleIcon = IconType[headerIcon];\n\n return (\n <>\n {title ? (\n <div className={style.headerContent}>\n {TopTitleIcon}\n <Title {...title} />\n </div>\n ) : null}\n {backgroundImage ? (\n <img className={style.headerBackground} src={backgroundImage} />\n ) : null}\n </>\n );\n }\n\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n };\n\n const renderHeader = () => {\n const headerContent = buildHeader();\n const close = onClose ? (\n <div className={style.onCloseButton}>\n <ButtonLinkIcon\n onClick={handleCloseButton}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n </div>\n ) : null;\n\n if (isEmpty(headerContent) && isEmpty(close)) return null;\n\n return (\n <header className={style.popinHeader}>\n {headerContent}\n {close}\n </header>\n );\n };\n\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n\n const renderItems = () => {\n if (isEmpty(items)) return null;\n const {type, list} = items;\n\n if (type === 'content')\n return (\n <div className={style.itemsContainer} data-name={'cm-popin-cards'}>\n <CardsGrid {...list} />\n </div>\n );\n if (type === 'list')\n return (\n <div className={style.filesListContainer}>\n <ListItems {...list} />\n </div>\n );\n\n return null;\n };\n\n const renderContent = () => {\n if (mode === 'items' || mode === 'list') return;\n\n const isCookieOrInformations = mode === 'cookie' || mode === 'information';\n const renderContentTitle = () => {\n if (!content) return null;\n\n if (isCookieOrInformations)\n return (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n );\n\n return (\n <div className={mode === 'alert' ? style.content : style.message}>\n <Title title={content} data-name={'cm-popin-content'} />\n </div>\n );\n };\n\n return (\n <div className={isCookieOrInformations ? style.cookieTitleContainer : style.titleContainer}>\n {buildIcon()}\n <div className={style.contentSection}>\n {renderContentTitle()}\n {descriptionText ? (\n <div\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n {link ? <Link {...link} /> : null}\n </div>\n );\n };\n\n const renderButtons = () => {\n if (!firstButton && !secondButton && !thirdButton) return null;\n\n return (\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <ButtonLink\n {...firstButton}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <ButtonLink\n {...secondButton}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <ButtonLink\n {...thirdButton}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n />\n </div>\n ) : null}\n </div>\n );\n };\n\n return (\n <div\n className={mode !== 'cookie' ? style.background : null}\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={wrapperPopinStyle} ref={nodeRef}>\n {renderHeader()}\n {renderContent()}\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {renderItems()}\n {renderBtnSwitch()}\n {renderButtons()}\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = propTypes;\nCMPopin.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default CMPopin;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAUA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,WAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,SAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,WAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA,IAAAQ,eAAA,GAAAL,sBAAA,CAAAH,OAAA;AACA,IAAAS,YAAA,GAAAN,sBAAA,CAAAH,OAAA;AACA,IAAAU,MAAA,GAAAP,sBAAA,CAAAH,OAAA;AACA,IAAAW,UAAA,GAAAR,sBAAA,CAAAH,OAAA;AACA,IAAAY,UAAA,GAAAT,sBAAA,CAAAH,OAAA;AACA,IAAAa,KAAA,GAAAV,sBAAA,CAAAH,OAAA;AACA,IAAAc,KAAA,GAAAX,sBAAA,CAAAH,OAAA;AACA,IAAAe,MAAA,GAAAZ,sBAAA,CAAAH,OAAA;AACA,IAAAgB,MAAA,GAAAb,sBAAA,CAAAH,OAAA;AAAgC,SAAAG,uBAAAc,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,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,OAAO,CAAC2G,YAAY,GAAG;EACrBC,SAAS,EAAEC,iBAAQ,CAACC,iBAAiB,CAACF;AACxC,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAzJ,OAAA,GAEayC,OAAO","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_novaIcons","_map","_interopRequireDefault","_isEmpty","_classnames","_provider","_buttonLink","_buttonLinkIcon","_inputSwitch","_title","_cardsGrid","_listItems","_link","_icon","_wizardSummary","_notification","_style","_types","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","LOGO","AlertDiamond","WindowUpload","MoonRocket","CheckCircle1","AlertIcon","IconType","lockedContent","createElement","NovaCompositionCoorpacademyPadlock","className","style","lockIcon","fileZipped","filesListIconContainer","NovaSolidFilesBasicFileLines","filesListIcon","CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","sections","warning","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","items","link","backgroundImageStyle","backgroundImage","backgroundSize","handleCloseButton","useMemo","nodeRef","useRef","useEffect","closePopin","current","contains","target","handleKeyDown","key","document","addEventListener","removeEventListener","hasImpact","isEmpty","Boolean","wrapperPopinStyle","classNames","popin","popinImpact","popinCookie","popinFilesList","popinItems","buildIcon","LogoComponent","buildHeader","title","headerIcon","TopTitleIcon","Fragment","headerContent","headerBackground","src","cookieHeader","cookieIconContainer","NovaLineSettingsCookie","cookieIcon","renderHeader","close","onCloseButton","onClick","size","popinHeader","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","map","convert","cap","el","type","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","renderItems","list","itemsContainer","filesListContainer","renderContent","isCookieOrInformations","renderContentTitle","message","dangerouslySetInnerHTML","__html","cookieTitleContainer","titleContainer","contentSection","renderButtons","buttonContainer","largeButton","button","handleOnclick","renderImpact","inline","role","background","impactBackground","ref","descriptionBtn","propTypes","process","env","NODE_ENV","contextTypes","translate","Provider","childContextTypes","_default","exports"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React, {useRef, useEffect, useMemo} from 'react';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket,\n NovaCompositionCoorpacademyPadlock as LockIcon,\n NovaLineStatusCheckCircle1 as CheckCircle1,\n NovaSolidFilesBasicFileLines as FileLinesIcon,\n NovaSolidInterfaceFeedbackInterfaceAlertRounded as AlertIcon\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport classNames from 'classnames';\nimport Provider from '../../atom/provider';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\nimport Link from '../../atom/link';\nimport Icon from '../../atom/icon';\nimport WizardSummary from '../wizard-summary';\nimport Notification from '../../atom/notification';\nimport style from './style.css';\nimport propTypes from './types';\n\n// DEPRECATED\nconst LOGO = {\n AlertDiamond,\n WindowUpload,\n MoonRocket,\n CheckCircle1,\n AlertIcon\n};\n\nconst IconType = {\n lockedContent: <LockIcon className={style.lockIcon} />,\n fileZipped: (\n <div className={style.filesListIconContainer}>\n <FileLinesIcon className={style.filesListIcon} />\n </div>\n )\n};\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n sections,\n warning,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth,\n items,\n link\n } = props;\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const handleCloseButton = useMemo(() => () => onClose(), [onClose]);\n const nodeRef = useRef(null);\n useEffect(() => {\n if (mode === 'items') {\n const closePopin = e => {\n if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {\n handleCloseButton();\n }\n };\n const handleKeyDown = e => {\n if (e?.key === 'Escape') {\n handleCloseButton();\n }\n };\n document.addEventListener('click', closePopin);\n document.addEventListener('touchstart', closePopin);\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('click', closePopin);\n document.removeEventListener('touchstart', closePopin);\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [handleCloseButton, mode, onClose]);\n\n const hasImpact =\n (mode === 'alert' || mode === 'information') && (!isEmpty(sections) || Boolean(warning));\n const wrapperPopinStyle = classNames(\n style.popin,\n hasImpact && style.popinImpact,\n mode === 'cookie' && style.popinCookie,\n mode === 'list' && style.popinFilesList,\n mode === 'items' && style.popinItems\n );\n\n const buildIcon = () => {\n if (typeof icon === 'string') {\n const LogoComponent = LOGO[icon];\n return LogoComponent ? <LogoComponent className={style.icon} /> : null;\n }\n\n return !isEmpty(icon) ? <Icon {...icon} className={style.icon} /> : null;\n };\n\n const buildHeader = () => {\n if (header) {\n const {title, headerIcon, backgroundImage} = header;\n const TopTitleIcon = IconType[headerIcon];\n\n return (\n <>\n {title ? (\n <div className={style.headerContent}>\n {TopTitleIcon}\n <Title {...title} />\n </div>\n ) : null}\n {backgroundImage ? (\n <img className={style.headerBackground} src={backgroundImage} />\n ) : null}\n </>\n );\n }\n\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n };\n\n const renderHeader = () => {\n const headerContent = buildHeader();\n const close = onClose ? (\n <div className={style.onCloseButton}>\n <ButtonLinkIcon\n onClick={handleCloseButton}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n </div>\n ) : null;\n\n if (isEmpty(headerContent) && isEmpty(close)) return null;\n\n return (\n <header className={style.popinHeader}>\n {headerContent}\n {close}\n </header>\n );\n };\n\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n\n const renderItems = () => {\n if (isEmpty(items)) return null;\n const {type, list} = items;\n\n if (type === 'content')\n return (\n <div className={style.itemsContainer} data-name={'cm-popin-cards'}>\n <CardsGrid {...list} />\n </div>\n );\n if (type === 'list')\n return (\n <div className={style.filesListContainer}>\n <ListItems {...list} />\n </div>\n );\n\n return null;\n };\n\n const renderContent = () => {\n if (mode === 'items' || mode === 'list') return;\n\n const isCookieOrInformations = mode === 'cookie' || mode === 'information';\n const renderContentTitle = () => {\n if (!content) return null;\n\n if (isCookieOrInformations)\n return (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n );\n\n return (\n <div className={mode === 'alert' ? style.content : style.message}>\n <Title title={content} data-name={'cm-popin-content'} />\n </div>\n );\n };\n\n return (\n <div className={isCookieOrInformations ? style.cookieTitleContainer : style.titleContainer}>\n {buildIcon()}\n <div className={style.contentSection}>\n {renderContentTitle()}\n {descriptionText ? (\n <div\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n {link ? <Link {...link} /> : null}\n </div>\n );\n };\n\n const renderButtons = () => {\n if (!firstButton && !secondButton && !thirdButton) return null;\n\n return (\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <ButtonLink\n {...firstButton}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <ButtonLink\n {...secondButton}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <ButtonLink\n {...thirdButton}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n />\n </div>\n ) : null}\n </div>\n );\n };\n\n const renderImpact = () => {\n if (mode !== 'alert' && mode !== 'information') return null;\n return (\n <>\n {!isEmpty(sections) ? <WizardSummary sections={sections} inline /> : null}\n {warning ? (\n <div role=\"alert\">\n <Notification type=\"warning\" message={warning} />\n </div>\n ) : null}\n </>\n );\n };\n\n return (\n <div\n className={\n mode !== 'cookie' ? classNames(style.background, hasImpact && style.impactBackground) : null\n }\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={wrapperPopinStyle} ref={nodeRef}>\n {renderHeader()}\n {renderContent()}\n {renderImpact()}\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {renderItems()}\n {renderBtnSwitch()}\n {renderButtons()}\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = propTypes;\nCMPopin.contextTypes = {\n translate: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AAC;EAED,oBACE5E,MAAA,CAAAuB,OAAA,CAAAgC,aAAA;IACEE,SAAS,EACPU,IAAI,KAAK,QAAQ,GAAG,IAAAqC,mBAAU,EAAC9C,cAAK,CAACkH,UAAU,EAAExE,SAAS,IAAI1C,cAAK,CAACmH,gBAAgB,CAAC,GAAG,IACzF;IACDnH,KAAK,EAAEyB,oBAAqB;IAC5B,aAAW;EAAqB,gBAEhCnF,MAAA,CAAAuB,OAAA,CAAAgC,aAAA;IAAKE,SAAS,EAAE8C,iBAAkB;IAACuE,GAAG,EAAEtF;EAAQ,GAC7CoC,YAAY,CAAC,CAAC,EACd+B,aAAa,CAAC,CAAC,EACfc,YAAY,CAAC,CAAC,EACd1F,iBAAiB,gBAAG/E,MAAA,CAAAuB,OAAA,CAAAgC,aAAA;IAAKE,SAAS,EAAEC,cAAK,CAACqH;EAAe,GAAEhG,iBAAuB,CAAC,GAAG,IAAI,EAC1FwE,WAAW,CAAC,CAAC,EACbf,eAAe,CAAC,CAAC,EACjB4B,aAAa,CAAC,CACZ,CACF,CAAC;AAEV,CAAC;AAEDpG,OAAO,CAACgH,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAC7BhH,OAAO,CAACoH,YAAY,GAAG;EACrBC,SAAS,EAAEC,iBAAQ,CAACC,iBAAiB,CAACF;AACxC,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAlK,OAAA,GAEayC,OAAO","ignoreList":[]}
|
|
@@ -68,6 +68,23 @@
|
|
|
68
68
|
gap: 0;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
.impactBackground {
|
|
72
|
+
padding: 16px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.popin.popinImpact {
|
|
76
|
+
width: 400px;
|
|
77
|
+
max-width: 100%;
|
|
78
|
+
max-height: calc(100vh - 32px);
|
|
79
|
+
overflow-y: auto;
|
|
80
|
+
margin: 0;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.popinImpact > * {
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
71
88
|
|
|
72
89
|
.message {
|
|
73
90
|
display: flex;
|
|
@@ -4,6 +4,7 @@ import Link from '../../atom/link';
|
|
|
4
4
|
import { TitleProps } from '../../atom/title/types';
|
|
5
5
|
import CardsGrid from '../../organism/cards-grid';
|
|
6
6
|
import ListItems from '../../organism/list-items';
|
|
7
|
+
import WizardSummary from '../wizard-summary';
|
|
7
8
|
import { propTypes as iconPropTypes } from '../../atom/icon';
|
|
8
9
|
declare const propTypes: {
|
|
9
10
|
content: PropTypes.Requireable<string>;
|
|
@@ -136,6 +137,32 @@ declare const propTypes: {
|
|
|
136
137
|
}> | null | undefined>>;
|
|
137
138
|
backgroundImageUrl: PropTypes.Requireable<string>;
|
|
138
139
|
descriptionText: PropTypes.Requireable<string>;
|
|
140
|
+
sections: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
141
|
+
title: PropTypes.Requireable<string>;
|
|
142
|
+
items: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
|
|
143
|
+
type: PropTypes.Requireable<string>;
|
|
144
|
+
title: PropTypes.Requireable<string>;
|
|
145
|
+
value: PropTypes.Requireable<string>;
|
|
146
|
+
}> | PropTypes.InferProps<{
|
|
147
|
+
type: PropTypes.Requireable<string>;
|
|
148
|
+
text: PropTypes.Requireable<string>;
|
|
149
|
+
unsaved: PropTypes.Requireable<boolean>;
|
|
150
|
+
diff: PropTypes.Requireable<string>;
|
|
151
|
+
diffLabel: PropTypes.Requireable<string>;
|
|
152
|
+
}> | PropTypes.InferProps<{
|
|
153
|
+
type: PropTypes.Requireable<string>;
|
|
154
|
+
badgeList: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
155
|
+
category: PropTypes.Requireable<string>;
|
|
156
|
+
label: PropTypes.Requireable<string>;
|
|
157
|
+
}> | null | undefined)[]>;
|
|
158
|
+
badgeAriaLabel: PropTypes.Requireable<string>;
|
|
159
|
+
title: PropTypes.Requireable<string>;
|
|
160
|
+
author: PropTypes.Requireable<string>;
|
|
161
|
+
unsaved: PropTypes.Requireable<boolean>;
|
|
162
|
+
}> | null | undefined> | null | undefined)[]>;
|
|
163
|
+
counterText: PropTypes.Requireable<string>;
|
|
164
|
+
}> | null | undefined)[]>;
|
|
165
|
+
warning: PropTypes.Requireable<string>;
|
|
139
166
|
cookieTitle: PropTypes.Requireable<string>;
|
|
140
167
|
headerSubtitle: PropTypes.Requireable<string>;
|
|
141
168
|
descriptionBtnTxt: PropTypes.Requireable<string>;
|
|
@@ -312,6 +339,11 @@ declare const propTypes: {
|
|
|
312
339
|
size: PropTypes.Requireable<number>;
|
|
313
340
|
wrapperSize: PropTypes.Requireable<number>;
|
|
314
341
|
}>>;
|
|
342
|
+
imageOverlay: PropTypes.Requireable<string>;
|
|
343
|
+
contentBadge: PropTypes.Requireable<PropTypes.InferProps<{
|
|
344
|
+
category: PropTypes.Requireable<string>;
|
|
345
|
+
label: PropTypes.Requireable<string>;
|
|
346
|
+
}>>;
|
|
315
347
|
image: PropTypes.Requireable<string>;
|
|
316
348
|
checkbox: PropTypes.Requireable<PropTypes.InferProps<{
|
|
317
349
|
value: PropTypes.Requireable<string>;
|
|
@@ -329,6 +361,7 @@ declare const propTypes: {
|
|
|
329
361
|
customStyle: PropTypes.Requireable<{
|
|
330
362
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
331
363
|
}>;
|
|
364
|
+
className: PropTypes.Requireable<string>;
|
|
332
365
|
}>>;
|
|
333
366
|
}> | null | undefined)[]>;
|
|
334
367
|
type: PropTypes.Requireable<string>;
|
|
@@ -723,6 +756,7 @@ declare const propTypes: {
|
|
|
723
756
|
customStyle: PropTypes.Requireable<{
|
|
724
757
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
725
758
|
}>;
|
|
759
|
+
className: PropTypes.Requireable<string>;
|
|
726
760
|
}>>;
|
|
727
761
|
actionButtons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
728
762
|
type: PropTypes.Requireable<string>;
|
|
@@ -905,6 +939,8 @@ export declare type CMPopinProps = {
|
|
|
905
939
|
onClose?: () => void;
|
|
906
940
|
popinHeader?: PopinHeaderProps;
|
|
907
941
|
descriptionText: string;
|
|
942
|
+
sections?: PropTypes.InferProps<typeof WizardSummary.propTypes>['sections'];
|
|
943
|
+
warning?: string;
|
|
908
944
|
firstButton?: QuitPopinButton;
|
|
909
945
|
secondButton?: QuitPopinButton;
|
|
910
946
|
items?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,SAAS,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE3D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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