@coorpacademy/components 11.19.1-alpha.4 → 11.19.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/button-link/index.js +2 -2
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/style.css +1 -0
- package/es/atom/drag-and-drop/index.d.ts +1 -0
- package/es/atom/drag-and-drop/index.d.ts.map +1 -1
- package/es/atom/drag-and-drop/index.js +24 -6
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/drag-and-drop/style.css +22 -7
- package/es/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
- package/es/atom/input-file-draggable/index.d.ts.map +1 -0
- package/es/atom/{image-upload → input-file-draggable}/index.js +34 -11
- package/es/atom/input-file-draggable/index.js.map +1 -0
- package/es/atom/input-file-draggable/style.css +81 -0
- package/es/atom/title/style.css +1 -1
- package/es/atom/video-upload/index.d.ts +1 -0
- package/es/molecule/brand-form-group/index.js +5 -5
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +2 -6
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/style.css +2 -2
- package/es/molecule/cm-popin/index.d.ts.map +1 -1
- package/es/molecule/cm-popin/index.js +27 -20
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +112 -73
- package/es/molecule/cm-popin/types.d.ts +182 -5
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js +5 -3
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
- package/es/molecule/drag-and-drop-wrapper/index.js +3 -3
- package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/es/molecule/setup-slider/index.js +3 -3
- package/es/molecule/setup-slider/index.js.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
- package/es/molecule/title-radio-wrapper/index.d.ts +18 -17
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/index.js +2 -2
- package/es/molecule/title-radio-wrapper/index.js.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +20 -19
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.js +2 -2
- package/es/molecule/title-radio-wrapper/types.js.map +1 -1
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +2 -5
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +3 -7
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +1 -3
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/list-items/style.css +1 -4
- package/es/organism/rewards-form/index.d.ts +2 -1
- package/es/organism/select-opponents/index.d.ts +18 -17
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +18 -17
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/setup-header/style.css +3 -1
- package/es/organism/title-and-input/index.d.ts +18 -17
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +18 -17
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +2 -1
- package/es/template/app-player/loading/index.d.ts +178 -2
- package/es/template/app-player/player/index.d.ts +356 -4
- package/es/template/app-player/player/slides/index.d.ts +178 -2
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +178 -2
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +178 -2
- package/es/template/app-review/index.d.ts +178 -2
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +178 -2
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +178 -2
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +178 -2
- package/es/template/cockpit/jw-uploader/index.d.ts +1 -0
- package/es/template/common/dashboard/index.d.ts +356 -4
- package/es/template/common/search-page/index.d.ts +178 -2
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +2 -20
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/external-course/index.d.ts +178 -2
- package/es/util/proptypes.d.ts +1 -1
- package/es/util/proptypes.d.ts.map +1 -1
- package/es/util/proptypes.js +6 -5
- package/es/util/proptypes.js.map +1 -1
- package/lib/atom/button-link/index.js +2 -2
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/style.css +1 -0
- package/lib/atom/drag-and-drop/index.d.ts +1 -0
- package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
- package/lib/atom/drag-and-drop/index.js +24 -6
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/drag-and-drop/style.css +22 -7
- package/lib/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
- package/lib/atom/input-file-draggable/index.d.ts.map +1 -0
- package/lib/atom/{image-upload → input-file-draggable}/index.js +34 -10
- package/lib/atom/input-file-draggable/index.js.map +1 -0
- package/lib/atom/input-file-draggable/style.css +81 -0
- package/lib/atom/title/style.css +1 -1
- package/lib/atom/video-upload/index.d.ts +1 -0
- package/lib/molecule/brand-form-group/index.js +5 -5
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +2 -6
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/style.css +2 -2
- package/lib/molecule/cm-popin/index.d.ts.map +1 -1
- package/lib/molecule/cm-popin/index.js +29 -19
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +112 -73
- package/lib/molecule/cm-popin/types.d.ts +182 -5
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +6 -3
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
- package/lib/molecule/drag-and-drop-wrapper/index.js +3 -3
- package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/lib/molecule/setup-slider/index.js +3 -3
- package/lib/molecule/setup-slider/index.js.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
- package/lib/molecule/title-radio-wrapper/index.d.ts +18 -17
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/index.js +2 -2
- package/lib/molecule/title-radio-wrapper/index.js.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +20 -19
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.js +2 -2
- package/lib/molecule/title-radio-wrapper/types.js.map +1 -1
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +3 -5
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +3 -7
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +1 -3
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/list-items/style.css +1 -4
- package/lib/organism/rewards-form/index.d.ts +2 -1
- package/lib/organism/select-opponents/index.d.ts +18 -17
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +18 -17
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/setup-header/style.css +3 -1
- package/lib/organism/title-and-input/index.d.ts +18 -17
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +18 -17
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +2 -1
- package/lib/template/app-player/loading/index.d.ts +178 -2
- package/lib/template/app-player/player/index.d.ts +356 -4
- package/lib/template/app-player/player/slides/index.d.ts +178 -2
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +178 -2
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +178 -2
- package/lib/template/app-review/index.d.ts +178 -2
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +178 -2
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +178 -2
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +178 -2
- package/lib/template/cockpit/jw-uploader/index.d.ts +1 -0
- package/lib/template/common/dashboard/index.d.ts +356 -4
- package/lib/template/common/search-page/index.d.ts +178 -2
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +2 -24
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/external-course/index.d.ts +178 -2
- package/lib/util/proptypes.d.ts +1 -1
- package/lib/util/proptypes.d.ts.map +1 -1
- package/lib/util/proptypes.js +10 -7
- package/lib/util/proptypes.js.map +1 -1
- package/package.json +3 -3
- package/es/atom/image-upload/index.d.ts.map +0 -1
- package/es/atom/image-upload/index.js.map +0 -1
- package/es/atom/image-upload/style.css +0 -28
- package/lib/atom/image-upload/index.d.ts.map +0 -1
- package/lib/atom/image-upload/index.js.map +0 -1
- package/lib/atom/image-upload/style.css +0 -28
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _inputFileDraggable = _interopRequireDefault(require("../../atom/input-file-draggable"));
|
|
13
13
|
|
|
14
14
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
15
15
|
|
|
@@ -24,7 +24,7 @@ const DragAndDropWrapper = props => {
|
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
25
25
|
className: _style.default.dragAndDrop,
|
|
26
26
|
key: `dragAndDrop-${dragAndDropProps.title}`
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(_inputFileDraggable.default, dragAndDropProps));
|
|
28
28
|
}, list);
|
|
29
29
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("ul", {
|
|
30
30
|
className: _style.default.group,
|
|
@@ -33,7 +33,7 @@ const DragAndDropWrapper = props => {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
DragAndDropWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
36
|
-
list: _propTypes.default.arrayOf(_propTypes.default.shape(
|
|
36
|
+
list: _propTypes.default.arrayOf(_propTypes.default.shape(_inputFileDraggable.default.propTypes)),
|
|
37
37
|
'data-name': _propTypes.default.string
|
|
38
38
|
} : {};
|
|
39
39
|
var _default = DragAndDropWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DragAndDropWrapper","props","list","dataName","dragAndDropList","dragAndDropProps","style","dragAndDrop","title","group","propTypes","PropTypes","arrayOf","shape","
|
|
1
|
+
{"version":3,"file":"index.js","names":["DragAndDropWrapper","props","list","dataName","dragAndDropList","dragAndDropProps","style","dragAndDrop","title","group","propTypes","PropTypes","arrayOf","shape","InputFileDraggable","string"],"sources":["../../../src/molecule/drag-and-drop-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport style from './style.css';\n\nconst DragAndDropWrapper = props => {\n const {list = [], 'data-name': dataName} = props;\n\n const dragAndDropList = map(dragAndDropProps => {\n return (\n <li className={style.dragAndDrop} key={`dragAndDrop-${dragAndDropProps.title}`}>\n <InputFileDraggable {...dragAndDropProps} />\n </li>\n );\n }, list);\n\n return (\n <div>\n <ul className={style.group} data-name={dataName}>\n {dragAndDropList}\n </ul>\n </div>\n );\n};\n\nDragAndDropWrapper.propTypes = {\n list: PropTypes.arrayOf(PropTypes.shape(InputFileDraggable.propTypes)),\n 'data-name': PropTypes.string\n};\n\nexport default DragAndDropWrapper;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,kBAAkB,GAAGC,KAAK,IAAI;EAClC,MAAM;IAACC,IAAI,GAAG,EAAR;IAAY,aAAaC;EAAzB,IAAqCF,KAA3C;EAEA,MAAMG,eAAe,GAAG,mBAAIC,gBAAgB,IAAI;IAC9C,oBACE;MAAI,SAAS,EAAEC,cAAA,CAAMC,WAArB;MAAkC,GAAG,EAAG,eAAcF,gBAAgB,CAACG,KAAM;IAA7E,gBACE,6BAAC,2BAAD,EAAwBH,gBAAxB,CADF,CADF;EAKD,CANuB,EAMrBH,IANqB,CAAxB;EAQA,oBACE,uDACE;IAAI,SAAS,EAAEI,cAAA,CAAMG,KAArB;IAA4B,aAAWN;EAAvC,GACGC,eADH,CADF,CADF;AAOD,CAlBD;;AAoBAJ,kBAAkB,CAACU,SAAnB,2CAA+B;EAC7BR,IAAI,EAAES,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,2BAAA,CAAmBJ,SAAnC,CAAlB,CADuB;EAE7B,aAAaC,kBAAA,CAAUI;AAFM,CAA/B;eAKef,kB"}
|
|
@@ -23,7 +23,7 @@ var _inputDoublestep = _interopRequireDefault(require("../../atom/input-doublest
|
|
|
23
23
|
|
|
24
24
|
var _inputSwitch = _interopRequireDefault(require("../../atom/input-switch"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _inputFileDraggable = _interopRequireDefault(require("../../atom/input-file-draggable"));
|
|
27
27
|
|
|
28
28
|
var _setupCohortItem = _interopRequireDefault(require("../setup-cohort-item"));
|
|
29
29
|
|
|
@@ -69,7 +69,7 @@ const SetupSlider = props => {
|
|
|
69
69
|
case 'image':
|
|
70
70
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
71
71
|
className: _style.default.imageUploadContainer
|
|
72
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_inputFileDraggable.default, field));
|
|
73
73
|
|
|
74
74
|
case 'splitForm':
|
|
75
75
|
return /*#__PURE__*/_react.default.createElement(_setupCohortItem.default, {
|
|
@@ -144,7 +144,7 @@ const SlidePropTypes = process.env.NODE_ENV !== "production" ? _propTypes.defaul
|
|
|
144
144
|
type: _propTypes.default.oneOf(['select'])
|
|
145
145
|
})), _propTypes.default.shape(_extends({}, _inputCheckbox.default.propTypes, {
|
|
146
146
|
type: _propTypes.default.oneOf(['checkbox'])
|
|
147
|
-
})), _propTypes.default.shape(_extends({},
|
|
147
|
+
})), _propTypes.default.shape(_extends({}, _inputFileDraggable.default.propTypes, {
|
|
148
148
|
type: _propTypes.default.oneOf(['image'])
|
|
149
149
|
})), _propTypes.default.shape(_extends({}, _inputReadonly.default.propTypes, {
|
|
150
150
|
type: _propTypes.default.oneOf(['readonly'])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["SetupSlider","props","tabProps","slides","buildSlides","slides_","convert","cap","slide","key","buildInput","field","type","style","imageUploadContainer","title","subtitle","buildField","index","input","fieldsList","fields","wrapper","slidesView","wrapperStyle","SlidePropTypes","PropTypes","shape","arrayOf","oneOfType","propTypes","oneOf","InputSwitch","Select","InputCheckbox","
|
|
1
|
+
{"version":3,"file":"index.js","names":["SetupSlider","props","tabProps","slides","buildSlides","slides_","convert","cap","slide","key","buildInput","field","type","style","imageUploadContainer","title","subtitle","buildField","index","input","fieldsList","fields","wrapper","slidesView","wrapperStyle","SlidePropTypes","PropTypes","shape","arrayOf","oneOfType","propTypes","oneOf","InputSwitch","Select","InputCheckbox","InputFileDraggable","InputReadonly","InputDoublestep","SetupCohortItem","MessagePopin","InputText","BrandDownloadBox","SetupSliderPropTypes","Accordion"],"sources":["../../../src/molecule/setup-slider/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Accordion from '../../organism/accordion/toggler';\nimport Select from '../../atom/select';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputText from '../../atom/input-text';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport InputSwitch from '../../atom/input-switch';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport SetupCohortItem from '../setup-cohort-item';\nimport MessagePopin from '../message-popin';\nimport BrandDownloadBox from '../brand-download-box';\nimport Title from '../../atom/title';\nimport style from './style.css';\n\nconst SetupSlider = props => {\n const {tabProps = [], slides = []} = props;\n const buildSlides = slides_ => {\n return map.convert({cap: false})((slide, key) => {\n const buildInput = field => {\n const {type} = field;\n switch (type) {\n case 'switch':\n return <InputSwitch {...field} />;\n case 'select':\n return <Select {...field} theme={'coorpmanager'} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return (\n <div className={style.imageUploadContainer}>\n <InputFileDraggable {...field} />\n </div>\n );\n case 'splitForm':\n return <SetupCohortItem field={field} />;\n case 'alert':\n return <MessagePopin header={field.title} content={field.subtitle} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'form-group':\n return <Title {...field} />;\n case 'slider':\n return (\n <Accordion tabProps={field.tabProps} type={'all'} theme={'setup'}>\n {buildSlides(field.slides)}\n </Accordion>\n );\n default:\n return <InputText {...field} />;\n }\n };\n\n const buildField = (field, index) => {\n const input = buildInput(field);\n return (\n <div className={style.field} key={index}>\n {input}\n </div>\n );\n };\n\n const fieldsList = map.convert({cap: false})(buildField, slide.fields);\n\n return (\n <div className={style.wrapper} key={key}>\n {fieldsList}\n </div>\n );\n }, slides_);\n };\n\n const slidesView = buildSlides(slides);\n\n return (\n <div className={style.wrapperStyle}>\n <Accordion tabProps={tabProps} type={'all'} theme={'setup'}>\n {slidesView}\n </Accordion>\n </div>\n );\n};\n\nconst SlidePropTypes = PropTypes.shape({\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select'])\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...InputFileDraggable.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...SetupCohortItem.propTypes,\n type: PropTypes.oneOf(['splitForm'])\n }),\n PropTypes.shape({\n ...MessagePopin.propTypes,\n type: PropTypes.oneOf(['alert'])\n }),\n PropTypes.shape(InputText.propTypes),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n })\n ])\n )\n});\n\nconst SetupSliderPropTypes = {\n tabProps: PropTypes.arrayOf(PropTypes.shape(Accordion.propTypes)),\n slides: PropTypes.arrayOf(SlidePropTypes)\n};\n\nSetupSlider.propTypes = SetupSliderPropTypes;\n\nexport default SetupSlider;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM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CAAvB;AAgDA,MAAMW,oBAAN,2CAA6B;EAC3BxC,QAAQ,EAAEwB,kBAAA,CAAUE,OAAV,CAAkBF,kBAAA,CAAUC,KAAV,CAAgBgB,gBAAA,CAAUb,SAA1B,CAAlB,CADiB;EAE3B3B,MAAM,EAAEuB,kBAAA,CAAUE,OAAV,CAAkBH,cAAlB;AAFmB,CAA7B;AAKAzB,WAAW,CAAC8B,SAAZ,2CAAwBY,oBAAxB;eAEe1C,W"}
|
|
@@ -47,7 +47,7 @@ declare namespace TitleAndCheckBoxWrapper {
|
|
|
47
47
|
name: PropTypes.Requireable<string>;
|
|
48
48
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
49
49
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
50
|
-
|
|
50
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
51
51
|
error: PropTypes.Requireable<string>;
|
|
52
52
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
53
53
|
errorButtonLabel: PropTypes.Requireable<string>;
|
|
@@ -68,6 +68,7 @@ declare namespace TitleAndCheckBoxWrapper {
|
|
|
68
68
|
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
69
69
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
70
70
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
71
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
71
72
|
}> | null | undefined)[]>;
|
|
72
73
|
'data-name': PropTypes.Requireable<string>;
|
|
73
74
|
}> | null | undefined>>;
|
|
@@ -19,10 +19,27 @@ declare const TitleRadioWrapper: {
|
|
|
19
19
|
'data-name': import("prop-types").Requireable<string>;
|
|
20
20
|
}>>;
|
|
21
21
|
field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
22
|
+
title: import("prop-types").Requireable<string>;
|
|
23
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
24
|
+
description: import("prop-types").Requireable<string>;
|
|
25
|
+
hint: import("prop-types").Requireable<string>;
|
|
26
|
+
options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
27
|
+
selected: import("prop-types").Validator<boolean>;
|
|
28
|
+
name: import("prop-types").Validator<string>;
|
|
29
|
+
value: import("prop-types").Requireable<string>;
|
|
30
|
+
}>>[]>;
|
|
31
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
32
|
+
onError: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
33
|
+
multiple: import("prop-types").Requireable<boolean>;
|
|
34
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
35
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
36
|
+
error: import("prop-types").Requireable<string>;
|
|
37
|
+
theme: import("prop-types").Requireable<string>;
|
|
38
|
+
}> | import("prop-types").InferProps<{
|
|
22
39
|
name: import("prop-types").Requireable<string>;
|
|
23
40
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
24
41
|
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
|
-
|
|
42
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
26
43
|
error: import("prop-types").Requireable<string>;
|
|
27
44
|
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
28
45
|
errorButtonLabel: import("prop-types").Requireable<string>;
|
|
@@ -43,23 +60,7 @@ declare const TitleRadioWrapper: {
|
|
|
43
60
|
children: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
44
61
|
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
45
62
|
pdfButtonAriaLabel: import("prop-types").Requireable<string>;
|
|
46
|
-
}> | import("prop-types").InferProps<{
|
|
47
|
-
title: import("prop-types").Requireable<string>;
|
|
48
|
-
placeholder: import("prop-types").Requireable<string>;
|
|
49
|
-
description: import("prop-types").Requireable<string>;
|
|
50
|
-
hint: import("prop-types").Requireable<string>;
|
|
51
|
-
options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
52
|
-
selected: import("prop-types").Validator<boolean>;
|
|
53
|
-
name: import("prop-types").Validator<string>;
|
|
54
|
-
value: import("prop-types").Requireable<string>;
|
|
55
|
-
}>>[]>;
|
|
56
|
-
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
57
|
-
onError: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
58
63
|
multiple: import("prop-types").Requireable<boolean>;
|
|
59
|
-
modified: import("prop-types").Requireable<boolean>;
|
|
60
|
-
disabled: import("prop-types").Requireable<boolean>;
|
|
61
|
-
error: import("prop-types").Requireable<string>;
|
|
62
|
-
theme: import("prop-types").Requireable<string>;
|
|
63
64
|
}> | null | undefined>>;
|
|
64
65
|
childType: import("prop-types").Requireable<string>;
|
|
65
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
|
|
@@ -11,7 +11,7 @@ var _radioWithTitle = _interopRequireDefault(require("../../atom/radio-with-titl
|
|
|
11
11
|
|
|
12
12
|
var _selectMultiple = _interopRequireDefault(require("../select-multiple"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _inputFileDraggable = _interopRequireDefault(require("../../atom/input-file-draggable"));
|
|
15
15
|
|
|
16
16
|
var _types = _interopRequireDefault(require("./types"));
|
|
17
17
|
|
|
@@ -26,7 +26,7 @@ const getContainerStyle = (field, childType) => {
|
|
|
26
26
|
const buildInput = (childType, field) => {
|
|
27
27
|
return childType === 'select-multiple' ? /*#__PURE__*/_react.default.createElement(_selectMultiple.default, field) : /*#__PURE__*/_react.default.createElement("div", {
|
|
28
28
|
className: field.loading || (0, _isEmpty.default)(field.previewContent) ? _style.default.containerImageUpload : ''
|
|
29
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
29
|
+
}, /*#__PURE__*/_react.default.createElement(_inputFileDraggable.default, field));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const TitleRadioWrapper = props => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["getContainerStyle","field","childType","loading","isEmpty","previewContent","style","containerUpload","container","buildInput","containerImageUpload","TitleRadioWrapper","props","radioWithTitle","propTypes"],"sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport RadioWithTitle from '../../atom/radio-with-title';\nimport SelectMultiple from '../select-multiple';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","names":["getContainerStyle","field","childType","loading","isEmpty","previewContent","style","containerUpload","container","buildInput","containerImageUpload","TitleRadioWrapper","props","radioWithTitle","propTypes"],"sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport RadioWithTitle from '../../atom/radio-with-title';\nimport SelectMultiple from '../select-multiple';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport propTypes, {TitleRadioWrapperProps} from './types';\nimport style from './style.css';\n\nconst getContainerStyle = (field: Record<string, unknown>, childType: string): string => {\n return childType === 'massive-upload' && (field.loading || isEmpty(field.previewContent))\n ? style.containerUpload\n : style.container;\n};\n\nconst buildInput = (childType: string, field: any) => {\n return childType === 'select-multiple' ? (\n <SelectMultiple {...field} />\n ) : (\n <div\n className={field.loading || isEmpty(field.previewContent) ? style.containerImageUpload : ''}\n >\n <InputFileDraggable {...field} />\n </div>\n );\n};\n\nconst TitleRadioWrapper = (props: TitleRadioWrapperProps) => {\n const {radioWithTitle, field, childType} = props;\n return (\n <div className={getContainerStyle(field, childType)}>\n {radioWithTitle ? <RadioWithTitle {...radioWithTitle} /> : null}\n <div className={style.field}>{buildInput(childType, field)}</div>\n </div>\n );\n};\n\nTitleRadioWrapper.propTypes = propTypes;\n\nexport default TitleRadioWrapper;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,iBAAiB,GAAG,CAACC,KAAD,EAAiCC,SAAjC,KAA+D;EACvF,OAAOA,SAAS,KAAK,gBAAd,KAAmCD,KAAK,CAACE,OAAN,IAAiB,IAAAC,gBAAA,EAAQH,KAAK,CAACI,cAAd,CAApD,IACHC,cAAA,CAAMC,eADH,GAEHD,cAAA,CAAME,SAFV;AAGD,CAJD;;AAMA,MAAMC,UAAU,GAAG,CAACP,SAAD,EAAoBD,KAApB,KAAmC;EACpD,OAAOC,SAAS,KAAK,iBAAd,gBACL,6BAAC,uBAAD,EAAoBD,KAApB,CADK,gBAGL;IACE,SAAS,EAAEA,KAAK,CAACE,OAAN,IAAiB,IAAAC,gBAAA,EAAQH,KAAK,CAACI,cAAd,CAAjB,GAAiDC,cAAA,CAAMI,oBAAvD,GAA8E;EAD3F,gBAGE,6BAAC,2BAAD,EAAwBT,KAAxB,CAHF,CAHF;AASD,CAVD;;AAYA,MAAMU,iBAAiB,GAAIC,KAAD,IAAmC;EAC3D,MAAM;IAACC,cAAD;IAAiBZ,KAAjB;IAAwBC;EAAxB,IAAqCU,KAA3C;EACA,oBACE;IAAK,SAAS,EAAEZ,iBAAiB,CAACC,KAAD,EAAQC,SAAR;EAAjC,GACGW,cAAc,gBAAG,6BAAC,uBAAD,EAAoBA,cAApB,CAAH,GAA4C,IAD7D,eAEE;IAAK,SAAS,EAAEP,cAAA,CAAML;EAAtB,GAA8BQ,UAAU,CAACP,SAAD,EAAYD,KAAZ,CAAxC,CAFF,CADF;AAMD,CARD;;AAUAU,iBAAiB,CAACG,SAAlB,2CAA8BA,cAA9B;eAEeH,iB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import
|
|
2
|
+
import InputFileDraggable from '../../atom/input-file-draggable';
|
|
3
3
|
import { RadioWithTitleProps } from '../../atom/radio-with-title/types';
|
|
4
4
|
import SelectMultiple from '../select-multiple';
|
|
5
5
|
declare const propTypes: {
|
|
@@ -19,10 +19,27 @@ declare const propTypes: {
|
|
|
19
19
|
'data-name': PropTypes.Requireable<string>;
|
|
20
20
|
}>>;
|
|
21
21
|
field: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
22
|
+
title: PropTypes.Requireable<string>;
|
|
23
|
+
placeholder: PropTypes.Requireable<string>;
|
|
24
|
+
description: PropTypes.Requireable<string>;
|
|
25
|
+
hint: PropTypes.Requireable<string>;
|
|
26
|
+
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
27
|
+
selected: PropTypes.Validator<boolean>;
|
|
28
|
+
name: PropTypes.Validator<string>;
|
|
29
|
+
value: PropTypes.Requireable<string>;
|
|
30
|
+
}>>[]>;
|
|
31
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
34
|
+
modified: PropTypes.Requireable<boolean>;
|
|
35
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
36
|
+
error: PropTypes.Requireable<string>;
|
|
37
|
+
theme: PropTypes.Requireable<string>;
|
|
38
|
+
}> | PropTypes.InferProps<{
|
|
22
39
|
name: PropTypes.Requireable<string>;
|
|
23
40
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
41
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
-
|
|
42
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
26
43
|
error: PropTypes.Requireable<string>;
|
|
27
44
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
28
45
|
errorButtonLabel: PropTypes.Requireable<string>;
|
|
@@ -43,29 +60,13 @@ declare const propTypes: {
|
|
|
43
60
|
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
44
61
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
45
62
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
46
|
-
}> | PropTypes.InferProps<{
|
|
47
|
-
title: PropTypes.Requireable<string>;
|
|
48
|
-
placeholder: PropTypes.Requireable<string>;
|
|
49
|
-
description: PropTypes.Requireable<string>;
|
|
50
|
-
hint: PropTypes.Requireable<string>;
|
|
51
|
-
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
52
|
-
selected: PropTypes.Validator<boolean>;
|
|
53
|
-
name: PropTypes.Validator<string>;
|
|
54
|
-
value: PropTypes.Requireable<string>;
|
|
55
|
-
}>>[]>;
|
|
56
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
-
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
58
63
|
multiple: PropTypes.Requireable<boolean>;
|
|
59
|
-
modified: PropTypes.Requireable<boolean>;
|
|
60
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
61
|
-
error: PropTypes.Requireable<string>;
|
|
62
|
-
theme: PropTypes.Requireable<string>;
|
|
63
64
|
}> | null | undefined>>;
|
|
64
65
|
childType: PropTypes.Requireable<string>;
|
|
65
66
|
};
|
|
66
67
|
export declare type TitleRadioWrapperProps = {
|
|
67
68
|
radioWithTitle: RadioWithTitleProps;
|
|
68
|
-
field: typeof SelectMultiple.propTypes | typeof
|
|
69
|
+
field: typeof SelectMultiple.propTypes | typeof InputFileDraggable.propTypes;
|
|
69
70
|
childType: 'select-multiple' | 'massive-upload';
|
|
70
71
|
};
|
|
71
72
|
export default propTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOd,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,cAAc,EAAE,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAO,cAAc,CAAC,SAAS,GAAG,OAAO,kBAAkB,CAAC,SAAS,CAAC;IAC7E,SAAS,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;CACjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -5,7 +5,7 @@ exports.default = void 0;
|
|
|
5
5
|
|
|
6
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _inputFileDraggable = _interopRequireDefault(require("../../atom/input-file-draggable"));
|
|
9
9
|
|
|
10
10
|
var _radioWithTitle = _interopRequireDefault(require("../../atom/radio-with-title"));
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
15
15
|
|
|
16
16
|
const propTypes = {
|
|
17
17
|
radioWithTitle: _propTypes.default.shape(_radioWithTitle.default.propTypes),
|
|
18
|
-
field: _propTypes.default.oneOfType([_propTypes.default.shape(_selectMultiple.default.propTypes), _propTypes.default.shape(
|
|
18
|
+
field: _propTypes.default.oneOfType([_propTypes.default.shape(_selectMultiple.default.propTypes), _propTypes.default.shape(_inputFileDraggable.default.propTypes)]),
|
|
19
19
|
childType: _propTypes.default.oneOf(['select-multiple', 'massive-upload'])
|
|
20
20
|
};
|
|
21
21
|
var _default = propTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","radioWithTitle","PropTypes","shape","RadioWithTitle","field","oneOfType","SelectMultiple","
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","radioWithTitle","PropTypes","shape","RadioWithTitle","field","oneOfType","SelectMultiple","InputFileDraggable","childType","oneOf"],"sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport RadioWithTitle from '../../atom/radio-with-title';\nimport {RadioWithTitleProps} from '../../atom/radio-with-title/types';\nimport SelectMultiple from '../select-multiple';\n\nconst propTypes = {\n radioWithTitle: PropTypes.shape(RadioWithTitle.propTypes),\n field: PropTypes.oneOfType([\n PropTypes.shape(SelectMultiple.propTypes),\n PropTypes.shape(InputFileDraggable.propTypes)\n ]),\n childType: PropTypes.oneOf(['select-multiple', 'massive-upload'])\n};\n\nexport type TitleRadioWrapperProps = {\n radioWithTitle: RadioWithTitleProps;\n field: typeof SelectMultiple.propTypes | typeof InputFileDraggable.propTypes;\n childType: 'select-multiple' | 'massive-upload';\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAEA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,cAAc,EAAEC,kBAAA,CAAUC,KAAV,CAAgBC,uBAAA,CAAeJ,SAA/B,CADA;EAEhBK,KAAK,EAAEH,kBAAA,CAAUI,SAAV,CAAoB,CACzBJ,kBAAA,CAAUC,KAAV,CAAgBI,uBAAA,CAAeP,SAA/B,CADyB,EAEzBE,kBAAA,CAAUC,KAAV,CAAgBK,2BAAA,CAAmBR,SAAnC,CAFyB,CAApB,CAFS;EAMhBS,SAAS,EAAEP,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,iBAAD,EAAoB,gBAApB,CAAhB;AANK,CAAlB;eAeeV,S"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;gBA0DC"}
|
|
@@ -5,6 +5,8 @@ exports.default = void 0;
|
|
|
5
5
|
|
|
6
6
|
var _map2 = _interopRequireDefault(require("lodash/fp/map"));
|
|
7
7
|
|
|
8
|
+
var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
9
11
|
|
|
10
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -70,11 +72,7 @@ const ListItem = ({
|
|
|
70
72
|
title: title
|
|
71
73
|
}, title), dataColumnsView), /*#__PURE__*/_react.default.createElement("div", {
|
|
72
74
|
className: _style.default.settings
|
|
73
|
-
}, tagsView, buttonLink ? /*#__PURE__*/_react.default.createElement(
|
|
74
|
-
className: _style.default.buttonLink
|
|
75
|
-
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)) : null, buttonLinkIcon ? /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
-
className: _style.default.buttonLink
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement(_buttonLinkIconOnly.default, buttonLinkIcon)) : null, /*#__PURE__*/_react.default.createElement(_bulletPointMenuButton.default, bulletPointMenuButton)));
|
|
75
|
+
}, tagsView, buttonLink ? /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink) : null, buttonLinkIcon ? /*#__PURE__*/_react.default.createElement(_buttonLinkIconOnly.default, buttonLinkIcon) : null, !(0, _isEmpty2.default)(bulletPointMenuButton) ? /*#__PURE__*/_react.default.createElement(_bulletPointMenuButton.default, bulletPointMenuButton) : null));
|
|
78
76
|
};
|
|
79
77
|
|
|
80
78
|
ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ListItem","buttonLink","buttonLinkIcon","bulletPointMenuButton","tags","title","dataColumns","order","ariaLabel","contentType","isBulkStyle","isPublished","tagsView","convert","cap","tag","index","type","style","dataColumnsView","dataColumn","className","label","orderView","undefined","classnames","wrapper","gridLayout","dataColumnsWrapper","settings","propTypes","PropTypes","string","isRequired","arrayOf","shape","oneOf","dataName","icon","position","onClick","func","size","link","href","download","bool","target","disabled","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = ({\n buttonLink,\n buttonLinkIcon,\n bulletPointMenuButton,\n tags,\n title,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n contentType,\n isBulkStyle = false\n}) => {\n let isPublished = false;\n\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = map.convert({cap: false})((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n return (\n <div className={classnames(style.wrapper, isBulkStyle && style.gridLayout)}>\n <div className={style.dataColumnsWrapper}>\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {buttonLink ?
|
|
1
|
+
{"version":3,"file":"index.js","names":["ListItem","buttonLink","buttonLinkIcon","bulletPointMenuButton","tags","title","dataColumns","order","ariaLabel","contentType","isBulkStyle","isPublished","tagsView","convert","cap","tag","index","type","style","dataColumnsView","dataColumn","className","label","orderView","undefined","classnames","wrapper","gridLayout","dataColumnsWrapper","settings","propTypes","PropTypes","string","isRequired","arrayOf","shape","oneOf","dataName","icon","position","onClick","func","size","link","href","download","bool","target","disabled","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, map} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = ({\n buttonLink,\n buttonLinkIcon,\n bulletPointMenuButton,\n tags,\n title,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n contentType,\n isBulkStyle = false\n}) => {\n let isPublished = false;\n\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = map.convert({cap: false})((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n return (\n <div className={classnames(style.wrapper, isBulkStyle && style.gridLayout)}>\n <div className={style.dataColumnsWrapper}>\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {buttonLink ? <ButtonLink {...buttonLink} /> : null}\n {buttonLinkIcon ? <ButtonLinkIconOnly {...buttonLinkIcon} /> : null}\n {!isEmpty(bulletPointMenuButton) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} />\n ) : null}\n </div>\n </div>\n );\n};\n\nListItem.propTypes = {\n title: PropTypes.string.isRequired,\n dataColumns: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),\n className: PropTypes.oneOf(['cell', 'title'])\n })\n ),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n buttonLinkIcon: PropTypes.shape({\n size: PropTypes.oneOf(['default', 'small', 'responsive']),\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n icon: PropTypes.string,\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool,\n className: PropTypes.string\n }),\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default'])\n })\n ),\n isBulkStyle: PropTypes.bool,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;AADA;AAGA,MAAMA,QAAQ,GAAG,CAAC;EAChBC,UADgB;EAEhBC,cAFgB;EAGhBC,qBAHgB;EAIhBC,IAJgB;EAKhBC,KALgB;EAMhBC,WANgB;EAOhBC,KAPgB;EAQhB,cAAcC,SARE;EAShBC,WATgB;EAUhBC,WAAW,GAAG;AAVE,CAAD,KAWX;EACJ,IAAIC,WAAW,GAAG,KAAlB;;EAEA,MAAMC,QAAQ,GAAG,cAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,GAAD,EAAMC,KAAN,KAAgB;IACzDL,WAAW,GAAGI,GAAG,CAACE,IAAJ,KAAa,SAA3B;IACA,oBACE;MAAK,GAAG,EAAED,KAAV;MAAiB,SAAS,EAAEE,cAAA,CAAMH;IAAlC,gBACE,6BAAC,YAAD,EAASA,GAAT,CADF,CADF;EAKD,CAPgB,EAOdX,IAPc,CAAjB;;EASA,MAAMe,eAAe,GAAG,cAAIN,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACM,UAAD,EAAaJ,KAAb,KAAuB;IACvE,oBACE;MAAK,GAAG,EAAEA,KAAV;MAAiB,SAAS,EAAEE,cAAA,CAAME,UAAU,CAACC,SAAjB;IAA5B,GACGD,UAAU,CAACH,IAAX,gBAAkB,6BAAC,YAAD,EAASG,UAAT,CAAlB,GAA4CA,UAAU,CAACE,KAD1D,CADF;EAKD,CANuB,EAMrBhB,WANqB,CAAxB;;EAQA,M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,aAAa,EAAEnB,kBAAA,CAAUC,MAFY;IAGrCmB,OAAO,EAAEpB,kBAAA,CAAUG,OAAV,CACPH,kBAAA,CAAUI,KAAV,CAAgB;MACd,aAAaJ,kBAAA,CAAUC,MADT;MAEdV,KAAK,EAAES,kBAAA,CAAUC,MAFH;MAGdf,IAAI,EAAEc,kBAAA,CAAUC,MAHF;MAIdQ,OAAO,EAAET,kBAAA,CAAUU;IAJL,CAAhB,CADO,CAH4B;IAWrCD,OAAO,EAAET,kBAAA,CAAUU;EAXkB,CAAhB,CAlCJ;EA+CnBrC,IAAI,EAAE2B,kBAAA,CAAUG,OAAV,CACJH,kBAAA,CAAUI,KAAV,CAAgB;IACdb,KAAK,EAAES,kBAAA,CAAUC,MADH;IAEdf,IAAI,EAAEc,kBAAA,CAAUK,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,EAAuB,SAAvB,EAAkC,UAAlC,EAA8C,SAA9C,CAAhB;EAFQ,CAAhB,CADI,CA/Ca;EAqDnB1B,WAAW,EAAEqB,kBAAA,CAAUe,IArDJ;EAsDnBvC,KAAK,EAAEwB,kBAAA,CAAUqB,MAtDE;EAuDnB,cAAcrB,kBAAA,CAAUC,MAvDL;EAwDnBvB,WAAW,EAAEsB,kBAAA,CAAUC,MAxDJ;EAyDnBqB,EAAE,EAAEtB,kBAAA,CAAUC;AAzDK,CAArB;eA4DehC,Q"}
|
|
@@ -50,13 +50,14 @@
|
|
|
50
50
|
align-items: center;
|
|
51
51
|
display: flex;
|
|
52
52
|
height: 100%;
|
|
53
|
+
gap: 16px;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
.tag {
|
|
56
|
-
margin: 0 16px 0 0;
|
|
57
57
|
text-overflow: ellipsis;
|
|
58
58
|
white-space: nowrap;
|
|
59
59
|
}
|
|
60
|
+
|
|
60
61
|
.cell {
|
|
61
62
|
display: flex;
|
|
62
63
|
height: 56px;
|
|
@@ -72,10 +73,6 @@
|
|
|
72
73
|
white-space: nowrap;
|
|
73
74
|
}
|
|
74
75
|
|
|
75
|
-
.buttonLink {
|
|
76
|
-
margin: 0 16px 0 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
76
|
.order {
|
|
80
77
|
width: 6px;
|
|
81
78
|
height: 20px;
|
|
@@ -91,6 +88,5 @@
|
|
|
91
88
|
.dataColumnsWrapper {
|
|
92
89
|
align-items: center;
|
|
93
90
|
display: flex;
|
|
94
|
-
width:
|
|
95
|
-
margin-left: 24px;
|
|
91
|
+
max-width: 80%;
|
|
96
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAqEA;;;;;;gBAsBC"}
|
|
@@ -103,9 +103,7 @@ const ListItems = ({
|
|
|
103
103
|
className: _style.default.actionsWrapper
|
|
104
104
|
}, selectMultiple ? /*#__PURE__*/_react.default.createElement("div", {
|
|
105
105
|
className: _style.default.selectMultiple
|
|
106
|
-
}, /*#__PURE__*/_react.default.createElement(_selectMultiple.default, selectMultiple)) : null, /*#__PURE__*/_react.default.createElement(
|
|
107
|
-
className: _style.default.buttonCreate
|
|
108
|
-
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)))), contentView);
|
|
106
|
+
}, /*#__PURE__*/_react.default.createElement(_selectMultiple.default, selectMultiple)) : null, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink))), contentView);
|
|
109
107
|
};
|
|
110
108
|
|
|
111
109
|
ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","tableHeader","itemsView","length","map","item","contentType","index","id","style","tableHeaderView","isNil","isEmpty","tableHeaderWrapper","dataColumnsWrapper","tableHeaderItem","settings","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","
|
|
1
|
+
{"version":3,"file":"index.js","names":["buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","tableHeader","itemsView","length","map","item","contentType","index","id","style","tableHeaderView","isNil","isEmpty","tableHeaderWrapper","dataColumnsWrapper","tableHeaderItem","settings","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","propTypes","PropTypes","string","shape","ButtonLink","SelectMultiple","oneOfType","arrayOf","ListItem","oneOf","func","bool","ExpandibleActionableTable"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport isNil from 'lodash/fp/isNil';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, isDraggable = false, tableHeader} = content;\n const itemsView =\n isDraggable && items.length > 1 ? (\n <DraggableList\n items={items.map(item => ({...item, contentType: itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={null} contentType={itemType} />\n </li>\n ))\n );\n const tableHeaderView =\n !isNil(tableHeader) && !isEmpty(tableHeader) ? (\n <div className={style.tableHeaderWrapper}>\n <div className={style.dataColumnsWrapper}>\n {tableHeader.map((tableHeaderItem, index) => (\n <div\n key={`tableHeadeColumn-key-${index}`}\n className={style.tableHeaderItem}\n data-name={`tableHeader-${index}`}\n >\n {tableHeaderItem}\n </div>\n ))}\n </div>\n <div className={style.settings}>{''}</div>\n </div>\n ) : null;\n return (\n <div>\n {tableHeaderView}\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n </div>\n );\n};\n\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n isDraggable: PropTypes.bool,\n tableHeader: PropTypes.arrayOf(PropTypes.string)\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CAACC,OAAD,EAAUC,SAAV,EAAqBC,cAArB,KAAwC;EACjE,MAAM;IAACC,KAAD;IAAQC,QAAR;IA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AA,CAAeL,SAA/B,CAHI;EAIpBjC,OAAO,EAAEkC,kBAAA,CAAUK,SAAV,CAAoB,CAC3BL,kBAAA,CAAUE,KAAV,CAAgB;IACdjC,KAAK,EAAE+B,kBAAA,CAAUM,OAAV,CAAkBN,kBAAA,CAAUE,KAAV,CAAgBK,iBAAA,CAASR,SAAzB,CAAlB,CADO;IAEdP,IAAI,EAAEQ,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGdtC,QAAQ,EAAE8B,kBAAA,CAAUC,MAHN;IAId9B,MAAM,EAAE6B,kBAAA,CAAUS,IAJJ;IAKdrC,WAAW,EAAE4B,kBAAA,CAAUU,IALT;IAMdrC,WAAW,EAAE2B,kBAAA,CAAUM,OAAV,CAAkBN,kBAAA,CAAUC,MAA5B;EANC,CAAhB,CAD2B,EAS3BD,kBAAA,CAAUE,KAAV,cACKS,kCAAA,CAA0BZ,SAD/B;IAEEP,IAAI,EAAEQ,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAT2B,CAApB,CAJW;EAkBpBd,KAAK,EAAEM,kBAAA,CAAUC;AAlBG,CAAtB;eAqBeR,S"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
padding: 0 24px;
|
|
14
14
|
margin-bottom: 24px;
|
|
15
15
|
}
|
|
16
|
+
|
|
16
17
|
.actionsWrapper {
|
|
17
18
|
display: flex;
|
|
18
19
|
align-items: center;
|
|
@@ -31,10 +32,6 @@
|
|
|
31
32
|
text-align: left;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
.buttonCreate {
|
|
35
|
-
width: 194px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
35
|
.selectMultiple {
|
|
39
36
|
width: 291px;
|
|
40
37
|
}
|
|
@@ -50,7 +50,7 @@ declare namespace RewardsForm {
|
|
|
50
50
|
name: PropTypes.Requireable<string>;
|
|
51
51
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
52
52
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
|
-
|
|
53
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
54
54
|
error: PropTypes.Requireable<string>;
|
|
55
55
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
56
56
|
errorButtonLabel: PropTypes.Requireable<string>;
|
|
@@ -71,6 +71,7 @@ declare namespace RewardsForm {
|
|
|
71
71
|
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
72
72
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
73
73
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
74
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
74
75
|
}> | null | undefined)[]>;
|
|
75
76
|
'data-name': PropTypes.Requireable<string>;
|
|
76
77
|
}> | null | undefined>>;
|
|
@@ -20,10 +20,27 @@ declare const SelectOpponents: {
|
|
|
20
20
|
'data-name': import("prop-types").Requireable<string>;
|
|
21
21
|
}>>;
|
|
22
22
|
field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
23
|
+
title: import("prop-types").Requireable<string>;
|
|
24
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
25
|
+
description: import("prop-types").Requireable<string>;
|
|
26
|
+
hint: import("prop-types").Requireable<string>;
|
|
27
|
+
options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
28
|
+
selected: import("prop-types").Validator<boolean>;
|
|
29
|
+
name: import("prop-types").Validator<string>;
|
|
30
|
+
value: import("prop-types").Requireable<string>;
|
|
31
|
+
}>>[]>;
|
|
32
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
33
|
+
onError: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
34
|
+
multiple: import("prop-types").Requireable<boolean>;
|
|
35
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
36
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
37
|
+
error: import("prop-types").Requireable<string>;
|
|
38
|
+
theme: import("prop-types").Requireable<string>;
|
|
39
|
+
}> | import("prop-types").InferProps<{
|
|
23
40
|
name: import("prop-types").Requireable<string>;
|
|
24
41
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
42
|
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
26
|
-
|
|
43
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
27
44
|
error: import("prop-types").Requireable<string>;
|
|
28
45
|
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
29
46
|
errorButtonLabel: import("prop-types").Requireable<string>;
|
|
@@ -44,23 +61,7 @@ declare const SelectOpponents: {
|
|
|
44
61
|
children: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
45
62
|
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
46
63
|
pdfButtonAriaLabel: import("prop-types").Requireable<string>;
|
|
47
|
-
}> | import("prop-types").InferProps<{
|
|
48
|
-
title: import("prop-types").Requireable<string>;
|
|
49
|
-
placeholder: import("prop-types").Requireable<string>;
|
|
50
|
-
description: import("prop-types").Requireable<string>;
|
|
51
|
-
hint: import("prop-types").Requireable<string>;
|
|
52
|
-
options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
53
|
-
selected: import("prop-types").Validator<boolean>;
|
|
54
|
-
name: import("prop-types").Validator<string>;
|
|
55
|
-
value: import("prop-types").Requireable<string>;
|
|
56
|
-
}>>[]>;
|
|
57
|
-
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
58
|
-
onError: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
59
64
|
multiple: import("prop-types").Requireable<boolean>;
|
|
60
|
-
modified: import("prop-types").Requireable<boolean>;
|
|
61
|
-
disabled: import("prop-types").Requireable<boolean>;
|
|
62
|
-
error: import("prop-types").Requireable<string>;
|
|
63
|
-
theme: import("prop-types").Requireable<string>;
|
|
64
65
|
}> | null | undefined>>;
|
|
65
66
|
childType: import("prop-types").Requireable<string>;
|
|
66
67
|
}> | null | undefined)[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAIA,OAAkB,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAMxD,QAAA,MAAM,eAAe;YAAW,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAIA,OAAkB,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAMxD,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanD,CAAC;AAIF,eAAe,eAAe,CAAC"}
|