@coorpacademy/components 11.33.14 → 11.33.16

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.
Files changed (129) hide show
  1. package/es/atom/title/index.d.ts.map +1 -1
  2. package/es/atom/title/index.js +4 -2
  3. package/es/atom/title/index.js.map +1 -1
  4. package/es/atom/title/style.css +6 -0
  5. package/es/atom/title/types.d.ts +1 -1
  6. package/es/atom/title/types.d.ts.map +1 -1
  7. package/es/atom/title/types.js.map +1 -1
  8. package/es/molecule/icon-preview/index.d.ts +12 -9
  9. package/es/molecule/icon-preview/index.d.ts.map +1 -1
  10. package/es/molecule/icon-preview/index.js +8 -13
  11. package/es/molecule/icon-preview/index.js.map +1 -1
  12. package/es/molecule/icon-preview/style.css +0 -1
  13. package/es/molecule/icon-preview/types.d.ts +18 -0
  14. package/es/molecule/icon-preview/types.d.ts.map +1 -0
  15. package/es/molecule/icon-preview/types.js +11 -0
  16. package/es/molecule/icon-preview/types.js.map +1 -0
  17. package/es/organism/header-with-actions/index.d.ts.map +1 -1
  18. package/es/organism/header-with-actions/index.js +9 -1
  19. package/es/organism/header-with-actions/index.js.map +1 -1
  20. package/es/organism/icon-editor/index.d.ts +73 -23
  21. package/es/organism/icon-editor/index.d.ts.map +1 -1
  22. package/es/organism/icon-editor/index.js +22 -35
  23. package/es/organism/icon-editor/index.js.map +1 -1
  24. package/es/organism/icon-editor/style.css +5 -5
  25. package/es/organism/icon-editor/types.d.ts +77 -0
  26. package/es/organism/icon-editor/types.d.ts.map +1 -0
  27. package/es/organism/icon-editor/types.js +11 -0
  28. package/es/organism/icon-editor/types.js.map +1 -0
  29. package/es/organism/list-item/style.css +3 -2
  30. package/es/organism/skill-edition/index.d.ts +1661 -0
  31. package/es/organism/skill-edition/index.d.ts.map +1 -0
  32. package/es/organism/skill-edition/index.js +26 -0
  33. package/es/organism/skill-edition/index.js.map +1 -0
  34. package/es/organism/skill-edition/style.css +23 -0
  35. package/es/organism/skill-edition/types.d.ts +1674 -0
  36. package/es/organism/skill-edition/types.d.ts.map +1 -0
  37. package/es/organism/skill-edition/types.js +18 -0
  38. package/es/organism/skill-edition/types.js.map +1 -0
  39. package/es/organism/title-and-input/index.d.ts +64 -0
  40. package/es/organism/title-and-input/index.d.ts.map +1 -1
  41. package/es/organism/title-and-input/index.js +3 -0
  42. package/es/organism/title-and-input/index.js.map +1 -1
  43. package/es/organism/title-and-input/types.d.ts +68 -3
  44. package/es/organism/title-and-input/types.d.ts.map +1 -1
  45. package/es/organism/title-and-input/types.js +3 -2
  46. package/es/organism/title-and-input/types.js.map +1 -1
  47. package/es/template/back-office/brand-update/index.d.ts +1747 -2
  48. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  49. package/es/template/back-office/brand-update/index.js +14 -3
  50. package/es/template/back-office/brand-update/index.js.map +1 -1
  51. package/lib/atom/title/index.d.ts.map +1 -1
  52. package/lib/atom/title/index.js +4 -2
  53. package/lib/atom/title/index.js.map +1 -1
  54. package/lib/atom/title/style.css +6 -0
  55. package/lib/atom/title/types.d.ts +1 -1
  56. package/lib/atom/title/types.d.ts.map +1 -1
  57. package/lib/atom/title/types.js.map +1 -1
  58. package/lib/molecule/icon-preview/index.d.ts +12 -9
  59. package/lib/molecule/icon-preview/index.d.ts.map +1 -1
  60. package/lib/molecule/icon-preview/index.js +8 -13
  61. package/lib/molecule/icon-preview/index.js.map +1 -1
  62. package/lib/molecule/icon-preview/style.css +0 -1
  63. package/lib/molecule/icon-preview/types.d.ts +18 -0
  64. package/lib/molecule/icon-preview/types.d.ts.map +1 -0
  65. package/lib/molecule/icon-preview/types.js +16 -0
  66. package/lib/molecule/icon-preview/types.js.map +1 -0
  67. package/lib/organism/header-with-actions/index.d.ts.map +1 -1
  68. package/lib/organism/header-with-actions/index.js +9 -1
  69. package/lib/organism/header-with-actions/index.js.map +1 -1
  70. package/lib/organism/icon-editor/index.d.ts +73 -23
  71. package/lib/organism/icon-editor/index.d.ts.map +1 -1
  72. package/lib/organism/icon-editor/index.js +24 -35
  73. package/lib/organism/icon-editor/index.js.map +1 -1
  74. package/lib/organism/icon-editor/style.css +5 -5
  75. package/lib/organism/icon-editor/types.d.ts +77 -0
  76. package/lib/organism/icon-editor/types.d.ts.map +1 -0
  77. package/lib/organism/icon-editor/types.js +16 -0
  78. package/lib/organism/icon-editor/types.js.map +1 -0
  79. package/lib/organism/list-item/style.css +3 -2
  80. package/lib/organism/skill-edition/index.d.ts +1661 -0
  81. package/lib/organism/skill-edition/index.d.ts.map +1 -0
  82. package/lib/organism/skill-edition/index.js +31 -0
  83. package/lib/organism/skill-edition/index.js.map +1 -0
  84. package/lib/organism/skill-edition/style.css +23 -0
  85. package/lib/organism/skill-edition/types.d.ts +1674 -0
  86. package/lib/organism/skill-edition/types.d.ts.map +1 -0
  87. package/lib/organism/skill-edition/types.js +23 -0
  88. package/lib/organism/skill-edition/types.js.map +1 -0
  89. package/lib/organism/title-and-input/index.d.ts +64 -0
  90. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  91. package/lib/organism/title-and-input/index.js +3 -0
  92. package/lib/organism/title-and-input/index.js.map +1 -1
  93. package/lib/organism/title-and-input/types.d.ts +68 -3
  94. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  95. package/lib/organism/title-and-input/types.js +3 -2
  96. package/lib/organism/title-and-input/types.js.map +1 -1
  97. package/lib/template/back-office/brand-update/index.d.ts +1747 -2
  98. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  99. package/lib/template/back-office/brand-update/index.js +14 -3
  100. package/lib/template/back-office/brand-update/index.js.map +1 -1
  101. package/locales/bs/global.json +6 -0
  102. package/locales/cs/global.json +6 -0
  103. package/locales/de/global.json +6 -0
  104. package/locales/en/global.json +6 -0
  105. package/locales/es/global.json +6 -0
  106. package/locales/et/global.json +6 -0
  107. package/locales/fi/global.json +6 -0
  108. package/locales/fr/global.json +11 -5
  109. package/locales/hr/global.json +6 -0
  110. package/locales/hu/global.json +6 -0
  111. package/locales/hy/global.json +6 -0
  112. package/locales/it/global.json +6 -0
  113. package/locales/ja/global.json +6 -0
  114. package/locales/ko/global.json +6 -0
  115. package/locales/nl/global.json +6 -0
  116. package/locales/pl/global.json +6 -0
  117. package/locales/pt/global.json +6 -0
  118. package/locales/ro/global.json +6 -0
  119. package/locales/ru/global.json +6 -0
  120. package/locales/sk/global.json +6 -0
  121. package/locales/sl/global.json +6 -0
  122. package/locales/sv/global.json +6 -0
  123. package/locales/tl/global.json +6 -0
  124. package/locales/tr/global.json +6 -0
  125. package/locales/uk/global.json +6 -0
  126. package/locales/vi/global.json +6 -0
  127. package/locales/zh/global.json +6 -0
  128. package/locales/zh_TW/global.json +6 -0
  129. 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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU1B,CAAC;AAEF,eAAe,qBAAqB,CAAC;AAErC,aAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC;IACpD,WAAW,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;CAC/D,CAAC;AAEF,aAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,SAAS,CAAC,CAAC;IAC5D,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;CAClE,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;IAC/D,OAAO,EAAE,YAAY,CAAC;CACvB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import PropTypes from 'prop-types';
