@coorpacademy/components 11.34.4 → 11.34.5-alpha.12
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/header-with-actions/index.d.ts +22 -8
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +85 -7
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/header-with-actions/types.d.ts +44 -13
- package/es/organism/header-with-actions/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/types.js +22 -6
- package/es/organism/header-with-actions/types.js.map +1 -1
- 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 +115 -5
- package/es/organism/skill-edition/index.js.map +1 -1
- package/es/organism/skill-edition/style.css +2 -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 +77 -376
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +20 -7
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +4 -1
- package/lib/organism/header-with-actions/index.d.ts +22 -8
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +85 -7
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/header-with-actions/types.d.ts +44 -13
- package/lib/organism/header-with-actions/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/types.js +22 -6
- package/lib/organism/header-with-actions/types.js.map +1 -1
- 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 +115 -5
- package/lib/organism/skill-edition/index.js.map +1 -1
- package/lib/organism/skill-edition/style.css +2 -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 +77 -376
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +20 -7
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +4 -1
- 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,7 +7,6 @@ var _iconPreview = _interopRequireDefault(require("../../molecule/icon-preview")
|
|
|
7
7
|
var _inputText = _interopRequireDefault(require("../../atom/input-text"));
|
|
8
8
|
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
9
9
|
var _provider = _interopRequireWildcard(require("../../atom/provider"));
|
|
10
|
-
var _validateColor = require("../../util/validate-color");
|
|
11
10
|
var _colors = require("../../variables/colors");
|
|
12
11
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
13
12
|
var _types = _interopRequireDefault(require("./types"));
|
|
@@ -25,28 +24,24 @@ const IconEditor = (props, legacyContext) => {
|
|
|
25
24
|
title,
|
|
26
25
|
icon
|
|
27
26
|
} = iconPreview;
|
|
28
|
-
const
|
|
27
|
+
const inputTextProps = {
|
|
28
|
+
...inputText,
|
|
29
|
+
type: 'text',
|
|
30
|
+
title: translate('icon_editor_color'),
|
|
31
|
+
placeholder: _colors.COLORS.white,
|
|
32
|
+
theme: 'coorpmanager',
|
|
33
|
+
disabled: false,
|
|
34
|
+
valid: false,
|
|
35
|
+
inputColor: true
|
|
36
|
+
};
|
|
29
37
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_iconPreview.default, {
|
|
30
38
|
icon: {
|
|
31
|
-
...icon
|
|
32
|
-
color: isValidColor ? icon.color : _colors.COLORS.white
|
|
39
|
+
...icon
|
|
33
40
|
},
|
|
34
41
|
title: title
|
|
35
42
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
36
43
|
className: _style.default.inputButtonContainer
|
|
37
|
-
}, /*#__PURE__*/_react.default.createElement(_inputText.default,
|
|
38
|
-
type: "text",
|
|
39
|
-
title: translate('icon_editor_color'),
|
|
40
|
-
placeholder: _colors.COLORS.white,
|
|
41
|
-
theme: "coorpmanager",
|
|
42
|
-
description: translate('icon_editor_color'),
|
|
43
|
-
value: icon.color,
|
|
44
|
-
error: icon.color && !isValidColor ? translate('invalid_color') : undefined,
|
|
45
|
-
disabled: false,
|
|
46
|
-
valid: false,
|
|
47
|
-
onChange: inputText.handleChange,
|
|
48
|
-
inputColor: true
|
|
49
|
-
}), /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)));
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_inputText.default, inputTextProps), buttonLink ? /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink) : null));
|
|
50
45
|
};
|
|
51
46
|
IconEditor.contextTypes = {
|
|
52
47
|
translate: _provider.default.childContextTypes.translate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_iconPreview","_inputText","_buttonLink","_provider","_interopRequireWildcard","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_iconPreview","_inputText","_buttonLink","_provider","_interopRequireWildcard","_colors","_style","_types","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","IconEditor","props","legacyContext","translate","GetTranslateFromContext","iconPreview","inputText","buttonLink","title","icon","inputTextProps","type","placeholder","COLORS","white","theme","disabled","valid","inputColor","createElement","Fragment","className","style","inputButtonContainer","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","_default","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,MAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAmD,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAA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CAAE;IAACD,KAAK,EAAEA;EAAM,CAAE,CAAC,eAC9CvC,MAAA,CAAAiB,OAAA,CAAAiC,aAAA;IAAKE,SAAS,EAAEC,cAAK,CAACC;EAAqB,gBACzCtD,MAAA,CAAAiB,OAAA,CAAAiC,aAAA,CAAC9C,UAAA,CAAAa,OAAS,EAAKwB,cAAiB,CAAC,EAChCH,UAAU,gBAAGtC,MAAA,CAAAiB,OAAA,CAAAiC,aAAA,CAAC7C,WAAA,CAAAY,OAAU,EAAKqB,UAAa,CAAC,GAAG,IAC5C,CACL,CAAC;AAEP,CAAC;AAEDP,UAAU,CAACwB,YAAY,GAAG;EACxBrB,SAAS,EAAEsB,iBAAQ,CAACC,iBAAiB,CAACvB;AACxC,CAAC;AAEDH,UAAU,CAAC2B,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAA9C,OAAA,GAElBc,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>;
|
|
@@ -8,8 +8,8 @@ var _inputText = _interopRequireDefault(require("../../atom/input-text"));
|
|
|
8
8
|
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
const IconEditorPropTypes = {
|
|
11
|
-
iconPreview: _propTypes.default.shape(_iconPreview.default.propTypes),
|
|
12
|
-
inputText: _propTypes.default.shape(_inputText.default.propTypes),
|
|
11
|
+
iconPreview: _propTypes.default.shape(_iconPreview.default.propTypes).isRequired,
|
|
12
|
+
inputText: _propTypes.default.shape(_inputText.default.propTypes).isRequired,
|
|
13
13
|
buttonLink: _propTypes.default.shape(_buttonLink.default.propTypes)
|
|
14
14
|
};
|
|
15
15
|
var _default = exports.default = IconEditorPropTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_iconPreview","_inputText","_buttonLink","e","__esModule","default","IconEditorPropTypes","iconPreview","PropTypes","shape","IconPreview","propTypes","inputText","InputText","buttonLink","ButtonLink","_default","exports"],"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,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAgD,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGhD,MAAMG,mBAAmB,GAAG;EAC1BC,WAAW,EAAEC,kBAAS,CAACC,KAAK,CAACC,oBAAW,CAACC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_iconPreview","_inputText","_buttonLink","e","__esModule","default","IconEditorPropTypes","iconPreview","PropTypes","shape","IconPreview","propTypes","isRequired","inputText","InputText","buttonLink","ButtonLink","_default","exports"],"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,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAgD,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGhD,MAAMG,mBAAmB,GAAG;EAC1BC,WAAW,EAAEC,kBAAS,CAACC,KAAK,CAACC,oBAAW,CAACC,SAAS,CAAC,CAACC,UAAU;EAC9DC,SAAS,EAAEL,kBAAS,CAACC,KAAK,CAACK,kBAAS,CAACH,SAAS,CAAC,CAACC,UAAU;EAC1DG,UAAU,EAAEP,kBAAS,CAACC,KAAK,CAACO,mBAAU,CAACL,SAAS;AAClD,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAEaC,mBAAmB","ignoreList":[]}
|