@coorpacademy/components 11.34.4 → 11.34.5-alpha.8
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 +4 -4
- 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/icon-editor/types.d.ts +4 -4
- package/es/organism/icon-editor/types.js +2 -2
- package/es/organism/icon-editor/types.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 +117 -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/organism/title-and-input/index.d.ts +4 -4
- package/es/organism/title-and-input/types.d.ts +4 -4
- package/es/template/back-office/brand-update/index.d.ts +47 -366
- package/lib/organism/icon-editor/index.d.ts +4 -4
- 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/icon-editor/types.d.ts +4 -4
- package/lib/organism/icon-editor/types.js +2 -2
- package/lib/organism/icon-editor/types.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 +117 -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/organism/title-and-input/index.d.ts +4 -4
- package/lib/organism/title-and-input/types.d.ts +4 -4
- package/lib/template/back-office/brand-update/index.d.ts +47 -366
- package/locales/.mtslconfig.json +1 -0
- package/package.json +2 -2
- package/es/util/validate-color.d.ts +0 -2
- package/es/util/validate-color.d.ts.map +0 -1
- package/es/util/validate-color.js +0 -10
- package/es/util/validate-color.js.map +0 -1
- package/lib/util/validate-color.d.ts +0 -2
- package/lib/util/validate-color.d.ts.map +0 -1
- package/lib/util/validate-color.js +0 -16
- package/lib/util/validate-color.js.map +0 -1
|
@@ -7,14 +7,14 @@ declare const IconEditor: {
|
|
|
7
7
|
translate: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
8
8
|
};
|
|
9
9
|
propTypes: {
|
|
10
|
-
iconPreview: import("prop-types").
|
|
10
|
+
iconPreview: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
11
11
|
title: import("prop-types").Requireable<string>;
|
|
12
12
|
icon: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
13
13
|
name: import("prop-types").Validator<string>;
|
|
14
14
|
color: import("prop-types").Requireable<string>;
|
|
15
15
|
}>>>;
|
|
16
|
-
}
|
|
17
|
-
inputText: import("prop-types").
|
|
16
|
+
}>>>;
|
|
17
|
+
inputText: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
18
18
|
autoFocus: import("prop-types").Requireable<boolean>;
|
|
19
19
|
title: import("prop-types").Requireable<string>;
|
|
20
20
|
placeholder: import("prop-types").Requireable<string>;
|
|
@@ -32,7 +32,7 @@ declare const IconEditor: {
|
|
|
32
32
|
'aria-label': import("prop-types").Requireable<string>;
|
|
33
33
|
'data-name': import("prop-types").Requireable<string>;
|
|
34
34
|
inputColor: import("prop-types").Requireable<boolean>;
|
|
35
|
-
}
|
|
35
|
+
}>>>;
|
|
36
36
|
buttonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
37
37
|
type: import("prop-types").Requireable<string>;
|
|
38
38
|
usage: import("prop-types").Requireable<string>;
|
|
@@ -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), buttonLink ? /*#__PURE__*/React.createElement(ButtonLink, buttonLink) : null));
|
|
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 {...buttonLink} /> : null}\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,EAChCH,UAAU,gBAAGf,KAAA,CAAA0B,aAAA,CAACvB,UAAU,EAAKY,UAAa,CAAC,GAAG,IAC5C,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":[]}
|
|
@@ -4,14 +4,14 @@ import { IconPreviewProps } from '../../molecule/icon-preview/types';
|
|
|
4
4
|
import InputText from '../../atom/input-text';
|
|
5
5
|
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
6
6
|
declare const IconEditorPropTypes: {
|
|
7
|
-
iconPreview: PropTypes.
|
|
7
|
+
iconPreview: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
8
8
|
title: PropTypes.Requireable<string>;
|
|
9
9
|
icon: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
10
10
|
name: PropTypes.Validator<string>;
|
|
11
11
|
color: PropTypes.Requireable<string>;
|
|
12
12
|
}>>>;
|
|
13
|
-
}
|
|
14
|
-
inputText: PropTypes.
|
|
13
|
+
}>>>;
|
|
14
|
+
inputText: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
15
15
|
autoFocus: PropTypes.Requireable<boolean>;
|
|
16
16
|
title: PropTypes.Requireable<string>;
|
|
17
17
|
placeholder: PropTypes.Requireable<string>;
|
|
@@ -29,7 +29,7 @@ declare const IconEditorPropTypes: {
|
|
|
29
29
|
'aria-label': PropTypes.Requireable<string>;
|
|
30
30
|
'data-name': PropTypes.Requireable<string>;
|
|
31
31
|
inputColor: PropTypes.Requireable<boolean>;
|
|
32
|
-
}
|
|
32
|
+
}>>>;
|
|
33
33
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
34
34
|
type: PropTypes.Requireable<string>;
|
|
35
35
|
usage: PropTypes.Requireable<string>;
|
|
@@ -3,8 +3,8 @@ import IconPreview from '../../molecule/icon-preview';
|
|
|
3
3
|
import InputText from '../../atom/input-text';
|
|
4
4
|
import ButtonLink from '../../atom/button-link';
|
|
5
5
|
const IconEditorPropTypes = {
|
|
6
|
-
iconPreview: PropTypes.shape(IconPreview.propTypes),
|
|
7
|
-
inputText: PropTypes.shape(InputText.propTypes),
|
|
6
|
+
iconPreview: PropTypes.shape(IconPreview.propTypes).isRequired,
|
|
7
|
+
inputText: PropTypes.shape(InputText.propTypes).isRequired,
|
|
8
8
|
buttonLink: PropTypes.shape(ButtonLink.propTypes)
|
|
9
9
|
};
|
|
10
10
|
export default IconEditorPropTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","IconPreview","InputText","ButtonLink","IconEditorPropTypes","iconPreview","shape","propTypes","inputText","buttonLink"],"sources":["../../../src/organism/icon-editor/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {IconPreviewProps} from '../../molecule/icon-preview/types';\nimport IconPreview from '../../molecule/icon-preview';\nimport InputText from '../../atom/input-text';\nimport ButtonLink from '../../atom/button-link';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\n\nconst IconEditorPropTypes = {\n iconPreview: PropTypes.shape(IconPreview.propTypes),\n inputText: PropTypes.shape(InputText.propTypes),\n buttonLink: PropTypes.shape(ButtonLink.propTypes)\n};\n\nexport default IconEditorPropTypes;\n\nexport type IconEditorProps = {\n iconPreview: IconPreviewProps;\n inputText: React.ComponentProps<typeof InputText>;\n buttonLink?: ButtonLinkProps;\n};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,OAAOC,WAAW,MAAM,6BAA6B;AACrD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,UAAU,MAAM,wBAAwB;AAG/C,MAAMC,mBAAmB,GAAG;EAC1BC,WAAW,EAAEL,SAAS,CAACM,KAAK,CAACL,WAAW,CAACM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","IconPreview","InputText","ButtonLink","IconEditorPropTypes","iconPreview","shape","propTypes","isRequired","inputText","buttonLink"],"sources":["../../../src/organism/icon-editor/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {IconPreviewProps} from '../../molecule/icon-preview/types';\nimport IconPreview from '../../molecule/icon-preview';\nimport InputText from '../../atom/input-text';\nimport ButtonLink from '../../atom/button-link';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\n\nconst IconEditorPropTypes = {\n iconPreview: PropTypes.shape(IconPreview.propTypes).isRequired,\n inputText: PropTypes.shape(InputText.propTypes).isRequired,\n buttonLink: PropTypes.shape(ButtonLink.propTypes)\n};\n\nexport default IconEditorPropTypes;\n\nexport type IconEditorProps = {\n iconPreview: IconPreviewProps;\n inputText: React.ComponentProps<typeof InputText>;\n buttonLink?: ButtonLinkProps;\n};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,OAAOC,WAAW,MAAM,6BAA6B;AACrD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,UAAU,MAAM,wBAAwB;AAG/C,MAAMC,mBAAmB,GAAG;EAC1BC,WAAW,EAAEL,SAAS,CAACM,KAAK,CAACL,WAAW,CAACM,SAAS,CAAC,CAACC,UAAU;EAC9DC,SAAS,EAAET,SAAS,CAACM,KAAK,CAACJ,SAAS,CAACK,SAAS,CAAC,CAACC,UAAU;EAC1DE,UAAU,EAAEV,SAAS,CAACM,KAAK,CAACH,UAAU,CAACI,SAAS;AAClD,CAAC;AAED,eAAeH,mBAAmB","ignoreList":[]}
|