2
+ import BrandFormGroup from '../../molecule/brand-form-group';
3
+ import ListItems from '../list-items';
4
+ import Title from '../../atom/title';
5
+ import TitleAndInput from '../title-and-input';
6
+ const SkillEditionPropTypes = {
7
+ skillInformations: PropTypes.shape({
8
+ form: PropTypes.shape(BrandFormGroup.propTypes).isRequired,
9
+ iconEditor: PropTypes.shape(TitleAndInput.propTypes)
10
+ }).isRequired,
11
+ translations: PropTypes.shape(ListItems.propTypes).isRequired,
12
+ content: PropTypes.shape({
13
+ title: PropTypes.shape(Title.propTypes).isRequired,
14
+ listContent: PropTypes.shape(ListItems.propTypes).isRequired
15
+ })
16
+ };
17
+ export default SkillEditionPropTypes;
18
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["PropTypes","BrandFormGroup","ListItems","Title","TitleAndInput","SkillEditionPropTypes","skillInformations","shape","form","propTypes","isRequired","iconEditor","translations","content","title","listContent"],"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,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,cAAc,MAAM,iCAAiC;AAC5D,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,aAAa,MAAM,oBAAoB;AAE9C,MAAMC,qBAAqB,GAAG;EAC5BC,iBAAiB,EAAEN,SAAS,CAACO,KAAK,CAAC;IACjCC,IAAI,EAAER,SAAS,CAACO,KAAK,CAACN,cAAc,CAACQ,SAAS,CAAC,CAACC,UAAU;IAC1DC,UAAU,EAAEX,SAAS,CAACO,KAAK,CAACH,aAAa,CAACK,SAAS;EACrD,CAAC,CAAC,CAACC,UAAU;EACbE,YAAY,EAAEZ,SAAS,CAACO,KAAK,CAACL,SAAS,CAACO,SAAS,CAAC,CAACC,UAAU;EAC7DG,OAAO,EAAEb,SAAS,CAACO,KAAK,CAAC;IACvBO,KAAK,EAAEd,SAAS,CAACO,KAAK,CAACJ,KAAK,CAACM,SAAS,CAAC,CAACC,UAAU;IAClDK,WAAW,EAAEf,SAAS,CAACO,KAAK,CAACL,SAAS,CAACO,SAAS,CAAC,CAACC;EACpD,CAAC;AACH,CAAC;AAED,eAAeL,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":";AAQA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAGtD,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAI7C,CAAC;AAsBF,QAAA,MAAM,aAAa;YAAW,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
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"}
@@ -6,6 +6,7 @@ import InputTextarea from '../../atom/input-textarea';
6
6
  import Select from '../../atom/select';
