@coorpacademy/components 11.34.4 → 11.34.5-alpha.5
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/organism/icon-editor/index.d.ts.map +1 -1
- package/es/organism/icon-editor/index.js +12 -17
- package/es/organism/icon-editor/index.js.map +1 -1
- package/es/organism/skill-edition/index.d.ts +1065 -1383
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/index.js +115 -5
- package/es/organism/skill-edition/index.js.map +1 -1
- package/es/organism/skill-edition/types.d.ts +87 -371
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/organism/skill-edition/types.js +39 -4
- package/es/organism/skill-edition/types.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +47 -366
- package/lib/organism/icon-editor/index.d.ts.map +1 -1
- package/lib/organism/icon-editor/index.js +12 -17
- package/lib/organism/icon-editor/index.js.map +1 -1
- package/lib/organism/skill-edition/index.d.ts +1065 -1383
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/index.js +115 -5
- package/lib/organism/skill-edition/index.js.map +1 -1
- package/lib/organism/skill-edition/types.d.ts +87 -371
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.js +39 -4
- package/lib/organism/skill-edition/types.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +47 -366
- package/locales/.mtslconfig.json +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB1E,CAAC;AAQF,eAAe,UAAU,CAAC"}
|
|
@@ -3,7 +3,6 @@ import IconPreview from '../../molecule/icon-preview';
|
|
|
3
3
|
import InputText from '../../atom/input-text';
|
|
4
4
|
import ButtonLink from '../../atom/button-link';
|
|
5
5
|
import Provider, { GetTranslateFromContext } from '../../atom/provider';
|
|
6
|
-
import { validateColor } from '../../util/validate-color';
|
|
7
6
|
import { COLORS } from '../../variables/colors';
|
|
8
7
|
import style from './style.css';
|
|
9
8
|
import propTypes from './types';
|
|
@@ -18,28 +17,24 @@ const IconEditor = (props, legacyContext) => {
|
|
|
18
17
|
title,
|
|
19
18
|
icon
|
|
20
19
|
} = iconPreview;
|
|
21
|
-
const
|
|
20
|
+
const inputTextProps = {
|
|
21
|
+
...inputText,
|
|
22
|
+
type: 'text',
|
|
23
|
+
title: translate('icon_editor_color'),
|
|
24
|
+
placeholder: COLORS.white,
|
|
25
|
+
theme: 'coorpmanager',
|
|
26
|
+
disabled: false,
|
|
27
|
+
valid: false,
|
|
28
|
+
inputColor: true
|
|
29
|
+
};
|
|
22
30
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPreview, {
|
|
23
31
|
icon: {
|
|
24
|
-
...icon
|
|
25
|
-
color: isValidColor ? icon.color : COLORS.white
|
|
32
|
+
...icon
|
|
26
33
|
},
|
|
27
34
|
title: title
|
|
28
35
|
}), /*#__PURE__*/React.createElement("div", {
|
|
29
36
|
className: style.inputButtonContainer
|
|
30
|
-
}, /*#__PURE__*/React.createElement(InputText,
|
|
31
|
-
type: "text",
|
|
32
|
-
title: translate('icon_editor_color'),
|
|
33
|
-
placeholder: COLORS.white,
|
|
34
|
-
theme: "coorpmanager",
|
|
35
|
-
description: translate('icon_editor_color'),
|
|
36
|
-
value: icon.color,
|
|
37
|
-
error: icon.color && !isValidColor ? translate('invalid_color') : undefined,
|
|
38
|
-
disabled: false,
|
|
39
|
-
valid: false,
|
|
40
|
-
onChange: inputText.handleChange,
|
|
41
|
-
inputColor: true
|
|
42
|
-
}), /*#__PURE__*/React.createElement(ButtonLink, buttonLink)));
|
|
37
|
+
}, /*#__PURE__*/React.createElement(InputText, inputTextProps), /*#__PURE__*/React.createElement(ButtonLink, buttonLink)));
|
|
43
38
|
};
|
|
44
39
|
IconEditor.contextTypes = {
|
|
45
40
|
translate: Provider.childContextTypes.translate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","IconPreview","InputText","ButtonLink","Provider","GetTranslateFromContext","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","IconPreview","InputText","ButtonLink","Provider","GetTranslateFromContext","COLORS","style","propTypes","IconEditor","props","legacyContext","translate","iconPreview","inputText","buttonLink","title","icon","inputTextProps","type","placeholder","white","theme","disabled","valid","inputColor","createElement","Fragment","className","inputButtonContainer","contextTypes","childContextTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/icon-editor/index.tsx"],"sourcesContent":["import React from 'react';\nimport IconPreview from '../../molecule/icon-preview';\nimport InputText from '../../atom/input-text';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport type {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {IconEditorProps} from './types';\n\nconst IconEditor = (props: IconEditorProps, legacyContext: WebContextValues) => {\n const translate = GetTranslateFromContext(legacyContext);\n const {iconPreview, inputText, buttonLink} = props;\n const {title, icon} = iconPreview;\n\n const inputTextProps = {\n ...inputText,\n type: 'text',\n title: translate('icon_editor_color'),\n placeholder: COLORS.white,\n theme: 'coorpmanager',\n disabled: false,\n valid: false,\n inputColor: true\n };\n\n return (\n <>\n <IconPreview icon={{...icon}} title={title} />\n <div className={style.inputButtonContainer}>\n <InputText {...inputTextProps} />\n <ButtonLink {...buttonLink} />\n </div>\n </>\n );\n};\n\nIconEditor.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nIconEditor.propTypes = propTypes;\n\nexport default IconEditor;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,WAAW,MAAM,6BAA6B;AACrD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,KAAK,MAAM,aAAa;AAC/B,OAAOC,SAAS,MAAyB,SAAS;AAElD,MAAMC,UAAU,GAAGA,CAACC,KAAsB,EAAEC,aAA+B,KAAK;EAC9E,MAAMC,SAAS,GAAGP,uBAAuB,CAACM,aAAa,CAAC;EACxD,MAAM;IAACE,WAAW;IAAEC,SAAS;IAAEC;EAAU,CAAC,GAAGL,KAAK;EAClD,MAAM;IAACM,KAAK;IAAEC;EAAI,CAAC,GAAGJ,WAAW;EAEjC,MAAMK,cAAc,GAAG;IACrB,GAAGJ,SAAS;IACZK,IAAI,EAAE,MAAM;IACZH,KAAK,EAAEJ,SAAS,CAAC,mBAAmB,CAAC;IACrCQ,WAAW,EAAEd,MAAM,CAACe,KAAK;IACzBC,KAAK,EAAE,cAAc;IACrBC,QAAQ,EAAE,KAAK;IACfC,KAAK,EAAE,KAAK;IACZC,UAAU,EAAE;EACd,CAAC;EAED,oBACEzB,KAAA,CAAA0B,aAAA,CAAA1B,KAAA,CAAA2B,QAAA,qBACE3B,KAAA,CAAA0B,aAAA,CAACzB,WAAW;IAACgB,IAAI,EAAE;MAAC,GAAGA;IAAI,CAAE;IAACD,KAAK,EAAEA;EAAM,CAAE,CAAC,eAC9ChB,KAAA,CAAA0B,aAAA;IAAKE,SAAS,EAAErB,KAAK,CAACsB;EAAqB,gBACzC7B,KAAA,CAAA0B,aAAA,CAACxB,SAAS,EAAKgB,cAAiB,CAAC,eACjClB,KAAA,CAAA0B,aAAA,CAACvB,UAAU,EAAKY,UAAa,CAC1B,CACL,CAAC;AAEP,CAAC;AAEDN,UAAU,CAACqB,YAAY,GAAG;EACxBlB,SAAS,EAAER,QAAQ,CAAC2B,iBAAiB,CAACnB;AACxC,CAAC;AAEDH,UAAU,CAACD,SAAS,GAAAwB,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG1B,SAAS;AAEhC,eAAeC,UAAU","ignoreList":[]}
|