@coorpacademy/components 11.34.2-alpha.76 → 11.34.2-alpha.78
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/molecule/translation-modal/index.d.ts +1 -0
- package/es/molecule/translation-modal/index.d.ts.map +1 -1
- package/es/molecule/translation-modal/index.js +4 -3
- package/es/molecule/translation-modal/index.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +1 -0
- package/lib/molecule/translation-modal/index.d.ts +1 -0
- package/lib/molecule/translation-modal/index.d.ts.map +1 -1
- package/lib/molecule/translation-modal/index.js +4 -3
- package/lib/molecule/translation-modal/index.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@ declare namespace TranslationModal {
|
|
|
9
9
|
const onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
10
|
const onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
11
|
const onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
const disabled: PropTypes.Requireable<boolean>;
|
|
12
13
|
const source: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
14
|
inputText: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
15
|
theme: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/translation-modal/index.js"],"names":[],"mappings":";AAmBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/translation-modal/index.js"],"names":[],"mappings":";AAmBA,gFA8EC"}
|
|
@@ -29,6 +29,7 @@ const TranslationModal = (props, context) => {
|
|
|
29
29
|
onCancel,
|
|
30
30
|
onConfirm,
|
|
31
31
|
onClose,
|
|
32
|
+
disabled = false,
|
|
32
33
|
source: {
|
|
33
34
|
inputText: sourceInputText,
|
|
34
35
|
textArea: sourceTextArea,
|
|
@@ -51,7 +52,6 @@ const TranslationModal = (props, context) => {
|
|
|
51
52
|
const handleClose = useCallback(() => {
|
|
52
53
|
onClose();
|
|
53
54
|
}, [onClose]);
|
|
54
|
-
const isValid = !targetInputText.value || !targetTextArea.value;
|
|
55
55
|
const footer = useMemo(() => {
|
|
56
56
|
const cancelButton = {
|
|
57
57
|
onCancel: handleCancel,
|
|
@@ -64,12 +64,12 @@ const TranslationModal = (props, context) => {
|
|
|
64
64
|
onConfirm,
|
|
65
65
|
label: translate('confirm'),
|
|
66
66
|
iconName: 'plus',
|
|
67
|
-
disabled
|
|
67
|
+
disabled,
|
|
68
68
|
color: COLORS.cm_primary_blue
|
|
69
69
|
}
|
|
70
70
|
})
|
|
71
71
|
};
|
|
72
|
-
}, [handleCancel, onConfirm, translate, readOnly,
|
|
72
|
+
}, [handleCancel, onConfirm, translate, readOnly, disabled]);
|
|
73
73
|
if (!isOpen) return null;
|
|
74
74
|
return /*#__PURE__*/React.createElement(BaseModal, {
|
|
75
75
|
title: translate('translation_title'),
|
|
@@ -108,6 +108,7 @@ TranslationModal.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
108
108
|
onCancel: PropTypes.func,
|
|
109
109
|
onConfirm: PropTypes.func,
|
|
110
110
|
onClose: PropTypes.func,
|
|
111
|
+
disabled: PropTypes.bool,
|
|
111
112
|
source: PropTypes.shape({
|
|
112
113
|
inputText: PropTypes.shape({
|
|
113
114
|
...InputText.propTypes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","useCallback","PropTypes","BaseModal","Provider","COLORS","InputText","TextArea","style","renderInputGroup","title","inputProps","textAreaProps","disabled","createElement","className","inputGroup","_extends","TranslationModal","props","context","isOpen","onCancel","onConfirm","onClose","source","inputText","sourceInputText","textArea","sourceTextArea","inputLanguage","target","targetInputText","targetTextArea","language","outputLanguage","readOnly","translate","detectScrollbar","handleCancel","handleClose","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","useCallback","PropTypes","BaseModal","Provider","COLORS","InputText","TextArea","style","renderInputGroup","title","inputProps","textAreaProps","disabled","createElement","className","inputGroup","_extends","TranslationModal","props","context","isOpen","onCancel","onConfirm","onClose","source","inputText","sourceInputText","textArea","sourceTextArea","inputLanguage","target","targetInputText","targetTextArea","language","outputLanguage","readOnly","translate","detectScrollbar","handleCancel","handleClose","footer","cancelButton","label","confirmButton","iconName","color","cm_primary_blue","description","headerIcon","name","backgroundColor","translationModal","horizontalSection","separator","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","bool","func","shape","theme","string"],"sources":["../../../src/molecule/translation-modal/index.js"],"sourcesContent":["import React, {useMemo, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport BaseModal from '../base-modal';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport InputText from '../../atom/input-text';\nimport TextArea from '../../atom/input-textarea';\nimport style from './style.css';\n\nconst renderInputGroup = ({title, inputProps, textAreaProps, disabled}) => {\n return (\n <div className={style.inputGroup}>\n <div className={style.title}>{title}</div>\n <InputText {...inputProps} disabled={disabled} />\n <TextArea {...textAreaProps} disabled={disabled} />\n </div>\n );\n};\n\nconst TranslationModal = (props, context) => {\n const {\n isOpen,\n onCancel,\n onConfirm,\n onClose,\n disabled = false,\n source: {inputText: sourceInputText, textArea: sourceTextArea, inputLanguage},\n target: {inputText: targetInputText, textArea: targetTextArea, language: outputLanguage},\n readOnly = false\n } = props;\n const {translate} = context;\n\n const detectScrollbar = true;\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const footer = useMemo(() => {\n const cancelButton = {\n onCancel: handleCancel,\n label: translate(readOnly ? 'close' : 'cancel')\n };\n return {\n cancelButton,\n ...(!readOnly && {\n confirmButton: {\n onConfirm,\n label: translate('confirm'),\n iconName: 'plus',\n disabled,\n color: COLORS.cm_primary_blue\n }\n })\n };\n }, [handleCancel, onConfirm, translate, readOnly, disabled]);\n\n if (!isOpen) return null;\n\n return (\n <BaseModal\n title={translate('translation_title')}\n description={translate('translation_description')}\n isOpen={isOpen}\n onClose={handleClose}\n footer={footer}\n headerIcon={{\n name: 'language',\n backgroundColor: '#D6E6FF'\n }}\n detectScrollbar={detectScrollbar}\n >\n <div className={style.translationModal}>\n <div className={style.horizontalSection}>\n {renderInputGroup({\n title: inputLanguage,\n inputProps: sourceInputText,\n textAreaProps: sourceTextArea,\n disabled: true\n })}\n\n <div className={style.separator} />\n\n {renderInputGroup({\n title: outputLanguage,\n inputProps: targetInputText,\n textAreaProps: targetTextArea,\n disabled: readOnly\n })}\n </div>\n </div>\n </BaseModal>\n );\n};\n\nTranslationModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nTranslationModal.propTypes = {\n isOpen: PropTypes.bool,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func,\n disabled: PropTypes.bool,\n source: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n inputLanguage: PropTypes.string\n }),\n target: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n language: PropTypes.string\n }),\n readOnly: PropTypes.bool\n};\n\nexport default TranslationModal;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,OAAO,EAAEC,WAAW,QAAO,OAAO;AACjD,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,QAAQ,MAAM,2BAA2B;AAChD,OAAOC,KAAK,MAAM,aAAa;AA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AAS,CAAC+D;IACnB,CAAC,CAAC;IACF/B,QAAQ,EAAEhC,SAAS,CAAC+D;EACtB,CAAC,CAAC;EACF7B,QAAQ,EAAElC,SAAS,CAAC2D;AACtB,CAAC;AAED,eAAe3C,gBAAgB","ignoreList":[]}
|
|
@@ -2779,6 +2779,7 @@ declare namespace BrandUpdate {
|
|
|
2779
2779
|
onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
2780
2780
|
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
2781
2781
|
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
2782
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
2782
2783
|
source: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2783
2784
|
inputText: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2784
2785
|
theme: PropTypes.Requireable<string>;
|
|
@@ -9,6 +9,7 @@ declare namespace TranslationModal {
|
|
|
9
9
|
const onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
10
|
const onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
11
|
const onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
const disabled: PropTypes.Requireable<boolean>;
|
|
12
13
|
const source: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
14
|
inputText: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
15
|
theme: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/translation-modal/index.js"],"names":[],"mappings":";AAmBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/translation-modal/index.js"],"names":[],"mappings":";AAmBA,gFA8EC"}
|
|
@@ -36,6 +36,7 @@ const TranslationModal = (props, context) => {
|
|
|
36
36
|
onCancel,
|
|
37
37
|
onConfirm,
|
|
38
38
|
onClose,
|
|
39
|
+
disabled = false,
|
|
39
40
|
source: {
|
|
40
41
|
inputText: sourceInputText,
|
|
41
42
|
textArea: sourceTextArea,
|
|
@@ -58,7 +59,6 @@ const TranslationModal = (props, context) => {
|
|
|
58
59
|
const handleClose = (0, _react.useCallback)(() => {
|
|
59
60
|
onClose();
|
|
60
61
|
}, [onClose]);
|
|
61
|
-
const isValid = !targetInputText.value || !targetTextArea.value;
|
|
62
62
|
const footer = (0, _react.useMemo)(() => {
|
|
63
63
|
const cancelButton = {
|
|
64
64
|
onCancel: handleCancel,
|
|
@@ -71,12 +71,12 @@ const TranslationModal = (props, context) => {
|
|
|
71
71
|
onConfirm,
|
|
72
72
|
label: translate('confirm'),
|
|
73
73
|
iconName: 'plus',
|
|
74
|
-
disabled
|
|
74
|
+
disabled,
|
|
75
75
|
color: _colors.COLORS.cm_primary_blue
|
|
76
76
|
}
|
|
77
77
|
})
|
|
78
78
|
};
|
|
79
|
-
}, [handleCancel, onConfirm, translate, readOnly,
|
|
79
|
+
}, [handleCancel, onConfirm, translate, readOnly, disabled]);
|
|
80
80
|
if (!isOpen) return null;
|
|
81
81
|
return /*#__PURE__*/_react.default.createElement(_baseModal.default, {
|
|
82
82
|
title: translate('translation_title'),
|
|
@@ -115,6 +115,7 @@ TranslationModal.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
115
115
|
onCancel: _propTypes.default.func,
|
|
116
116
|
onConfirm: _propTypes.default.func,
|
|
117
117
|
onClose: _propTypes.default.func,
|
|
118
|
+
disabled: _propTypes.default.bool,
|
|
118
119
|
source: _propTypes.default.shape({
|
|
119
120
|
inputText: _propTypes.default.shape({
|
|
120
121
|
..._inputText.default.propTypes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_baseModal","_provider","_colors","_inputText","_inputTextarea","_style","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","renderInputGroup","title","inputProps","textAreaProps","disabled","createElement","className","style","inputGroup","TranslationModal","props","context","isOpen","onCancel","onConfirm","onClose","source","inputText","sourceInputText","textArea","sourceTextArea","inputLanguage","target","targetInputText","targetTextArea","language","outputLanguage","readOnly","translate","detectScrollbar","handleCancel","useCallback","handleClose","isValid","value","footer","useMemo","cancelButton","label","confirmButton","iconName","color","COLORS","cm_primary_blue","description","headerIcon","name","backgroundColor","translationModal","horizontalSection","separator","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","bool","func","shape","InputText","theme","string","TextArea","_default","exports"],"sources":["../../../src/molecule/translation-modal/index.js"],"sourcesContent":["import React, {useMemo, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport BaseModal from '../base-modal';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport InputText from '../../atom/input-text';\nimport TextArea from '../../atom/input-textarea';\nimport style from './style.css';\n\nconst renderInputGroup = ({title, inputProps, textAreaProps, disabled}) => {\n return (\n <div className={style.inputGroup}>\n <div className={style.title}>{title}</div>\n <InputText {...inputProps} disabled={disabled} />\n <TextArea {...textAreaProps} disabled={disabled} />\n </div>\n );\n};\n\nconst TranslationModal = (props, context) => {\n const {\n isOpen,\n onCancel,\n onConfirm,\n onClose,\n source: {inputText: sourceInputText, textArea: sourceTextArea, inputLanguage},\n target: {inputText: targetInputText, textArea: targetTextArea, language: outputLanguage},\n readOnly = false\n } = props;\n const {translate} = context;\n\n const detectScrollbar = true;\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const isValid = !targetInputText.value || !targetTextArea.value;\n\n const footer = useMemo(() => {\n const cancelButton = {\n onCancel: handleCancel,\n label: translate(readOnly ? 'close' : 'cancel')\n };\n return {\n cancelButton,\n ...(!readOnly && {\n confirmButton: {\n onConfirm,\n label: translate('confirm'),\n iconName: 'plus',\n disabled: !isValid,\n color: COLORS.cm_primary_blue\n }\n })\n };\n }, [handleCancel, onConfirm, translate, readOnly, isValid]);\n\n if (!isOpen) return null;\n\n return (\n <BaseModal\n title={translate('translation_title')}\n description={translate('translation_description')}\n isOpen={isOpen}\n onClose={handleClose}\n footer={footer}\n headerIcon={{\n name: 'language',\n backgroundColor: '#D6E6FF'\n }}\n detectScrollbar={detectScrollbar}\n >\n <div className={style.translationModal}>\n <div className={style.horizontalSection}>\n {renderInputGroup({\n title: inputLanguage,\n inputProps: sourceInputText,\n textAreaProps: sourceTextArea,\n disabled: true\n })}\n\n <div className={style.separator} />\n\n {renderInputGroup({\n title: outputLanguage,\n inputProps: targetInputText,\n textAreaProps: targetTextArea,\n disabled: readOnly\n })}\n </div>\n </div>\n </BaseModal>\n );\n};\n\nTranslationModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nTranslationModal.propTypes = {\n isOpen: PropTypes.bool,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func,\n source: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n inputLanguage: PropTypes.string\n }),\n target: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n language: PropTypes.string\n }),\n readOnly: PropTypes.bool\n};\n\nexport default TranslationModal;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAJ,sBA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I;EACvB5C,MAAM,EAAE0C,kBAAS,CAACG,KAAK,CAAC;IACtB5C,SAAS,EAAEyC,kBAAS,CAACG,KAAK,CAAC;MACzB,GAAGC,kBAAS,CAACR,SAAS;MACtBS,KAAK,EAAEL,kBAAS,CAACM;IACnB,CAAC,CAAC;IACF7C,QAAQ,EAAEuC,kBAAS,CAACG,KAAK,CAAC;MACxB,GAAGI,sBAAQ,CAACX,SAAS;MACrBS,KAAK,EAAEL,kBAAS,CAACM;IACnB,CAAC,CAAC;IACF3C,aAAa,EAAEqC,kBAAS,CAACM;EAC3B,CAAC,CAAC;EACF1C,MAAM,EAAEoC,kBAAS,CAACG,KAAK,CAAC;IACtB5C,SAAS,EAAEyC,kBAAS,CAACG,KAAK,CAAC;MACzB,GAAGC,kBAAS,CAACR,SAAS;MACtBS,KAAK,EAAEL,kBAAS,CAACM;IACnB,CAAC,CAAC;IACF7C,QAAQ,EAAEuC,kBAAS,CAACG,KAAK,CAAC;MACxB,GAAGI,sBAAQ,CAACX,SAAS;MACrBS,KAAK,EAAEL,kBAAS,CAACM;IACnB,CAAC,CAAC;IACFvC,QAAQ,EAAEiC,kBAAS,CAACM;EACtB,CAAC,CAAC;EACFrC,QAAQ,EAAE+B,kBAAS,CAACC;AACtB,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAA3F,OAAA,GAEaiC,gBAAgB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_baseModal","_provider","_colors","_inputText","_inputTextarea","_style","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","renderInputGroup","title","inputProps","textAreaProps","disabled","createElement","className","style","inputGroup","TranslationModal","props","context","isOpen","onCancel","onConfirm","onClose","source","inputText","sourceInputText","textArea","sourceTextArea","inputLanguage","target","targetInputText","targetTextArea","language","outputLanguage","readOnly","translate","detectScrollbar","handleCancel","useCallback","handleClose","footer","useMemo","cancelButton","label","confirmButton","iconName","color","COLORS","cm_primary_blue","description","headerIcon","name","backgroundColor","translationModal","horizontalSection","separator","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","bool","func","shape","InputText","theme","string","TextArea","_default","exports"],"sources":["../../../src/molecule/translation-modal/index.js"],"sourcesContent":["import React, {useMemo, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport BaseModal from '../base-modal';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport InputText from '../../atom/input-text';\nimport TextArea from '../../atom/input-textarea';\nimport style from './style.css';\n\nconst renderInputGroup = ({title, inputProps, textAreaProps, disabled}) => {\n return (\n <div className={style.inputGroup}>\n <div className={style.title}>{title}</div>\n <InputText {...inputProps} disabled={disabled} />\n <TextArea {...textAreaProps} disabled={disabled} />\n </div>\n );\n};\n\nconst TranslationModal = (props, context) => {\n const {\n isOpen,\n onCancel,\n onConfirm,\n onClose,\n disabled = false,\n source: {inputText: sourceInputText, textArea: sourceTextArea, inputLanguage},\n target: {inputText: targetInputText, textArea: targetTextArea, language: outputLanguage},\n readOnly = false\n } = props;\n const {translate} = context;\n\n const detectScrollbar = true;\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const footer = useMemo(() => {\n const cancelButton = {\n onCancel: handleCancel,\n label: translate(readOnly ? 'close' : 'cancel')\n };\n return {\n cancelButton,\n ...(!readOnly && {\n confirmButton: {\n onConfirm,\n label: translate('confirm'),\n iconName: 'plus',\n disabled,\n color: COLORS.cm_primary_blue\n }\n })\n };\n }, [handleCancel, onConfirm, translate, readOnly, disabled]);\n\n if (!isOpen) return null;\n\n return (\n <BaseModal\n title={translate('translation_title')}\n description={translate('translation_description')}\n isOpen={isOpen}\n onClose={handleClose}\n footer={footer}\n headerIcon={{\n name: 'language',\n backgroundColor: '#D6E6FF'\n }}\n detectScrollbar={detectScrollbar}\n >\n <div className={style.translationModal}>\n <div className={style.horizontalSection}>\n {renderInputGroup({\n title: inputLanguage,\n inputProps: sourceInputText,\n textAreaProps: sourceTextArea,\n disabled: true\n })}\n\n <div className={style.separator} />\n\n {renderInputGroup({\n title: outputLanguage,\n inputProps: targetInputText,\n textAreaProps: targetTextArea,\n disabled: readOnly\n })}\n </div>\n </div>\n </BaseModal>\n );\n};\n\nTranslationModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nTranslationModal.propTypes = {\n isOpen: PropTypes.bool,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func,\n disabled: PropTypes.bool,\n source: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n inputLanguage: PropTypes.string\n }),\n target: PropTypes.shape({\n inputText: PropTypes.shape({\n ...InputText.propTypes,\n theme: PropTypes.string\n }),\n textArea: PropTypes.shape({\n ...TextArea.propTypes,\n theme: PropTypes.string\n }),\n language: PropTypes.string\n }),\n readOnly: PropTypes.bool\n};\n\nexport default TranslationModal;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,cAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,MAAA,GAAAN,sBAAA,CAAAF,OAAA;AAAgC,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,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;MACxB,GAAGI,sBAAQ,CAACX,SAAS;MACrBS,KAAK,EAAEL,kBAAS,CAACM;IACnB,CAAC,CAAC;IACFzC,aAAa,EAAEmC,kBAAS,CAACM;EAC3B,CAAC,CAAC;EACFxC,MAAM,EAAEkC,kBAAS,CAACG,KAAK,CAAC;IACtB1C,SAAS,EAAEuC,kBAAS,CAACG,KAAK,CAAC;MACzB,GAAGC,kBAAS,CAACR,SAAS;MACtBS,KAAK,EAAEL,kBAAS,CAACM;IACnB,CAAC,CAAC;IACF3C,QAAQ,EAAEqC,kBAAS,CAACG,KAAK,CAAC;MACxB,GAAGI,sBAAQ,CAACX,SAAS;MACrBS,KAAK,EAAEL,kBAAS,CAACM;IACnB,CAAC,CAAC;IACFrC,QAAQ,EAAE+B,kBAAS,CAACM;EACtB,CAAC,CAAC;EACFnC,QAAQ,EAAE6B,kBAAS,CAACC;AACtB,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAzF,OAAA,GAEaiC,gBAAgB","ignoreList":[]}
|
|
@@ -2779,6 +2779,7 @@ declare namespace BrandUpdate {
|
|
|
2779
2779
|
onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
2780
2780
|
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
2781
2781
|
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
2782
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
2782
2783
|
source: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2783
2784
|
inputText: PropTypes.Requireable<PropTypes.InferProps<{
|
|
2784
2785
|
theme: PropTypes.Requireable<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.34.2-alpha.
|
|
3
|
+
"version": "11.34.2-alpha.78+31103a344",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -165,5 +165,5 @@
|
|
|
165
165
|
"last 2 versions",
|
|
166
166
|
"IE 11"
|
|
167
167
|
],
|
|
168
|
-
"gitHead": "
|
|
168
|
+
"gitHead": "31103a3440219dba1e1dc966d5d3ab15037cecc6"
|
|
169
169
|
}
|