7
7
  import SelectMultiple from '../../molecule/select-multiple';
8
8
  import SelectOpponents from '../select-opponents';
9
+ import IconEditor from '../icon-editor';
9
10
  import propTypes from './types';
10
11
  import style from './style.css';
11
12
  export const inputStyle = {
@@ -17,6 +18,8 @@ const buildInput = (childType, field) => {
17
18
  switch (childType) {
18
19
  case 'autoComplete':
19
20
  return /*#__PURE__*/React.createElement(Autocomplete, field);
21
+ case 'iconEditor':
22
+ return /*#__PURE__*/React.createElement(IconEditor, field);
20
23
  case 'inputText':
21
24
  return /*#__PURE__*/React.createElement(InputText, field);
22
25
  case 'inputTextArea':
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","Title","Autocomplete","InputText","InputTextarea","Select","SelectMultiple","SelectOpponents","propTypes","style","inputStyle","default","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","childType","field","createElement","TitleAndInput","props","title","titleSize","subtitleSize","type","restTitleProps","titleProps","input","size","styleInput","selectOpponentsContainer","className","process","env","NODE_ENV"],"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,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,YAAY,MAAM,yBAAyB;AAClD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,aAAa,MAAM,2BAA2B;AACrD,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,OAAOC,eAAe,MAAM,qBAAqB;AACjD,OAAOC,SAAS,MAA4B,SAAS;AACrD,OAAOC,KAAK,MAAM,aAAa;AAE/B,OAAO,MAAMC,UAAkC,GAAG;EAChD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,SAAS,KAAK,iBAAiB,GAAGT,KAAK,CAACuB,wBAAwB,GAAGtB,UAAU,CAACoB,IAAI,CAAC;EAErF,oBACE9B,KAAA,CAAAoB,aAAA,2BACEpB,KAAA,CAAAoB,aAAA,CAACnB,KAAK,EAAK2B,UAAa,CAAC,eACzB5B,KAAA,CAAAoB,aAAA;IAAKa,SAAS,EAAEF;EAAW,GAAEF,KAAW,CACrC,CAAC;AAEV,CAAC;AAEDR,aAAa,CAACb,SAAS,GAAA0B,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG5B,SAAS;AAEnC,eAAea,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","Title","Autocomplete","InputText","InputTextarea","Select","SelectMultiple","SelectOpponents","IconEditor","propTypes","style","inputStyle","default","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","childType","field","createElement","TitleAndInput","props","title","titleSize","subtitleSize","type","restTitleProps","titleProps","input","size","styleInput","selectOpponentsContainer","className","process","env","NODE_ENV"],"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,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,YAAY,MAAM,yBAAyB;AAClD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,aAAa,MAAM,2BAA2B;AACrD,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,OAAOC,eAAe,MAAM,qBAAqB;AACjD,OAAOC,UAAU,MAAM,gBAAgB;AACvC,OAAOC,SAAS,MAA4B,SAAS;AACrD,OAAOC,KAAK,MAAM,aAAa;AAE/B,OAAO,MAAMC,UAAkC,GAAG;EAChDC,OAAO,EAAEF,KAAK,CAACG,YAAY;EAC3BC,MAAM,EAAEJ,KAAK,CAACK,WAAW;EACzBC,KAAK,EAAEN,KAAK,CAACO;AACf,CAAC;AAED,MAAMC,UAAU,GAAGA,CACjBC,SAA0C,EAC1CC,KAAkC,KAC/B;EACH,QAAQD,SAAS;IACf,KAAK,cAAc;MACjB,oBAAOnB,KAAA,CAAAqB,aAAA,CAACnB,YAAY,EAAKkB,KAAQ,CAAC;IACpC,KAAK,YAAY;MACf,oBAAOpB,KAAA,CAAAqB,aAAA,CAACb,UAAU,EAAKY,KAAQ,CAAC;IAClC,KAA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AAS,GAAA0B,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG5B,SAAS;AAEnC,eAAea,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 { TitleProps } from '../../atom/title/types';
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: TitleProps;
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;AAEnD,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;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAIlD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -6,10 +6,11 @@ import SelectOpponents from '../select-opponents';
6
6
  import InputText from '../../atom/input-text';
7
7
  import InputTextarea from '../../atom/input-textarea';
8
8
  import Select from '../../atom/select';
9
+ import IconEditor from '../icon-editor';
9
10
  const validInputSize = ['default', 'medium', 'large'];
10
11
  const propTypes = {
11
12
  title: PropTypes.shape(Title.propTypes).isRequired,
12
- field: PropTypes.oneOfType([PropTypes.shape(Autocomplete.propTypes), PropTypes.shape({
13
+ field: PropTypes.oneOfType([PropTypes.shape(Autocomplete.propTypes), PropTypes.shape(IconEditor.propTypes), PropTypes.shape({
13
14
  ...InputText.propTypes,
14
15
  size: PropTypes.oneOf(validInputSize)
15
16
  }), PropTypes.shape({
@@ -19,7 +20,7 @@ const propTypes = {
19
20
  ...Select.propTypes,
20
21
  size: PropTypes.oneOf(validInputSize)
21
22
  }), PropTypes.shape(SelectMultiple.propTypes), PropTypes.shape(SelectOpponents.propTypes)]),
22
- childType: PropTypes.oneOf(['autoComplete', 'inputText', 'inputTextArea', 'select', 'selectMultiple', 'selectOpponents']).isRequired
23
+ childType: PropTypes.oneOf(['autoComplete', 'iconEditor', 'inputText', 'inputTextArea', 'select', 'selectMultiple', 'selectOpponents']).isRequired
23
24
  };
24
25
  export default propTypes;
25
26
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","Autocomplete","Title","SelectMultiple","SelectOpponents","InputText","InputTextarea","Select","validInputSize","propTypes","title","shape","isRequired","field","oneOfType","size","oneOf","childType"],"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 {TitleProps} from '../../atom/title/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({\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 '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: TitleProps;\n field:\n | React.ComponentProps<typeof Autocomplete>\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\n childType: string;\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,YAAY,MAAM,yBAAyB;AAClD,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,OAAOC,eAAe,MAAM,qBAAqB;AAEjD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,aAAa,MAAM,2BAA2B;AACrD,OAAOC,MAAM,MAAM,mBAAmB;AAGtC,MAAMC,cAAc,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC;AAErD,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEV,SAAS,CAACW,KAAK,CAACT,KAAK,CAACO,SAAS,CAAC,CAACG,UAAU;EAClDC,KAAK,EAAEb,SAAS,CAACc,SAAS,CAAC,CACzBd,SAAS,CAACW,KAAK,CAACV,YAAY,CAACQ,SAAS,CAAC,EACvCT,SAAS,CAACW,KAAK,CAAC;IACd,GAAGN,SAAS,CAACI,SAAS;IACtBM,IAAI,EAAEf,SAAS,CAACgB,KAAK,CAACR,cAAc;EACtC,CAAC,CAAC,EACFR,SAAS,CAACW,KAAK,CAAC;IACd,GAAGL,aAAa,CAACG,SAAS;IAC1BM,IAAI,EAAEf,SAAS,CAACgB,KAAK,CAACR,cAAc;EACtC,CAAC,CAAC,EACFR,SAAS,CAACW,KAAK,CAAC;IAAC,GAAGJ,MAAM,CAACE,SAAS;IAAEM,IAAI,EAAEf,SAAS,CAACgB,KAAK,CAACR,cAAc;EAAC,CAAC,CAAC,EAC7ER,SAAS,CAACW,KAAK,CAACR,cAAc,CAACM,SAAS,CAAC,EACzCT,SAAS,CAACW,KAAK,CAACP,eAAe,CAACK,SAAS,CAAC,CAC3C,CAAC;EACFQ,SAAS,EAAEjB,SAAS,CAACgB,KAAK,CAAC,CACzB,cAAc,EACd,WAAW,EACX,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,CAClB,CAAC,CAACJ;AACL,CAAC;AAiBD,eAAeH,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":["PropTypes","Autocomplete","Title","SelectMultiple","SelectOpponents","InputText","InputTextarea","Select","IconEditor","validInputSize","propTypes","title","shape","isRequired","field","oneOfType","size","oneOf","childType"],"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 childType: string;\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,YAAY,MAAM,yBAAyB;AAClD,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,OAAOC,eAAe,MAAM,qBAAqB;AAEjD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,aAAa,MAAM,2BAA2B;AACrD,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,UAAU,MAAM,gBAAgB;AAGvC,MAAMC,cAAc,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC;AAErD,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEX,SAAS,CAACY,KAAK,CAACV,KAAK,CAACQ,SAAS,CAAC,CAACG,UAAU;EAClDC,KAAK,EAAEd,SAAS,CAACe,SAAS,C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