@coorpacademy/components 11.18.10 → 11.19.1-alpha.1
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/types.d.ts +9 -0
- package/es/atom/title/types.d.ts.map +1 -0
- package/es/atom/title/types.js +2 -0
- package/es/atom/title/types.js.map +1 -0
- package/es/molecule/card/index.d.ts +1 -0
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +11 -10
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/style.css +47 -5
- package/es/molecule/cm-popin/index.d.ts.map +1 -1
- package/es/molecule/cm-popin/index.js +46 -9
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +32 -0
- package/es/molecule/cm-popin/types.d.ts +31 -1
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js +13 -3
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts +1 -0
- package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +45 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.js +15 -3
- package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
- package/es/organism/rewards-form/index.d.ts +45 -0
- package/es/organism/select-opponents/index.d.ts +67 -12
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/index.js +3 -3
- package/es/organism/select-opponents/index.js.map +1 -1
- package/es/organism/select-opponents/style.css +6 -0
- package/es/organism/select-opponents/types.d.ts +75 -14
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/select-opponents/types.js +2 -2
- package/es/organism/select-opponents/types.js.map +1 -1
- package/es/organism/title-and-input/index.d.ts +84 -29
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +84 -29
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +45 -0
- package/es/template/app-player/loading/index.d.ts +19 -1
- package/es/template/app-player/player/index.d.ts +38 -2
- package/es/template/app-player/player/slides/index.d.ts +19 -1
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +19 -1
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +20 -1
- package/es/template/app-player/popin-end/summary.d.ts +1 -0
- package/es/template/app-review/index.d.ts +19 -1
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +19 -1
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +19 -1
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +19 -1
- package/es/template/common/dashboard/index.d.ts +89 -1
- package/es/template/common/dashboard/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.js +6 -2
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/dashboard/style.css +5 -0
- package/es/template/common/search-page/index.d.ts +71 -0
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +8 -3
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/common/search-page/style.css +5 -0
- package/es/template/external-course/index.d.ts +19 -1
- package/es/template/teams-dashboard/index.d.ts +1 -0
- package/es/variables/colors.css +1 -1
- package/lib/atom/title/types.d.ts +9 -0
- package/lib/atom/title/types.d.ts.map +1 -0
- package/lib/atom/title/types.js +2 -0
- package/lib/atom/title/types.js.map +1 -0
- package/lib/molecule/card/index.d.ts +1 -0
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +10 -8
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/style.css +47 -5
- package/lib/molecule/cm-popin/index.d.ts.map +1 -1
- package/lib/molecule/cm-popin/index.js +48 -8
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +32 -0
- package/lib/molecule/cm-popin/types.d.ts +31 -1
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +15 -3
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts +1 -0
- package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +45 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.js +17 -3
- package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
- package/lib/organism/rewards-form/index.d.ts +45 -0
- package/lib/organism/select-opponents/index.d.ts +67 -12
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/index.js +3 -3
- package/lib/organism/select-opponents/index.js.map +1 -1
- package/lib/organism/select-opponents/style.css +6 -0
- package/lib/organism/select-opponents/types.d.ts +75 -14
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.js +2 -2
- package/lib/organism/select-opponents/types.js.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +84 -29
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +84 -29
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +45 -0
- package/lib/template/app-player/loading/index.d.ts +19 -1
- package/lib/template/app-player/player/index.d.ts +38 -2
- package/lib/template/app-player/player/slides/index.d.ts +19 -1
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +19 -1
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +20 -1
- package/lib/template/app-player/popin-end/summary.d.ts +1 -0
- package/lib/template/app-review/index.d.ts +19 -1
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +19 -1
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +19 -1
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +19 -1
- package/lib/template/common/dashboard/index.d.ts +89 -1
- package/lib/template/common/dashboard/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.js +6 -2
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/dashboard/style.css +5 -0
- package/lib/template/common/search-page/index.d.ts +71 -0
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +9 -3
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/common/search-page/style.css +5 -0
- package/lib/template/external-course/index.d.ts +19 -1
- package/lib/template/teams-dashboard/index.d.ts +1 -0
- package/lib/variables/colors.css +1 -1
- package/locales/.mtslconfig.json +1 -0
- package/package.json +3 -3
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
|
|
6
|
+
var _isUndefined2 = _interopRequireDefault(require("lodash/fp/isUndefined"));
|
|
7
|
+
|
|
6
8
|
var _react = _interopRequireDefault(require("react"));
|
|
7
9
|
|
|
8
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
11
|
|
|
12
|
+
var _imageUpload = _interopRequireDefault(require("../../atom/image-upload"));
|
|
13
|
+
|
|
10
14
|
var _inputTextWithTitle = _interopRequireDefault(require("../../atom/input-text-with-title"));
|
|
11
15
|
|
|
16
|
+
var _selectMultiple = _interopRequireDefault(require("../select-multiple"));
|
|
17
|
+
|
|
12
18
|
var _checkboxWithTitle = _interopRequireDefault(require("../../atom/checkbox-with-title"));
|
|
13
19
|
|
|
14
20
|
var _title = _interopRequireDefault(require("../../atom/title"));
|
|
@@ -23,7 +29,9 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
23
29
|
|
|
24
30
|
const CHILD = {
|
|
25
31
|
'input-text': _inputTextWithTitle.default,
|
|
26
|
-
'drag-and-drop-wrapper': _dragAndDropWrapper.default
|
|
32
|
+
'drag-and-drop-wrapper': _dragAndDropWrapper.default,
|
|
33
|
+
'image-upload': _imageUpload.default,
|
|
34
|
+
'select-multiple': _selectMultiple.default
|
|
27
35
|
};
|
|
28
36
|
|
|
29
37
|
const TitleAndCheckBoxWrapper = props => {
|
|
@@ -38,17 +46,23 @@ const TitleAndCheckBoxWrapper = props => {
|
|
|
38
46
|
}, /*#__PURE__*/_react.default.createElement(_title.default, _extends({}, sectionTitle, {
|
|
39
47
|
type: 'form-group'
|
|
40
48
|
}))) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
-
className: checkboxWithTitle || sectionTitle ? _style.default.child : null
|
|
49
|
+
className: checkboxWithTitle || sectionTitle && (0, _isUndefined2.default)(sectionTitle.removeMargin) ? _style.default.child : null
|
|
42
50
|
}, /*#__PURE__*/_react.default.createElement(Child, child)));
|
|
43
51
|
};
|
|
44
52
|
|
|
45
53
|
TitleAndCheckBoxWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
46
54
|
checkboxWithTitle: _propTypes.default.shape(_checkboxWithTitle.default.propTypes),
|
|
47
|
-
sectionTitle: _propTypes.default.shape(_title.default.propTypes
|
|
55
|
+
sectionTitle: _propTypes.default.shape(_extends({}, _title.default.propTypes, {
|
|
56
|
+
removeMargin: _propTypes.default.bool
|
|
57
|
+
})),
|
|
48
58
|
child: _propTypes.default.oneOfType([_propTypes.default.shape(_extends({}, _inputTextWithTitle.default.propTypes, {
|
|
49
59
|
childType: _propTypes.default.oneOf(['input-text'])
|
|
50
60
|
})), _propTypes.default.shape(_extends({}, _dragAndDropWrapper.default.propTypes, {
|
|
51
61
|
childType: _propTypes.default.oneOf(['drag-and-drop-wrapper'])
|
|
62
|
+
})), _propTypes.default.shape(_extends({}, _imageUpload.default.propTypes, {
|
|
63
|
+
childType: _propTypes.default.oneOf(['image-upload'])
|
|
64
|
+
})), _propTypes.default.shape(_extends({}, _selectMultiple.default.propTypes, {
|
|
65
|
+
childType: _propTypes.default.oneOf(['select-multiple'])
|
|
52
66
|
}))])
|
|
53
67
|
} : {};
|
|
54
68
|
var _default = TitleAndCheckBoxWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["CHILD","InputTextWithTitle","DragAndDropWrapper","TitleAndCheckBoxWrapper","props","checkboxWithTitle","child","sectionTitle","Child","childType","style","propTypes","PropTypes","shape","CheckboxWithTitle","Title","oneOfType","oneOf"],"sources":["../../../src/molecule/title-and-checkbox-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport InputTextWithTitle from '../../atom/input-text-with-title';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport Title from '../../atom/title';\nimport DragAndDropWrapper from '../drag-and-drop-wrapper';\nimport style from './style.css';\n\nconst CHILD = {\n 'input-text': InputTextWithTitle,\n 'drag-and-drop-wrapper': DragAndDropWrapper\n};\nconst TitleAndCheckBoxWrapper = props => {\n const {checkboxWithTitle, child, sectionTitle} = props;\n\n const Child = CHILD[child.childType];\n return (\n <div>\n {checkboxWithTitle ? <CheckboxWithTitle {...checkboxWithTitle} /> : null}\n {sectionTitle ? (\n <div className={style.sectionTitle}>\n <Title {...sectionTitle} type={'form-group'} />\n </div>\n ) : null}\n <div
|
|
1
|
+
{"version":3,"file":"index.js","names":["CHILD","InputTextWithTitle","DragAndDropWrapper","ImageUpload","SelectMultiple","TitleAndCheckBoxWrapper","props","checkboxWithTitle","child","sectionTitle","Child","childType","style","removeMargin","propTypes","PropTypes","shape","CheckboxWithTitle","Title","bool","oneOfType","oneOf"],"sources":["../../../src/molecule/title-and-checkbox-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isUndefined} from 'lodash/fp';\nimport ImageUpload from '../../atom/image-upload';\nimport InputTextWithTitle from '../../atom/input-text-with-title';\nimport SelectMultiple from '../select-multiple';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport Title from '../../atom/title';\nimport DragAndDropWrapper from '../drag-and-drop-wrapper';\nimport style from './style.css';\n\nconst CHILD = {\n 'input-text': InputTextWithTitle,\n 'drag-and-drop-wrapper': DragAndDropWrapper,\n 'image-upload': ImageUpload,\n 'select-multiple': SelectMultiple\n};\nconst TitleAndCheckBoxWrapper = props => {\n const {checkboxWithTitle, child, sectionTitle} = props;\n\n const Child = CHILD[child.childType];\n return (\n <div>\n {checkboxWithTitle ? <CheckboxWithTitle {...checkboxWithTitle} /> : null}\n {sectionTitle ? (\n <div className={style.sectionTitle}>\n <Title {...sectionTitle} type={'form-group'} />\n </div>\n ) : null}\n <div\n className={\n checkboxWithTitle || (sectionTitle && isUndefined(sectionTitle.removeMargin))\n ? style.child\n : null\n }\n >\n <Child {...child} />\n </div>\n </div>\n );\n};\n\nTitleAndCheckBoxWrapper.propTypes = {\n checkboxWithTitle: PropTypes.shape(CheckboxWithTitle.propTypes),\n sectionTitle: PropTypes.shape({...Title.propTypes, removeMargin: PropTypes.bool}),\n child: PropTypes.oneOfType([\n PropTypes.shape({\n ...InputTextWithTitle.propTypes,\n childType: PropTypes.oneOf(['input-text'])\n }),\n PropTypes.shape({\n ...DragAndDropWrapper.propTypes,\n childType: PropTypes.oneOf(['drag-and-drop-wrapper'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n childType: PropTypes.oneOf(['image-upload'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n childType: PropTypes.oneOf(['select-multiple'])\n })\n ])\n};\nexport default TitleAndCheckBoxWrapper;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZ,cAAcC,2BADF;EAEZ,yBAAyBC,2BAFb;EAGZ,gBAAgBC,oBAHJ;EAIZ,mBAAmBC;AAJP,CAAd;;AAMA,MAAMC,uBAAuB,GAAGC,KAAK,IAAI;EACvC,MAAM;IAACC,iBAAD;IAAoBC,KAApB;IAA2BC;EAA3B,IAA2CH,KAAjD;EAEA,MAAMI,KAAK,GAAGV,KAAK,CAACQ,KAAK,CAACG,SAAP,CAAnB;EACA,oBACE,0CACGJ,iBAAiB,gBAAG,6BAAC,0BAAD,EAAuBA,iBAAvB,CAAH,GAAkD,IADtE,EAEGE,YAAY,gBACX;IAAK,SAAS,EAAEG,cAAA,CAAMH;EAAtB,gBACE,6BAAC,cAAD,eAAWA,YAAX;IAAyB,IAAI,EAAE;EAA/B,GADF,CADW,GAIT,IANN,eAOE;IACE,SAAS,EACPF,iBAAiB,IAAKE,YAAY,IAAI,2BAAYA,YAAY,CAACI,YAAzB,CAAtC,GACID,cAAA,CAAMJ,KADV,GAEI;EAJR,gBAOE,6BAAC,KAAD,EAAWA,KAAX,CAPF,CAPF,CADF;AAmBD,CAvBD;;AAyBAH,uBAAuB,CAACS,SAAxB,2CAAoC;EAClCP,iBAAiB,EAAEQ,kBAAA,CAAUC,KAAV,CAAgBC,0BAAA,CAAkBH,SAAlC,CADe;EAElCL,YAAY,EAAEM,kBAAA,CAAUC,KAAV,cAAoBE,cAAA,CAAMJ,SAA1B;IAAqCD,YAAY,EAAEE,kBAAA,CAAUI;EAA7D,GAFoB;EAGlCX,KAAK,EAAEO,kBAAA,CAAUK,SAAV,CAAoB,CACzBL,kBAAA,CAAUC,KAAV,cACKf,2BAAA,CAAmBa,SADxB;IAEEH,SAAS,EAAEI,kBAAA,CAAUM,KAAV,CAAgB,CAAC,YAAD,CAAhB;EAFb,GADyB,EAKzBN,kBAAA,CAAUC,KAAV,cACKd,2BAAA,CAAmBY,SADxB;IAEEH,SAAS,EAAEI,kBAAA,CAAUM,KAAV,CAAgB,CAAC,uBAAD,CAAhB;EAFb,GALyB,EASzBN,kBAAA,CAAUC,KAAV,cACKb,oBAAA,CAAYW,SADjB;IAEEH,SAAS,EAAEI,kBAAA,CAAUM,KAAV,CAAgB,CAAC,cAAD,CAAhB;EAFb,GATyB,EAazBN,kBAAA,CAAUC,KAAV,cACKZ,uBAAA,CAAeU,SADpB;IAEEH,SAAS,EAAEI,kBAAA,CAAUM,KAAV,CAAgB,CAAC,iBAAD,CAAhB;EAFb,GAbyB,CAApB;AAH2B,CAApC;eAsBehB,uB"}
|
|
@@ -14,6 +14,7 @@ declare namespace RewardsForm {
|
|
|
14
14
|
'data-name': PropTypes.Requireable<string>;
|
|
15
15
|
}>>;
|
|
16
16
|
sectionTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
+
removeMargin: PropTypes.Requireable<boolean>;
|
|
17
18
|
title: PropTypes.Requireable<string>;
|
|
18
19
|
subtitle: PropTypes.Requireable<string>;
|
|
19
20
|
type: PropTypes.Requireable<string>;
|
|
@@ -73,6 +74,50 @@ declare namespace RewardsForm {
|
|
|
73
74
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
74
75
|
}> | null | undefined)[]>;
|
|
75
76
|
'data-name': PropTypes.Requireable<string>;
|
|
77
|
+
}> | PropTypes.InferProps<{
|
|
78
|
+
childType: PropTypes.Requireable<string>;
|
|
79
|
+
name: PropTypes.Requireable<string>;
|
|
80
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
81
|
+
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
82
|
+
imageTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
83
|
+
error: PropTypes.Requireable<string>;
|
|
84
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
85
|
+
errorButtonLabel: PropTypes.Requireable<string>;
|
|
86
|
+
labelLink: PropTypes.Requireable<string>;
|
|
87
|
+
hrefLink: PropTypes.Requireable<string>;
|
|
88
|
+
title: PropTypes.Requireable<string>;
|
|
89
|
+
description: PropTypes.Requireable<string>;
|
|
90
|
+
uploadLabel: PropTypes.Requireable<string>;
|
|
91
|
+
previewLabel: PropTypes.Requireable<string>;
|
|
92
|
+
previewContent: PropTypes.Requireable<PropTypes.InferProps<{
|
|
93
|
+
type: PropTypes.Requireable<string>;
|
|
94
|
+
src: PropTypes.Requireable<string>;
|
|
95
|
+
label: PropTypes.Requireable<string>;
|
|
96
|
+
}>>;
|
|
97
|
+
loading: PropTypes.Requireable<boolean>;
|
|
98
|
+
modified: PropTypes.Requireable<boolean>;
|
|
99
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
100
|
+
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
101
|
+
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
102
|
+
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
103
|
+
}> | PropTypes.InferProps<{
|
|
104
|
+
childType: PropTypes.Requireable<string>;
|
|
105
|
+
title: PropTypes.Requireable<string>;
|
|
106
|
+
placeholder: PropTypes.Requireable<string>;
|
|
107
|
+
description: PropTypes.Requireable<string>;
|
|
108
|
+
hint: PropTypes.Requireable<string>;
|
|
109
|
+
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
110
|
+
selected: PropTypes.Validator<boolean>;
|
|
111
|
+
name: PropTypes.Validator<string>;
|
|
112
|
+
value: PropTypes.Requireable<string>;
|
|
113
|
+
}>>[]>;
|
|
114
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
115
|
+
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
116
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
117
|
+
modified: PropTypes.Requireable<boolean>;
|
|
118
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
119
|
+
error: PropTypes.Requireable<string>;
|
|
120
|
+
theme: PropTypes.Requireable<string>;
|
|
76
121
|
}> | null | undefined>>;
|
|
77
122
|
}> | null | undefined)[]>;
|
|
78
123
|
}
|
|
@@ -4,22 +4,77 @@ declare const SelectOpponents: {
|
|
|
4
4
|
(props: SelectOpponentsProps): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
7
|
-
|
|
8
|
-
title: import("prop-types").
|
|
9
|
-
title: import("prop-types").Requireable<string>;
|
|
10
|
-
subtitle: import("prop-types").Requireable<string>;
|
|
11
|
-
type: import("prop-types").Requireable<string>;
|
|
12
|
-
'data-name': import("prop-types").Requireable<string>;
|
|
13
|
-
titleSize: import("prop-types").Requireable<string>;
|
|
14
|
-
subtitleSize: import("prop-types").Requireable<string>;
|
|
15
|
-
}>>>;
|
|
7
|
+
checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
8
|
+
title: import("prop-types").Requireable<string>;
|
|
16
9
|
name: import("prop-types").Requireable<string>;
|
|
17
10
|
checked: import("prop-types").Requireable<boolean>;
|
|
18
|
-
onChange: import("prop-types").
|
|
11
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
19
12
|
'aria-label': import("prop-types").Requireable<string>;
|
|
20
13
|
'data-name': import("prop-types").Requireable<string>;
|
|
21
14
|
}>>;
|
|
22
|
-
|
|
15
|
+
sectionTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
16
|
+
removeMargin: import("prop-types").Requireable<boolean>;
|
|
17
|
+
title: import("prop-types").Requireable<string>;
|
|
18
|
+
subtitle: import("prop-types").Requireable<string>;
|
|
19
|
+
type: import("prop-types").Requireable<string>;
|
|
20
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
21
|
+
titleSize: import("prop-types").Requireable<string>;
|
|
22
|
+
subtitleSize: import("prop-types").Requireable<string>;
|
|
23
|
+
}>>;
|
|
24
|
+
child: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
25
|
+
childType: import("prop-types").Requireable<string>;
|
|
26
|
+
inputText: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
27
|
+
theme: import("prop-types").Requireable<string>;
|
|
28
|
+
size: import("prop-types").Requireable<string>;
|
|
29
|
+
autoFocus: import("prop-types").Requireable<boolean>;
|
|
30
|
+
title: import("prop-types").Requireable<string>;
|
|
31
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
32
|
+
defaultValue: import("prop-types").Requireable<string>;
|
|
33
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
34
|
+
value: import("prop-types").Requireable<string>;
|
|
35
|
+
hint: import("prop-types").Requireable<string>;
|
|
36
|
+
error: import("prop-types").Requireable<string>;
|
|
37
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
38
|
+
description: import("prop-types").Requireable<string>;
|
|
39
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
40
|
+
valid: import("prop-types").Requireable<boolean>;
|
|
41
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
42
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
43
|
+
}>>;
|
|
44
|
+
title: import("prop-types").Requireable<string>;
|
|
45
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
46
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
47
|
+
}> | import("prop-types").InferProps<{
|
|
48
|
+
childType: import("prop-types").Requireable<string>;
|
|
49
|
+
list: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
50
|
+
name: import("prop-types").Requireable<string>;
|
|
51
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
52
|
+
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
53
|
+
imageTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
54
|
+
error: import("prop-types").Requireable<string>;
|
|
55
|
+
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
56
|
+
errorButtonLabel: import("prop-types").Requireable<string>;
|
|
57
|
+
labelLink: import("prop-types").Requireable<string>;
|
|
58
|
+
hrefLink: import("prop-types").Requireable<string>;
|
|
59
|
+
title: import("prop-types").Requireable<string>;
|
|
60
|
+
description: import("prop-types").Requireable<string>;
|
|
61
|
+
uploadLabel: import("prop-types").Requireable<string>;
|
|
62
|
+
previewLabel: import("prop-types").Requireable<string>;
|
|
63
|
+
previewContent: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
64
|
+
type: import("prop-types").Requireable<string>;
|
|
65
|
+
src: import("prop-types").Requireable<string>;
|
|
66
|
+
label: import("prop-types").Requireable<string>;
|
|
67
|
+
}>>;
|
|
68
|
+
loading: import("prop-types").Requireable<boolean>;
|
|
69
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
70
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
71
|
+
children: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
72
|
+
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
73
|
+
pdfButtonAriaLabel: import("prop-types").Requireable<string>;
|
|
74
|
+
}> | null | undefined)[]>;
|
|
75
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
76
|
+
}> | import("prop-types").InferProps<{
|
|
77
|
+
childType: import("prop-types").Requireable<string>;
|
|
23
78
|
name: import("prop-types").Requireable<string>;
|
|
24
79
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
80
|
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
@@ -45,6 +100,7 @@ declare const SelectOpponents: {
|
|
|
45
100
|
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
46
101
|
pdfButtonAriaLabel: import("prop-types").Requireable<string>;
|
|
47
102
|
}> | import("prop-types").InferProps<{
|
|
103
|
+
childType: import("prop-types").Requireable<string>;
|
|
48
104
|
title: import("prop-types").Requireable<string>;
|
|
49
105
|
placeholder: import("prop-types").Requireable<string>;
|
|
50
106
|
description: import("prop-types").Requireable<string>;
|
|
@@ -62,7 +118,6 @@ declare const SelectOpponents: {
|
|
|
62
118
|
error: import("prop-types").Requireable<string>;
|
|
63
119
|
theme: import("prop-types").Requireable<string>;
|
|
64
120
|
}> | null | undefined>>;
|
|
65
|
-
childType: import("prop-types").Requireable<string>;
|
|
66
121
|
}> | null | undefined)[]>;
|
|
67
122
|
};
|
|
68
123
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
|
|
@@ -7,7 +7,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _map = _interopRequireDefault(require("lodash/fp/map"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _titleAndCheckboxWrapper = _interopRequireDefault(require("../../molecule/title-and-checkbox-wrapper"));
|
|
11
11
|
|
|
12
12
|
var _types = _interopRequireDefault(require("./types"));
|
|
13
13
|
|
|
@@ -29,8 +29,8 @@ const SelectOpponents = props => {
|
|
|
29
29
|
}, mapWithIndex((item, key) => {
|
|
30
30
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
31
31
|
key: `select-opponents-item-${key}`,
|
|
32
|
-
className: _style.default.item
|
|
33
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
32
|
+
className: item.child.childType === 'image-upload' ? _style.default.itemImageUpload : _style.default.item
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement(_titleAndCheckboxWrapper.default, item));
|
|
34
34
|
}, items));
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["mapWithIndex","map","convert","cap","SelectOpponents","props","items","style","container","item","key","propTypes"],"sources":["../../../src/organism/select-opponents/index.tsx"],"sourcesContent":["import React from 'react';\nimport map from 'lodash/fp/map';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","names":["mapWithIndex","map","convert","cap","SelectOpponents","props","items","style","container","item","key","child","childType","itemImageUpload","propTypes"],"sources":["../../../src/organism/select-opponents/index.tsx"],"sourcesContent":["import React from 'react';\nimport map from 'lodash/fp/map';\nimport TitleAndCheckBoxWrapper from '../../molecule/title-and-checkbox-wrapper';\nimport propTypes, {SelectOpponentsProps, TitleAndCheckBoxWrapperProps} from './types';\nimport style from './style.css';\n\n// @ts-expect-error (need to get the index)\nconst mapWithIndex = map.convert({cap: false});\n\nconst SelectOpponents = (props: SelectOpponentsProps) => {\n const {items} = props;\n return (\n <ul className={style.container}>\n {mapWithIndex((item: TitleAndCheckBoxWrapperProps, key: number) => {\n return (\n <li\n key={`select-opponents-item-${key}`}\n className={item.child.childType === 'image-upload' ? style.itemImageUpload : style.item}\n >\n <TitleAndCheckBoxWrapper {...item} />\n </li>\n );\n }, items)}\n </ul>\n );\n};\n\nSelectOpponents.propTypes = propTypes;\n\nexport default SelectOpponents;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA;AACA,MAAMA,YAAY,GAAGC,YAAA,CAAIC,OAAJ,CAAY;EAACC,GAAG,EAAE;AAAN,CAAZ,CAArB;;AAEA,MAAMC,eAAe,GAAIC,KAAD,IAAiC;EACvD,MAAM;IAACC;EAAD,IAAUD,KAAhB;EACA,oBACE;IAAI,SAAS,EAAEE,cAAA,CAAMC;EAArB,GACGR,YAAY,CAAC,CAACS,IAAD,EAAqCC,GAArC,KAAqD;IACjE,oBACE;MACE,GAAG,EAAG,yBAAwBA,GAAI,EADpC;MAEE,SAAS,EAAED,IAAI,CAACE,KAAL,CAAWC,SAAX,KAAyB,cAAzB,GAA0CL,cAAA,CAAMM,eAAhD,GAAkEN,cAAA,CAAME;IAFrF,gBAIE,6BAAC,gCAAD,EAA6BA,IAA7B,CAJF,CADF;EAQD,CATY,EASVH,KATU,CADf,CADF;AAcD,CAhBD;;AAkBAF,eAAe,CAACU,SAAhB,2CAA4BA,cAA5B;eAEeV,e"}
|
|
@@ -1,23 +1,77 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import { TitleRadioWrapperProps } from '../../molecule/title-radio-wrapper/types';
|
|
3
2
|
export declare const propTypes: {
|
|
4
3
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
5
|
-
|
|
6
|
-
title: PropTypes.
|
|
7
|
-
title: PropTypes.Requireable<string>;
|
|
8
|
-
subtitle: PropTypes.Requireable<string>;
|
|
9
|
-
type: PropTypes.Requireable<string>;
|
|
10
|
-
'data-name': PropTypes.Requireable<string>;
|
|
11
|
-
titleSize: PropTypes.Requireable<string>;
|
|
12
|
-
subtitleSize: PropTypes.Requireable<string>;
|
|
13
|
-
}>>>;
|
|
4
|
+
checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
5
|
+
title: PropTypes.Requireable<string>;
|
|
14
6
|
name: PropTypes.Requireable<string>;
|
|
15
7
|
checked: PropTypes.Requireable<boolean>;
|
|
16
|
-
onChange: PropTypes.
|
|
8
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
9
|
'aria-label': PropTypes.Requireable<string>;
|
|
18
10
|
'data-name': PropTypes.Requireable<string>;
|
|
19
11
|
}>>;
|
|
20
|
-
|
|
12
|
+
sectionTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
|
+
removeMargin: PropTypes.Requireable<boolean>;
|
|
14
|
+
title: PropTypes.Requireable<string>;
|
|
15
|
+
subtitle: PropTypes.Requireable<string>;
|
|
16
|
+
type: PropTypes.Requireable<string>;
|
|
17
|
+
'data-name': PropTypes.Requireable<string>;
|
|
18
|
+
titleSize: PropTypes.Requireable<string>;
|
|
19
|
+
subtitleSize: PropTypes.Requireable<string>;
|
|
20
|
+
}>>;
|
|
21
|
+
child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
22
|
+
childType: PropTypes.Requireable<string>;
|
|
23
|
+
inputText: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
|
+
theme: PropTypes.Requireable<string>;
|
|
25
|
+
size: PropTypes.Requireable<string>;
|
|
26
|
+
autoFocus: PropTypes.Requireable<boolean>;
|
|
27
|
+
title: PropTypes.Requireable<string>;
|
|
28
|
+
placeholder: PropTypes.Requireable<string>;
|
|
29
|
+
defaultValue: PropTypes.Requireable<string>;
|
|
30
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
31
|
+
value: PropTypes.Requireable<string>;
|
|
32
|
+
hint: PropTypes.Requireable<string>;
|
|
33
|
+
error: PropTypes.Requireable<string>;
|
|
34
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
|
+
description: PropTypes.Requireable<string>;
|
|
36
|
+
modified: PropTypes.Requireable<boolean>;
|
|
37
|
+
valid: PropTypes.Requireable<boolean>;
|
|
38
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
39
|
+
'data-name': PropTypes.Requireable<string>;
|
|
40
|
+
}>>;
|
|
41
|
+
title: PropTypes.Requireable<string>;
|
|
42
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
43
|
+
'data-name': PropTypes.Requireable<string>;
|
|
44
|
+
}> | PropTypes.InferProps<{
|
|
45
|
+
childType: PropTypes.Requireable<string>;
|
|
46
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
47
|
+
name: PropTypes.Requireable<string>;
|
|
48
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
49
|
+
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
50
|
+
imageTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
51
|
+
error: PropTypes.Requireable<string>;
|
|
52
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
53
|
+
errorButtonLabel: PropTypes.Requireable<string>;
|
|
54
|
+
labelLink: PropTypes.Requireable<string>;
|
|
55
|
+
hrefLink: PropTypes.Requireable<string>;
|
|
56
|
+
title: PropTypes.Requireable<string>;
|
|
57
|
+
description: PropTypes.Requireable<string>;
|
|
58
|
+
uploadLabel: PropTypes.Requireable<string>;
|
|
59
|
+
previewLabel: PropTypes.Requireable<string>;
|
|
60
|
+
previewContent: PropTypes.Requireable<PropTypes.InferProps<{
|
|
61
|
+
type: PropTypes.Requireable<string>;
|
|
62
|
+
src: PropTypes.Requireable<string>;
|
|
63
|
+
label: PropTypes.Requireable<string>;
|
|
64
|
+
}>>;
|
|
65
|
+
loading: PropTypes.Requireable<boolean>;
|
|
66
|
+
modified: PropTypes.Requireable<boolean>;
|
|
67
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
68
|
+
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
69
|
+
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
70
|
+
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
71
|
+
}> | null | undefined)[]>;
|
|
72
|
+
'data-name': PropTypes.Requireable<string>;
|
|
73
|
+
}> | PropTypes.InferProps<{
|
|
74
|
+
childType: PropTypes.Requireable<string>;
|
|
21
75
|
name: PropTypes.Requireable<string>;
|
|
22
76
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
77
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -43,6 +97,7 @@ export declare const propTypes: {
|
|
|
43
97
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
44
98
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
45
99
|
}> | PropTypes.InferProps<{
|
|
100
|
+
childType: PropTypes.Requireable<string>;
|
|
46
101
|
title: PropTypes.Requireable<string>;
|
|
47
102
|
placeholder: PropTypes.Requireable<string>;
|
|
48
103
|
description: PropTypes.Requireable<string>;
|
|
@@ -60,11 +115,17 @@ export declare const propTypes: {
|
|
|
60
115
|
error: PropTypes.Requireable<string>;
|
|
61
116
|
theme: PropTypes.Requireable<string>;
|
|
62
117
|
}> | null | undefined>>;
|
|
63
|
-
childType: PropTypes.Requireable<string>;
|
|
64
118
|
}> | null | undefined)[]>;
|
|
65
119
|
};
|
|
120
|
+
export declare type TitleAndCheckBoxWrapperProps = {
|
|
121
|
+
child: {
|
|
122
|
+
childType: 'select-multiple' | 'image-upload';
|
|
123
|
+
[x: string]: unknown;
|
|
124
|
+
};
|
|
125
|
+
[x: string]: unknown;
|
|
126
|
+
};
|
|
66
127
|
export declare type SelectOpponentsProps = {
|
|
67
|
-
items:
|
|
128
|
+
items: TitleAndCheckBoxWrapperProps[];
|
|
68
129
|
};
|
|
69
130
|
export default propTypes;
|
|
70
131
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAAC;QAC9C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,4BAA4B,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -5,12 +5,12 @@ exports.propTypes = exports.default = void 0;
|
|
|
5
5
|
|
|
6
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _titleAndCheckboxWrapper = _interopRequireDefault(require("../../molecule/title-and-checkbox-wrapper"));
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
12
|
const propTypes = {
|
|
13
|
-
items: _propTypes.default.arrayOf(_propTypes.default.shape(
|
|
13
|
+
items: _propTypes.default.arrayOf(_propTypes.default.shape(_titleAndCheckboxWrapper.default.propTypes))
|
|
14
14
|
};
|
|
15
15
|
exports.propTypes = propTypes;
|
|
16
16
|
var _default = propTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","items","PropTypes","arrayOf","shape","
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","items","PropTypes","arrayOf","shape","TitleAndCheckBoxWrapper"],"sources":["../../../src/organism/select-opponents/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport TitleAndCheckBoxWrapper from '../../molecule/title-and-checkbox-wrapper';\n\nexport const propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(TitleAndCheckBoxWrapper.propTypes))\n};\n\nexport type TitleAndCheckBoxWrapperProps = {\n child: {\n childType: 'select-multiple' | 'image-upload';\n [x: string]: unknown;\n };\n [x: string]: unknown;\n};\n\nexport type SelectOpponentsProps = {\n items: TitleAndCheckBoxWrapperProps[];\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,gCAAA,CAAwBL,SAAxC,CAAlB;AADgB,CAAlB;;eAgBQA,S"}
|
|
@@ -12,23 +12,6 @@ declare const TitleAndInput: {
|
|
|
12
12
|
subtitleSize: import("prop-types").Requireable<string>;
|
|
13
13
|
}>>>;
|
|
14
14
|
field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
15
|
-
title: import("prop-types").Requireable<string>;
|
|
16
|
-
placeholder: import("prop-types").Requireable<string>;
|
|
17
|
-
description: import("prop-types").Requireable<string>;
|
|
18
|
-
hint: import("prop-types").Requireable<string>;
|
|
19
|
-
options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
20
|
-
selected: import("prop-types").Validator<boolean>;
|
|
21
|
-
name: import("prop-types").Validator<string>;
|
|
22
|
-
value: import("prop-types").Requireable<string>;
|
|
23
|
-
}>>[]>;
|
|
24
|
-
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
|
-
onError: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
26
|
-
multiple: import("prop-types").Requireable<boolean>;
|
|
27
|
-
modified: import("prop-types").Requireable<boolean>;
|
|
28
|
-
disabled: import("prop-types").Requireable<boolean>;
|
|
29
|
-
error: import("prop-types").Requireable<string>;
|
|
30
|
-
theme: import("prop-types").Requireable<string>;
|
|
31
|
-
}> | import("prop-types").InferProps<{
|
|
32
15
|
title: import("prop-types").Requireable<string>;
|
|
33
16
|
placeholder: import("prop-types").Requireable<string>;
|
|
34
17
|
value: import("prop-types").Requireable<string>;
|
|
@@ -47,24 +30,96 @@ declare const TitleAndInput: {
|
|
|
47
30
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
48
31
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
49
32
|
onSuggestionSelected: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
33
|
+
}> | import("prop-types").InferProps<{
|
|
34
|
+
title: import("prop-types").Requireable<string>;
|
|
35
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
36
|
+
description: import("prop-types").Requireable<string>;
|
|
37
|
+
hint: import("prop-types").Requireable<string>;
|
|
38
|
+
options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
39
|
+
selected: import("prop-types").Validator<boolean>;
|
|
40
|
+
name: import("prop-types").Validator<string>;
|
|
41
|
+
value: import("prop-types").Requireable<string>;
|
|
42
|
+
}>>[]>;
|
|
43
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
44
|
+
onError: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
45
|
+
multiple: import("prop-types").Requireable<boolean>;
|
|
46
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
47
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
48
|
+
error: import("prop-types").Requireable<string>;
|
|
49
|
+
theme: import("prop-types").Requireable<string>;
|
|
50
50
|
}> | import("prop-types").InferProps<{
|
|
51
51
|
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
52
|
-
|
|
53
|
-
title: import("prop-types").
|
|
54
|
-
title: import("prop-types").Requireable<string>;
|
|
55
|
-
subtitle: import("prop-types").Requireable<string>;
|
|
56
|
-
type: import("prop-types").Requireable<string>;
|
|
57
|
-
'data-name': import("prop-types").Requireable<string>;
|
|
58
|
-
titleSize: import("prop-types").Requireable<string>;
|
|
59
|
-
subtitleSize: import("prop-types").Requireable<string>;
|
|
60
|
-
}>>>;
|
|
52
|
+
checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
53
|
+
title: import("prop-types").Requireable<string>;
|
|
61
54
|
name: import("prop-types").Requireable<string>;
|
|
62
55
|
checked: import("prop-types").Requireable<boolean>;
|
|
63
|
-
onChange: import("prop-types").
|
|
56
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
64
57
|
'aria-label': import("prop-types").Requireable<string>;
|
|
65
58
|
'data-name': import("prop-types").Requireable<string>;
|
|
66
59
|
}>>;
|
|
67
|
-
|
|
60
|
+
sectionTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
61
|
+
removeMargin: import("prop-types").Requireable<boolean>;
|
|
62
|
+
title: import("prop-types").Requireable<string>;
|
|
63
|
+
subtitle: import("prop-types").Requireable<string>;
|
|
64
|
+
type: import("prop-types").Requireable<string>;
|
|
65
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
66
|
+
titleSize: import("prop-types").Requireable<string>;
|
|
67
|
+
subtitleSize: import("prop-types").Requireable<string>;
|
|
68
|
+
}>>;
|
|
69
|
+
child: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
70
|
+
childType: import("prop-types").Requireable<string>;
|
|
71
|
+
inputText: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
72
|
+
theme: import("prop-types").Requireable<string>;
|
|
73
|
+
size: import("prop-types").Requireable<string>;
|
|
74
|
+
autoFocus: import("prop-types").Requireable<boolean>;
|
|
75
|
+
title: import("prop-types").Requireable<string>;
|
|
76
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
77
|
+
defaultValue: import("prop-types").Requireable<string>;
|
|
78
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
79
|
+
value: import("prop-types").Requireable<string>;
|
|
80
|
+
hint: import("prop-types").Requireable<string>;
|
|
81
|
+
error: import("prop-types").Requireable<string>;
|
|
82
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
83
|
+
description: import("prop-types").Requireable<string>;
|
|
84
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
85
|
+
valid: import("prop-types").Requireable<boolean>;
|
|
86
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
87
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
88
|
+
}>>;
|
|
89
|
+
title: import("prop-types").Requireable<string>;
|
|
90
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
91
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
92
|
+
}> | import("prop-types").InferProps<{
|
|
93
|
+
childType: import("prop-types").Requireable<string>;
|
|
94
|
+
list: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
95
|
+
name: import("prop-types").Requireable<string>;
|
|
96
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
97
|
+
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
98
|
+
imageTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
99
|
+
error: import("prop-types").Requireable<string>;
|
|
100
|
+
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
101
|
+
errorButtonLabel: import("prop-types").Requireable<string>;
|
|
102
|
+
labelLink: import("prop-types").Requireable<string>;
|
|
103
|
+
hrefLink: import("prop-types").Requireable<string>;
|
|
104
|
+
title: import("prop-types").Requireable<string>;
|
|
105
|
+
description: import("prop-types").Requireable<string>;
|
|
106
|
+
uploadLabel: import("prop-types").Requireable<string>;
|
|
107
|
+
previewLabel: import("prop-types").Requireable<string>;
|
|
108
|
+
previewContent: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
109
|
+
type: import("prop-types").Requireable<string>;
|
|
110
|
+
src: import("prop-types").Requireable<string>;
|
|
111
|
+
label: import("prop-types").Requireable<string>;
|
|
112
|
+
}>>;
|
|
113
|
+
loading: import("prop-types").Requireable<boolean>;
|
|
114
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
115
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
116
|
+
children: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
117
|
+
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
118
|
+
pdfButtonAriaLabel: import("prop-types").Requireable<string>;
|
|
119
|
+
}> | null | undefined)[]>;
|
|
120
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
121
|
+
}> | import("prop-types").InferProps<{
|
|
122
|
+
childType: import("prop-types").Requireable<string>;
|
|
68
123
|
name: import("prop-types").Requireable<string>;
|
|
69
124
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
70
125
|
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
@@ -90,6 +145,7 @@ declare const TitleAndInput: {
|
|
|
90
145
|
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
91
146
|
pdfButtonAriaLabel: import("prop-types").Requireable<string>;
|
|
92
147
|
}> | import("prop-types").InferProps<{
|
|
148
|
+
childType: import("prop-types").Requireable<string>;
|
|
93
149
|
title: import("prop-types").Requireable<string>;
|
|
94
150
|
placeholder: import("prop-types").Requireable<string>;
|
|
95
151
|
description: import("prop-types").Requireable<string>;
|
|
@@ -107,7 +163,6 @@ declare const TitleAndInput: {
|
|
|
107
163
|
error: import("prop-types").Requireable<string>;
|
|
108
164
|
theme: import("prop-types").Requireable<string>;
|
|
109
165
|
}> | null | undefined>>;
|
|
110
|
-
childType: import("prop-types").Requireable<string>;
|
|
111
166
|
}> | null | undefined)[]>;
|
|
112
167
|
}> | null | undefined>>;
|
|
113
168
|
childType: import("prop-types").Validator<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiBtD,QAAA,MAAM,aAAa;YAAW,kBAAkB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiBtD,QAAA,MAAM,aAAa;YAAW,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
|