@coorpacademy/components 11.33.14 → 11.33.15
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/title/index.d.ts.map +1 -1
- package/es/atom/title/index.js +4 -2
- package/es/atom/title/index.js.map +1 -1
- package/es/atom/title/style.css +6 -0
- package/es/atom/title/types.d.ts +1 -1
- package/es/atom/title/types.d.ts.map +1 -1
- package/es/atom/title/types.js.map +1 -1
- package/es/molecule/icon-preview/index.d.ts +12 -9
- package/es/molecule/icon-preview/index.d.ts.map +1 -1
- package/es/molecule/icon-preview/index.js +8 -13
- package/es/molecule/icon-preview/index.js.map +1 -1
- package/es/molecule/icon-preview/style.css +0 -1
- package/es/molecule/icon-preview/types.d.ts +18 -0
- package/es/molecule/icon-preview/types.d.ts.map +1 -0
- package/es/molecule/icon-preview/types.js +11 -0
- package/es/molecule/icon-preview/types.js.map +1 -0
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +9 -1
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/icon-editor/index.d.ts +73 -23
- package/es/organism/icon-editor/index.d.ts.map +1 -1
- package/es/organism/icon-editor/index.js +22 -35
- package/es/organism/icon-editor/index.js.map +1 -1
- package/es/organism/icon-editor/style.css +5 -5
- package/es/organism/icon-editor/types.d.ts +77 -0
- package/es/organism/icon-editor/types.d.ts.map +1 -0
- package/es/organism/icon-editor/types.js +11 -0
- package/es/organism/icon-editor/types.js.map +1 -0
- package/es/organism/list-item/style.css +3 -2
- package/es/organism/skill-edition/index.d.ts +1661 -0
- package/es/organism/skill-edition/index.d.ts.map +1 -0
- package/es/organism/skill-edition/index.js +26 -0
- package/es/organism/skill-edition/index.js.map +1 -0
- package/es/organism/skill-edition/style.css +23 -0
- package/es/organism/skill-edition/types.d.ts +1674 -0
- package/es/organism/skill-edition/types.d.ts.map +1 -0
- package/es/organism/skill-edition/types.js +18 -0
- package/es/organism/skill-edition/types.js.map +1 -0
- package/es/organism/title-and-input/index.d.ts +64 -0
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/index.js +3 -0
- package/es/organism/title-and-input/index.js.map +1 -1
- package/es/organism/title-and-input/types.d.ts +68 -3
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/title-and-input/types.js +3 -2
- package/es/organism/title-and-input/types.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +1747 -2
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +14 -3
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/lib/atom/title/index.d.ts.map +1 -1
- package/lib/atom/title/index.js +4 -2
- package/lib/atom/title/index.js.map +1 -1
- package/lib/atom/title/style.css +6 -0
- package/lib/atom/title/types.d.ts +1 -1
- package/lib/atom/title/types.d.ts.map +1 -1
- package/lib/atom/title/types.js.map +1 -1
- package/lib/molecule/icon-preview/index.d.ts +12 -9
- package/lib/molecule/icon-preview/index.d.ts.map +1 -1
- package/lib/molecule/icon-preview/index.js +8 -13
- package/lib/molecule/icon-preview/index.js.map +1 -1
- package/lib/molecule/icon-preview/style.css +0 -1
- package/lib/molecule/icon-preview/types.d.ts +18 -0
- package/lib/molecule/icon-preview/types.d.ts.map +1 -0
- package/lib/molecule/icon-preview/types.js +16 -0
- package/lib/molecule/icon-preview/types.js.map +1 -0
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +9 -1
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/icon-editor/index.d.ts +73 -23
- package/lib/organism/icon-editor/index.d.ts.map +1 -1
- package/lib/organism/icon-editor/index.js +24 -35
- package/lib/organism/icon-editor/index.js.map +1 -1
- package/lib/organism/icon-editor/style.css +5 -5
- package/lib/organism/icon-editor/types.d.ts +77 -0
- package/lib/organism/icon-editor/types.d.ts.map +1 -0
- package/lib/organism/icon-editor/types.js +16 -0
- package/lib/organism/icon-editor/types.js.map +1 -0
- package/lib/organism/list-item/style.css +3 -2
- package/lib/organism/skill-edition/index.d.ts +1661 -0
- package/lib/organism/skill-edition/index.d.ts.map +1 -0
- package/lib/organism/skill-edition/index.js +31 -0
- package/lib/organism/skill-edition/index.js.map +1 -0
- package/lib/organism/skill-edition/style.css +23 -0
- package/lib/organism/skill-edition/types.d.ts +1674 -0
- package/lib/organism/skill-edition/types.d.ts.map +1 -0
- package/lib/organism/skill-edition/types.js +23 -0
- package/lib/organism/skill-edition/types.js.map +1 -0
- package/lib/organism/title-and-input/index.d.ts +64 -0
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.js +3 -0
- package/lib/organism/title-and-input/index.js.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +68 -3
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.js +3 -2
- package/lib/organism/title-and-input/types.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +1747 -2
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +14 -3
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/locales/en/global.json +6 -0
- package/locales/fr/global.json +11 -5
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAE/C,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AY,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
|
+
var _brandFormGroup = _interopRequireDefault(require("../../molecule/brand-form-group"));
|
|
7
|
+
var _listItems = _interopRequireDefault(require("../list-items"));
|
|
8
|
+
var _title = _interopRequireDefault(require("../../atom/title"));
|
|
9
|
+
var _titleAndInput = _interopRequireDefault(require("../title-and-input"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const SkillEditionPropTypes = {
|
|
12
|
+
skillInformations: _propTypes.default.shape({
|
|
13
|
+
form: _propTypes.default.shape(_brandFormGroup.default.propTypes).isRequired,
|
|
14
|
+
iconEditor: _propTypes.default.shape(_titleAndInput.default.propTypes)
|
|
15
|
+
}).isRequired,
|
|
16
|
+
translations: _propTypes.default.shape(_listItems.default.propTypes).isRequired,
|
|
17
|
+
content: _propTypes.default.shape({
|
|
18
|
+
title: _propTypes.default.shape(_title.default.propTypes).isRequired,
|
|
19
|
+
listContent: _propTypes.default.shape(_listItems.default.propTypes).isRequired
|
|
20
|
+
})
|
|
21
|
+
};
|
|
22
|
+
var _default = exports.default = SkillEditionPropTypes;
|
|
23
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_brandFormGroup","_listItems","_title","_titleAndInput","e","__esModule","default","SkillEditionPropTypes","skillInformations","PropTypes","shape","form","BrandFormGroup","propTypes","isRequired","iconEditor","TitleAndInput","translations","ListItems","content","title","Title","listContent","_default","exports"],"sources":["../../../src/organism/skill-edition/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport TitleAndInput from '../title-and-input';\n\nconst SkillEditionPropTypes = {\n skillInformations: PropTypes.shape({\n form: PropTypes.shape(BrandFormGroup.propTypes).isRequired,\n iconEditor: PropTypes.shape(TitleAndInput.propTypes)\n }).isRequired,\n translations: PropTypes.shape(ListItems.propTypes).isRequired,\n content: PropTypes.shape({\n title: PropTypes.shape(Title.propTypes).isRequired,\n listContent: PropTypes.shape(ListItems.propTypes).isRequired\n })\n};\n\nexport default SkillEditionPropTypes;\n\ntype ContentProps = {\n title: PropTypes.InferProps<typeof Title.propTypes>;\n listContent: PropTypes.InferProps<typeof ListItems.propTypes>;\n};\n\ntype SkillInformationsProps = {\n form: PropTypes.InferProps<typeof BrandFormGroup.propTypes>;\n iconEditor: PropTypes.InferProps<typeof TitleAndInput.propTypes>;\n};\n\nexport type SkillEditionProps = {\n skillInformations: SkillInformationsProps;\n translations: PropTypes.InferProps<typeof ListItems.propTypes>;\n content: ContentProps;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AAA+C,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/C,MAAMG,qBAAqB,GAAG;EAC5BC,iBAAiB,EAAEC,kBAAS,CAACC,KAAK,CAAC;IACjCC,IAAI,EAAEF,kBAAS,CAACC,KAAK,CAACE,uBAAc,CAACC,SAAS,CAAC,CAACC,UAAU;IAC1DC,UAAU,EAAEN,kBAAS,CAACC,KAAK,CAACM,sBAAa,CAACH,SAAS;EACrD,CAAC,CAAC,CAACC,UAAU;EACbG,YAAY,EAAER,kBAAS,CAACC,KAAK,CAACQ,kBAAS,CAACL,SAAS,CAAC,CAACC,UAAU;EAC7DK,OAAO,EAAEV,kBAAS,CAACC,KAAK,CAAC;IACvBU,KAAK,EAAEX,kBAAS,CAACC,KAAK,CAACW,cAAK,CAACR,SAAS,CAAC,CAACC,UAAU;IAClDQ,WAAW,EAAEb,kBAAS,CAACC,KAAK,CAACQ,kBAAS,CAACL,SAAS,CAAC,CAACC;EACpD,CAAC;AACH,CAAC;AAAC,IAAAS,QAAA,GAAAC,OAAA,CAAAlB,OAAA,GAEaC,qBAAqB","ignoreList":[]}
|
|
@@ -96,6 +96,70 @@ declare const TitleAndInput: {
|
|
|
96
96
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
97
97
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
98
98
|
onSuggestionSelected: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
99
|
+
}> | import("prop-types").InferProps<{
|
|
100
|
+
iconPreview: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
101
|
+
title: import("prop-types").Requireable<string>;
|
|
102
|
+
icon: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
103
|
+
name: import("prop-types").Validator<string>;
|
|
104
|
+
color: import("prop-types").Requireable<string>;
|
|
105
|
+
}>>>;
|
|
106
|
+
}>>;
|
|
107
|
+
inputText: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
108
|
+
autoFocus: import("prop-types").Requireable<boolean>;
|
|
109
|
+
title: import("prop-types").Requireable<string>;
|
|
110
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
111
|
+
defaultValue: import("prop-types").Requireable<string>;
|
|
112
|
+
theme: import("prop-types").Requireable<string>;
|
|
113
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
114
|
+
value: import("prop-types").Requireable<string>;
|
|
115
|
+
hint: import("prop-types").Requireable<string>;
|
|
116
|
+
error: import("prop-types").Requireable<string>;
|
|
117
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
118
|
+
description: import("prop-types").Requireable<string>;
|
|
119
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
120
|
+
type: import("prop-types").Requireable<string>;
|
|
121
|
+
valid: import("prop-types").Requireable<boolean>;
|
|
122
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
123
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
124
|
+
inputColor: import("prop-types").Requireable<boolean>;
|
|
125
|
+
}>>;
|
|
126
|
+
buttonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
127
|
+
type: import("prop-types").Requireable<string>;
|
|
128
|
+
usage: import("prop-types").Requireable<string>;
|
|
129
|
+
label: import("prop-types").Requireable<string>;
|
|
130
|
+
content: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
131
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
132
|
+
tooltipText: import("prop-types").Requireable<string>;
|
|
133
|
+
tooltipPlacement: import("prop-types").Requireable<string>;
|
|
134
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
135
|
+
'data-testid': import("prop-types").Requireable<string>;
|
|
136
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
137
|
+
position: import("prop-types").Requireable<string>;
|
|
138
|
+
type: import("prop-types").Requireable<string>;
|
|
139
|
+
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
140
|
+
name: import("prop-types").Validator<string>;
|
|
141
|
+
color: import("prop-types").Requireable<string>;
|
|
142
|
+
backgroundColor: import("prop-types").Requireable<string>;
|
|
143
|
+
size: import("prop-types").Requireable<number>;
|
|
144
|
+
customStyle: import("prop-types").Requireable<{
|
|
145
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
146
|
+
}>;
|
|
147
|
+
}>>;
|
|
148
|
+
}>>;
|
|
149
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
150
|
+
link: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
151
|
+
href: import("prop-types").Requireable<string>;
|
|
152
|
+
download: import("prop-types").Requireable<boolean>;
|
|
153
|
+
target: import("prop-types").Requireable<string>;
|
|
154
|
+
}>>;
|
|
155
|
+
hoverBackgroundColor: import("prop-types").Requireable<string>;
|
|
156
|
+
hoverColor: import("prop-types").Requireable<string>;
|
|
157
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
158
|
+
className: import("prop-types").Requireable<string>;
|
|
159
|
+
customStyle: import("prop-types").Requireable<{
|
|
160
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
}>>;
|
|
99
163
|
}> | import("prop-types").InferProps<{
|
|
100
164
|
size: import("prop-types").Requireable<string>;
|
|
101
165
|
autoFocus: import("prop-types").Requireable<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";AASA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAGtD,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAI7C,CAAC;AAwBF,QAAA,MAAM,aAAa;YAAW,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -10,6 +10,7 @@ var _inputTextarea = _interopRequireDefault(require("../../atom/input-textarea")
|
|
|
10
10
|
var _select = _interopRequireDefault(require("../../atom/select"));
|
|
11
11
|
var _selectMultiple = _interopRequireDefault(require("../../molecule/select-multiple"));
|
|
12
12
|
var _selectOpponents = _interopRequireDefault(require("../select-opponents"));
|
|
13
|
+
var _iconEditor = _interopRequireDefault(require("../icon-editor"));
|
|
13
14
|
var _types = _interopRequireDefault(require("./types"));
|
|
14
15
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
15
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -22,6 +23,8 @@ const buildInput = (childType, field) => {
|
|
|
22
23
|
switch (childType) {
|
|
23
24
|
case 'autoComplete':
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement(_autocomplete.default, field);
|
|
26
|
+
case 'iconEditor':
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_iconEditor.default, field);
|
|
25
28
|
case 'inputText':
|
|
26
29
|
return /*#__PURE__*/_react.default.createElement(_inputText.default, field);
|
|
27
30
|
case 'inputTextArea':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_title","_autocomplete","_inputText","_inputTextarea","_select","_selectMultiple","_selectOpponents","_types","_style","e","__esModule","default","inputStyle","exports","style","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","childType","field","createElement","TitleAndInput","props","title","titleSize","subtitleSize","type","restTitleProps","titleProps","input","size","styleInput","selectOpponentsContainer","className","propTypes","process","env","NODE_ENV","_default"],"sources":["../../../src/organism/title-and-input/index.tsx"],"sourcesContent":["import React from 'react';\nimport Title from '../../atom/title';\nimport Autocomplete from '../../atom/autocomplete';\nimport InputText from '../../atom/input-text';\nimport InputTextarea from '../../atom/input-textarea';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport SelectOpponents from '../select-opponents';\nimport propTypes, {TitleAndInputProps} from './types';\nimport style from './style.css';\n\nexport const inputStyle: Record<string, string> = {\n default: style.defaultWidth,\n medium: style.mediumWidth,\n large: style.largeWidth\n};\n\nconst buildInput = (\n childType: TitleAndInputProps['childType'],\n field: TitleAndInputProps['field']\n) => {\n switch (childType) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'inputText':\n return <InputText {...field} />;\n case 'inputTextArea':\n return <InputTextarea {...field} />;\n case 'select':\n return <Select {...field} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'selectOpponents':\n return <SelectOpponents {...field} />;\n }\n};\n\nconst TitleAndInput = (props: TitleAndInputProps) => {\n const {\n title: {titleSize, subtitleSize, type, ...restTitleProps},\n field,\n childType\n } = props;\n const titleProps = {\n ...restTitleProps,\n titleSize: titleSize ?? 'medium',\n subtitleSize: subtitleSize ?? 'small-without-margin',\n type: type ?? 'form-group'\n };\n const input = buildInput(childType, field);\n const {size = 'default'} = field;\n const styleInput =\n childType === 'selectOpponents' ? style.selectOpponentsContainer : inputStyle[size];\n\n return (\n <div>\n <Title {...titleProps} />\n <div className={styleInput}>{input}</div>\n </div>\n );\n};\n\nTitleAndInput.propTypes = propTypes;\n\nexport default TitleAndInput;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,OAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,eAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,gBAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_title","_autocomplete","_inputText","_inputTextarea","_select","_selectMultiple","_selectOpponents","_iconEditor","_types","_style","e","__esModule","default","inputStyle","exports","style","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","childType","field","createElement","TitleAndInput","props","title","titleSize","subtitleSize","type","restTitleProps","titleProps","input","size","styleInput","selectOpponentsContainer","className","propTypes","process","env","NODE_ENV","_default"],"sources":["../../../src/organism/title-and-input/index.tsx"],"sourcesContent":["import React from 'react';\nimport Title from '../../atom/title';\nimport Autocomplete from '../../atom/autocomplete';\nimport InputText from '../../atom/input-text';\nimport InputTextarea from '../../atom/input-textarea';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport SelectOpponents from '../select-opponents';\nimport IconEditor from '../icon-editor';\nimport propTypes, {TitleAndInputProps} from './types';\nimport style from './style.css';\n\nexport const inputStyle: Record<string, string> = {\n default: style.defaultWidth,\n medium: style.mediumWidth,\n large: style.largeWidth\n};\n\nconst buildInput = (\n childType: TitleAndInputProps['childType'],\n field: TitleAndInputProps['field']\n) => {\n switch (childType) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'iconEditor':\n return <IconEditor {...field} />;\n case 'inputText':\n return <InputText {...field} />;\n case 'inputTextArea':\n return <InputTextarea {...field} />;\n case 'select':\n return <Select {...field} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'selectOpponents':\n return <SelectOpponents {...field} />;\n }\n};\n\nconst TitleAndInput = (props: TitleAndInputProps) => {\n const {\n title: {titleSize, subtitleSize, type, ...restTitleProps},\n field,\n childType\n } = props;\n const titleProps = {\n ...restTitleProps,\n titleSize: titleSize ?? 'medium',\n subtitleSize: subtitleSize ?? 'small-without-margin',\n type: type ?? 'form-group'\n };\n const input = buildInput(childType, field);\n const {size = 'default'} = field;\n const styleInput =\n childType === 'selectOpponents' ? style.selectOpponentsContainer : inputStyle[size];\n\n return (\n <div>\n <Title {...titleProps} />\n <div className={styleInput}>{input}</div>\n </div>\n );\n};\n\nTitleAndInput.propTypes = propTypes;\n\nexport default TitleAndInput;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,OAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,eAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,gBAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,WAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,MAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,MAAA,GAAAX,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzB,MAAMG,UAAkC,GAAAC,OAAA,CAAAD,UAAA,GAAG;EAChDD,OAAO,EAAEG,cAAK,CAACC,YAAY;EAC3BC,MAAM,EAAEF,cAAK,CAACG,WAAW;EACzBC,KAAK,EAAEJ,cAAK,CAACK;AACf,CAAC;AAED,MAAMC,UAAU,GAAGA,CACjBC,SAA0C,EAC1CC,KAAkC,KAC/B;EACH,QAAQD,SAAS;IACf,KAAK,cAAc;MACjB,oBAAOzB,MAAA,CAAAe,OAAA,CAAAY,aAAA,CAACvB,aAAA,CAAAW,OAAY,EAAKW,KAAQ,CAAC;IACpC,KAAK,YAAY;MACf,oBAAO1B,MAAA,CAAAe,OAAA,CAAAY,aAAA,CAAC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AAA,CAAAY,aAAA,2BACE3B,MAAA,CAAAe,OAAA,CAAAY,aAAA,CAACxB,MAAA,CAAAY,OAAK,EAAKoB,UAAa,CAAC,eACzBnC,MAAA,CAAAe,OAAA,CAAAY,aAAA;IAAKa,SAAS,EAAEF;EAAW,GAAEF,KAAW,CACrC,CAAC;AAEV,CAAC;AAEDR,aAAa,CAACa,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAA5B,OAAA,CAAAF,OAAA,GAErBa,aAAa","ignoreList":[]}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Autocomplete from '../../atom/autocomplete';
|
|
4
|
+
import Title from '../../atom/title';
|
|
4
5
|
import SelectMultiple from '../../molecule/select-multiple';
|
|
5
6
|
import { SelectOpponentsProps } from '../select-opponents/types';
|
|
6
7
|
import InputText from '../../atom/input-text';
|
|
7
8
|
import InputTextarea from '../../atom/input-textarea';
|
|
8
9
|
import Select from '../../atom/select';
|
|
9
|
-
import {
|
|
10
|
+
import { IconEditorProps } from '../icon-editor/types';
|
|
10
11
|
declare const propTypes: {
|
|
11
12
|
title: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
12
13
|
title: PropTypes.Requireable<string>;
|
|
@@ -100,6 +101,70 @@ declare const propTypes: {
|
|
|
100
101
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
101
102
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
102
103
|
onSuggestionSelected: PropTypes.Requireable<(...args: any[]) => any>;
|
|
104
|
+
}> | PropTypes.InferProps<{
|
|
105
|
+
iconPreview: PropTypes.Requireable<PropTypes.InferProps<{
|
|
106
|
+
title: PropTypes.Requireable<string>;
|
|
107
|
+
icon: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
108
|
+
name: PropTypes.Validator<string>;
|
|
109
|
+
color: PropTypes.Requireable<string>;
|
|
110
|
+
}>>>;
|
|
111
|
+
}>>;
|
|
112
|
+
inputText: PropTypes.Requireable<PropTypes.InferProps<{
|
|
113
|
+
autoFocus: PropTypes.Requireable<boolean>;
|
|
114
|
+
title: PropTypes.Requireable<string>;
|
|
115
|
+
placeholder: PropTypes.Requireable<string>;
|
|
116
|
+
defaultValue: PropTypes.Requireable<string>;
|
|
117
|
+
theme: PropTypes.Requireable<string>;
|
|
118
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
119
|
+
value: PropTypes.Requireable<string>;
|
|
120
|
+
hint: PropTypes.Requireable<string>;
|
|
121
|
+
error: PropTypes.Requireable<string>;
|
|
122
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
123
|
+
description: PropTypes.Requireable<string>;
|
|
124
|
+
modified: PropTypes.Requireable<boolean>;
|
|
125
|
+
type: PropTypes.Requireable<string>;
|
|
126
|
+
valid: PropTypes.Requireable<boolean>;
|
|
127
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
128
|
+
'data-name': PropTypes.Requireable<string>;
|
|
129
|
+
inputColor: PropTypes.Requireable<boolean>;
|
|
130
|
+
}>>;
|
|
131
|
+
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
132
|
+
type: PropTypes.Requireable<string>;
|
|
133
|
+
usage: PropTypes.Requireable<string>;
|
|
134
|
+
label: PropTypes.Requireable<string>;
|
|
135
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
136
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
137
|
+
tooltipText: PropTypes.Requireable<string>;
|
|
138
|
+
tooltipPlacement: PropTypes.Requireable<string>;
|
|
139
|
+
'data-name': PropTypes.Requireable<string>;
|
|
140
|
+
'data-testid': PropTypes.Requireable<string>;
|
|
141
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
142
|
+
position: PropTypes.Requireable<string>;
|
|
143
|
+
type: PropTypes.Requireable<string>;
|
|
144
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
145
|
+
name: PropTypes.Validator<string>;
|
|
146
|
+
color: PropTypes.Requireable<string>;
|
|
147
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
148
|
+
size: PropTypes.Requireable<number>;
|
|
149
|
+
customStyle: PropTypes.Requireable<{
|
|
150
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
151
|
+
}>;
|
|
152
|
+
}>>;
|
|
153
|
+
}>>;
|
|
154
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
155
|
+
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
156
|
+
href: PropTypes.Requireable<string>;
|
|
157
|
+
download: PropTypes.Requireable<boolean>;
|
|
158
|
+
target: PropTypes.Requireable<string>;
|
|
159
|
+
}>>;
|
|
160
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
161
|
+
hoverColor: PropTypes.Requireable<string>;
|
|
162
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
163
|
+
className: PropTypes.Requireable<string>;
|
|
164
|
+
customStyle: PropTypes.Requireable<{
|
|
165
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
166
|
+
}>;
|
|
167
|
+
}>>;
|
|
103
168
|
}> | PropTypes.InferProps<{
|
|
104
169
|
size: PropTypes.Requireable<string>;
|
|
105
170
|
autoFocus: PropTypes.Requireable<boolean>;
|
|
@@ -348,8 +413,8 @@ declare const propTypes: {
|
|
|
348
413
|
};
|
|
349
414
|
export declare type ValidInputSize = 'default' | 'medium' | 'large';
|
|
350
415
|
export declare type TitleAndInputProps = {
|
|
351
|
-
title:
|
|
352
|
-
field: React.ComponentProps<typeof Autocomplete> | (React.ComponentProps<typeof InputText> & {
|
|
416
|
+
title: React.ComponentProps<typeof Title>;
|
|
417
|
+
field: React.ComponentProps<typeof Autocomplete> | IconEditorProps | (React.ComponentProps<typeof InputText> & {
|
|
353
418
|
size?: ValidInputSize;
|
|
354
419
|
}) | (React.ComponentProps<typeof InputTextarea> & {
|
|
355
420
|
size?: ValidInputSize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC/D,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAIrD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bd,CAAC;AAEF,oBAAY,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5D,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;IAC1C,KAAK,EACD,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,GACzC,eAAe,GACf,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;QAAC,IAAI,CAAC,EAAE,cAAc,CAAA;KAAC,CAAC,GAClE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,GAAG;QAAC,IAAI,CAAC,EAAE,cAAc,CAAA;KAAC,CAAC,GACtE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;QAAC,IAAI,CAAC,EAAE,cAAc,CAAA;KAAC,CAAC,GAC/D,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAC3C,oBAAoB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -10,11 +10,12 @@ var _selectOpponents = _interopRequireDefault(require("../select-opponents"));
|
|
|
10
10
|
var _inputText = _interopRequireDefault(require("../../atom/input-text"));
|
|
11
11
|
var _inputTextarea = _interopRequireDefault(require("../../atom/input-textarea"));
|
|
12
12
|
var _select = _interopRequireDefault(require("../../atom/select"));
|
|
13
|
+
var _iconEditor = _interopRequireDefault(require("../icon-editor"));
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
15
|
const validInputSize = ['default', 'medium', 'large'];
|
|
15
16
|
const propTypes = {
|
|
16
17
|
title: _propTypes.default.shape(_title.default.propTypes).isRequired,
|
|
17
|
-
field: _propTypes.default.oneOfType([_propTypes.default.shape(_autocomplete.default.propTypes), _propTypes.default.shape({
|
|
18
|
+
field: _propTypes.default.oneOfType([_propTypes.default.shape(_autocomplete.default.propTypes), _propTypes.default.shape(_iconEditor.default.propTypes), _propTypes.default.shape({
|
|
18
19
|
..._inputText.default.propTypes,
|
|
19
20
|
size: _propTypes.default.oneOf(validInputSize)
|
|
20
21
|
}), _propTypes.default.shape({
|
|
@@ -24,7 +25,7 @@ const propTypes = {
|
|
|
24
25
|
..._select.default.propTypes,
|
|
25
26
|
size: _propTypes.default.oneOf(validInputSize)
|
|
26
27
|
}), _propTypes.default.shape(_selectMultiple.default.propTypes), _propTypes.default.shape(_selectOpponents.default.propTypes)]),
|
|
27
|
-
childType: _propTypes.default.oneOf(['autoComplete', 'inputText', 'inputTextArea', 'select', 'selectMultiple', 'selectOpponents']).isRequired
|
|
28
|
+
childType: _propTypes.default.oneOf(['autoComplete', 'iconEditor', 'inputText', 'inputTextArea', 'select', 'selectMultiple', 'selectOpponents']).isRequired
|
|
28
29
|
};
|
|
29
30
|
var _default = exports.default = propTypes;
|
|
30
31
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_autocomplete","_title","_selectMultiple","_selectOpponents","_inputText","_inputTextarea","_select","e","__esModule","default","validInputSize","propTypes","title","PropTypes","shape","Title","isRequired","field","oneOfType","Autocomplete","InputText","size","oneOf","InputTextarea","Select","SelectMultiple","SelectOpponents","childType","_default","exports"],"sources":["../../../src/organism/title-and-input/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Autocomplete from '../../atom/autocomplete';\nimport Title from '../../atom/title';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport SelectOpponents from '../select-opponents';\nimport {SelectOpponentsProps} from '../select-opponents/types';\nimport InputText from '../../atom/input-text';\nimport InputTextarea from '../../atom/input-textarea';\nimport Select from '../../atom/select';\nimport {
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_autocomplete","_title","_selectMultiple","_selectOpponents","_inputText","_inputTextarea","_select","_iconEditor","e","__esModule","default","validInputSize","propTypes","title","PropTypes","shape","Title","isRequired","field","oneOfType","Autocomplete","IconEditor","InputText","size","oneOf","InputTextarea","Select","SelectMultiple","SelectOpponents","childType","_default","exports"],"sources":["../../../src/organism/title-and-input/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Autocomplete from '../../atom/autocomplete';\nimport Title from '../../atom/title';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport SelectOpponents from '../select-opponents';\nimport {SelectOpponentsProps} from '../select-opponents/types';\nimport InputText from '../../atom/input-text';\nimport InputTextarea from '../../atom/input-textarea';\nimport Select from '../../atom/select';\nimport IconEditor from '../icon-editor';\nimport {IconEditorProps} from '../icon-editor/types';\n\nconst validInputSize = ['default', 'medium', 'large'];\n\nconst propTypes = {\n title: PropTypes.shape(Title.propTypes).isRequired,\n field: PropTypes.oneOfType([\n PropTypes.shape(Autocomplete.propTypes),\n PropTypes.shape(IconEditor.propTypes),\n PropTypes.shape({\n ...InputText.propTypes,\n size: PropTypes.oneOf(validInputSize)\n }),\n PropTypes.shape({\n ...InputTextarea.propTypes,\n size: PropTypes.oneOf(validInputSize)\n }),\n PropTypes.shape({...Select.propTypes, size: PropTypes.oneOf(validInputSize)}),\n PropTypes.shape(SelectMultiple.propTypes),\n PropTypes.shape(SelectOpponents.propTypes)\n ]),\n childType: PropTypes.oneOf([\n 'autoComplete',\n 'iconEditor',\n 'inputText',\n 'inputTextArea',\n 'select',\n 'selectMultiple',\n 'selectOpponents'\n ]).isRequired\n};\n\nexport type ValidInputSize = 'default' | 'medium' | 'large';\n\nexport type TitleAndInputProps = {\n title: React.ComponentProps<typeof Title>;\n field:\n | React.ComponentProps<typeof Autocomplete>\n | IconEditorProps\n | (React.ComponentProps<typeof InputText> & {size?: ValidInputSize})\n | (React.ComponentProps<typeof InputTextarea> & {size?: ValidInputSize})\n | (React.ComponentProps<typeof Select> & {size?: ValidInputSize})\n | React.ComponentProps<typeof SelectMultiple>\n | SelectOpponentsProps;\n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