@coorpacademy/components 11.19.0 → 11.19.1-alpha.10
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/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/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 +111 -72
- 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/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/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/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 +111 -72
- 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/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 +2 -2
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import
|
|
2
|
+
import InputFileDraggable from '../../atom/input-file-draggable';
|
|
3
3
|
import RadioWithTitle from '../../atom/radio-with-title';
|
|
4
4
|
import SelectMultiple from '../select-multiple';
|
|
5
5
|
const propTypes = {
|
|
6
6
|
radioWithTitle: PropTypes.shape(RadioWithTitle.propTypes),
|
|
7
|
-
field: PropTypes.oneOfType([PropTypes.shape(SelectMultiple.propTypes), PropTypes.shape(
|
|
7
|
+
field: PropTypes.oneOfType([PropTypes.shape(SelectMultiple.propTypes), PropTypes.shape(InputFileDraggable.propTypes)]),
|
|
8
8
|
childType: PropTypes.oneOf(['select-multiple', 'massive-upload'])
|
|
9
9
|
};
|
|
10
10
|
export default propTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","InputFileDraggable","RadioWithTitle","SelectMultiple","propTypes","radioWithTitle","shape","field","oneOfType","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,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,kBAAP,MAA+B,iCAA/B;AACA,OAAOC,cAAP,MAA2B,6BAA3B;AAEA,OAAOC,cAAP,MAA2B,oBAA3B;AAEA,MAAMC,SAAS,GAAG;EAChBC,cAAc,EAAEL,SAAS,CAACM,KAAV,CAAgBJ,cAAc,CAACE,SAA/B,CADA;EAEhBG,KAAK,EAAEP,SAAS,CAACQ,SAAV,CAAoB,CACzBR,SAAS,CAACM,KAAV,CAAgBH,cAAc,CAACC,SAA/B,CADyB,EAEzBJ,SAAS,CAACM,KAAV,CAAgBL,kBAAkB,CAACG,SAAnC,CAFyB,CAApB,CAFS;EAMhBK,SAAS,EAAET,SAAS,CAACU,KAAV,CAAgB,CAAC,iBAAD,EAAoB,gBAApB,CAAhB;AANK,CAAlB;AAeA,eAAeN,SAAf"}
|
|
@@ -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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _map from "lodash/fp/map";
|
|
2
|
+
import _isEmpty from "lodash/fp/isEmpty";
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classnames from 'classnames';
|
|
@@ -55,11 +56,7 @@ const ListItem = ({
|
|
|
55
56
|
title: title
|
|
56
57
|
}, title), dataColumnsView), /*#__PURE__*/React.createElement("div", {
|
|
57
58
|
className: style.settings
|
|
58
|
-
}, tagsView, buttonLink ? /*#__PURE__*/React.createElement(
|
|
59
|
-
className: style.buttonLink
|
|
60
|
-
}, /*#__PURE__*/React.createElement(ButtonLink, buttonLink)) : null, buttonLinkIcon ? /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: style.buttonLink
|
|
62
|
-
}, /*#__PURE__*/React.createElement(ButtonLinkIconOnly, buttonLinkIcon)) : null, /*#__PURE__*/React.createElement(BulletPointMenuButton, bulletPointMenuButton)));
|
|
59
|
+
}, tagsView, buttonLink ? /*#__PURE__*/React.createElement(ButtonLink, buttonLink) : null, buttonLinkIcon ? /*#__PURE__*/React.createElement(ButtonLinkIconOnly, buttonLinkIcon) : null, !_isEmpty(bulletPointMenuButton) ? /*#__PURE__*/React.createElement(BulletPointMenuButton, bulletPointMenuButton) : null));
|
|
63
60
|
};
|
|
64
61
|
|
|
65
62
|
ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","classnames","Tag","ButtonLink","ButtonLinkIconOnly","BulletPointMenuButton","style","ListItem","buttonLink","buttonLinkIcon","bulletPointMenuButton","tags","title","dataColumns","order","ariaLabel","contentType","isBulkStyle","isPublished","tagsView","convert","cap","tag","index","type","dataColumnsView","dataColumn","className","label","orderView","undefined","wrapper","gridLayout","dataColumnsWrapper","settings","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":["React","PropTypes","classnames","Tag","ButtonLink","ButtonLinkIconOnly","BulletPointMenuButton","style","ListItem","buttonLink","buttonLinkIcon","bulletPointMenuButton","tags","title","dataColumns","order","ariaLabel","contentType","isBulkStyle","isPublished","tagsView","convert","cap","tag","index","type","dataColumnsView","dataColumn","className","label","orderView","undefined","wrapper","gridLayout","dataColumnsWrapper","settings","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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AACA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,CAAhB,CADO,CAH4B;IAWrCD,OAAO,EAAE5C,SAAS,CAAC6C;EAXkB,CAAhB,CAlCJ;EA+CnBlC,IAAI,EAAEX,SAAS,CAACsC,OAAV,CACJtC,SAAS,CAACuC,KAAV,CAAgB;IACdX,KAAK,EAAE5B,SAAS,CAACoC,MADH;IAEdZ,IAAI,EAAExB,SAAS,CAACwC,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,EAAuB,SAAvB,EAAkC,UAAlC,EAA8C,SAA9C,CAAhB;EAFQ,CAAhB,CADI,CA/Ca;EAqDnBvB,WAAW,EAAEjB,SAAS,CAACkD,IArDJ;EAsDnBpC,KAAK,EAAEd,SAAS,CAACwD,MAtDE;EAuDnB,cAAcxD,SAAS,CAACoC,MAvDL;EAwDnBpB,WAAW,EAAEhB,SAAS,CAACoC,MAxDJ;EAyDnBqB,EAAE,EAAEzD,SAAS,CAACoC;AAzDK,CAArB;AA4DA,eAAe7B,QAAf"}
|
|
@@ -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"}
|
|
@@ -86,9 +86,7 @@ const ListItems = ({
|
|
|
86
86
|
className: style.actionsWrapper
|
|
87
87
|
}, selectMultiple ? /*#__PURE__*/React.createElement("div", {
|
|
88
88
|
className: style.selectMultiple
|
|
89
|
-
}, /*#__PURE__*/React.createElement(SelectMultiple, selectMultiple)) : null, /*#__PURE__*/React.createElement(
|
|
90
|
-
className: style.buttonCreate
|
|
91
|
-
}, /*#__PURE__*/React.createElement(ButtonLink, buttonLink)))), contentView);
|
|
89
|
+
}, /*#__PURE__*/React.createElement(SelectMultiple, selectMultiple)) : null, /*#__PURE__*/React.createElement(ButtonLink, buttonLink))), contentView);
|
|
92
90
|
};
|
|
93
91
|
|
|
94
92
|
ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","isNil","isEmpty","ListItem","DraggableList","Title","ButtonLink","SelectMultiple","ExpandibleActionableTable","style","buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","tableHeader","itemsView","length","map","item","contentType","index","id","tableHeaderView","tableHeaderWrapper","dataColumnsWrapper","tableHeaderItem","settings","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","isNil","isEmpty","ListItem","DraggableList","Title","ButtonLink","SelectMultiple","ExpandibleActionableTable","style","buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","tableHeader","itemsView","length","map","item","contentType","index","id","tableHeaderView","tableHeaderWrapper","dataColumnsWrapper","tableHeaderItem","settings","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","propTypes","string","shape","oneOfType","arrayOf","oneOf","func","bool"],"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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,QAAP,MAAqB,cAArB;AACA,OAAOC,aAAP,MAA0B,+BAA1B;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,cAAP,MAA2B,gCAA3B;AACA,OAAOC,yBAAP,MAAsC,4CAAtC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,OAAD,EAAUC,SAAV,EAAq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b,SAAS,CAAC2C,KAAV,CAAgBpC,cAAc,CAACkC,SAA/B,CAHI;EAIpB9B,OAAO,EAAEX,SAAS,CAAC4C,SAAV,CAAoB,CAC3B5C,SAAS,CAAC2C,KAAV,CAAgB;IACd7B,KAAK,EAAEd,SAAS,CAAC6C,OAAV,CAAkB7C,SAAS,CAAC2C,KAAV,CAAgBxC,QAAQ,CAACsC,SAAzB,CAAlB,CADO;IAEdP,IAAI,EAAElC,SAAS,CAAC8C,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGd/B,QAAQ,EAAEf,SAAS,CAAC0C,MAHN;IAId1B,MAAM,EAAEhB,SAAS,CAAC+C,IAJJ;IAKd9B,WAAW,EAAEjB,SAAS,CAACgD,IALT;IAMd9B,WAAW,EAAElB,SAAS,CAAC6C,OAAV,CAAkB7C,SAAS,CAAC0C,MAA5B;EANC,CAAhB,CAD2B,EAS3B1C,SAAS,CAAC2C,KAAV,cACKnC,yBAAyB,CAACiC,SAD/B;IAEEP,IAAI,EAAElC,SAAS,CAAC8C,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAT2B,CAApB,CAJW;EAkBpBV,KAAK,EAAEpC,SAAS,CAAC0C;AAlBG,CAAtB;AAqBA,eAAeP,SAAf"}
|
|
@@ -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"}
|
|
@@ -18,10 +18,27 @@ export declare const propTypes: {
|
|
|
18
18
|
'data-name': PropTypes.Requireable<string>;
|
|
19
19
|
}>>;
|
|
20
20
|
field: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
21
|
+
title: PropTypes.Requireable<string>;
|
|
22
|
+
placeholder: PropTypes.Requireable<string>;
|
|
23
|
+
description: PropTypes.Requireable<string>;
|
|
24
|
+
hint: PropTypes.Requireable<string>;
|
|
25
|
+
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
26
|
+
selected: PropTypes.Validator<boolean>;
|
|
27
|
+
name: PropTypes.Validator<string>;
|
|
28
|
+
value: PropTypes.Requireable<string>;
|
|
29
|
+
}>>[]>;
|
|
30
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
33
|
+
modified: PropTypes.Requireable<boolean>;
|
|
34
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
35
|
+
error: PropTypes.Requireable<string>;
|
|
36
|
+
theme: PropTypes.Requireable<string>;
|
|
37
|
+
}> | PropTypes.InferProps<{
|
|
21
38
|
name: PropTypes.Requireable<string>;
|
|
22
39
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
40
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
-
|
|
41
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
25
42
|
error: PropTypes.Requireable<string>;
|
|
26
43
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
27
44
|
errorButtonLabel: PropTypes.Requireable<string>;
|
|
@@ -42,23 +59,7 @@ export declare const propTypes: {
|
|
|
42
59
|
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
60
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
44
61
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
45
|
-
}> | PropTypes.InferProps<{
|
|
46
|
-
title: PropTypes.Requireable<string>;
|
|
47
|
-
placeholder: PropTypes.Requireable<string>;
|
|
48
|
-
description: PropTypes.Requireable<string>;
|
|
49
|
-
hint: PropTypes.Requireable<string>;
|
|
50
|
-
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
51
|
-
selected: PropTypes.Validator<boolean>;
|
|
52
|
-
name: PropTypes.Validator<string>;
|
|
53
|
-
value: PropTypes.Requireable<string>;
|
|
54
|
-
}>>[]>;
|
|
55
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
|
-
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
62
|
multiple: PropTypes.Requireable<boolean>;
|
|
58
|
-
modified: PropTypes.Requireable<boolean>;
|
|
59
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
60
|
-
error: PropTypes.Requireable<string>;
|
|
61
|
-
theme: PropTypes.Requireable<string>;
|
|
62
63
|
}> | null | undefined>>;
|
|
63
64
|
childType: PropTypes.Requireable<string>;
|
|
64
65
|
}> | null | undefined)[]>;
|
|
@@ -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;AACnC,OAAO,EAAC,sBAAsB,EAAC,MAAM,0CAA0C,CAAC;AAGhF,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,sBAAsB,EAAC,MAAM,0CAA0C,CAAC;AAGhF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,sBAAsB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -76,16 +76,17 @@
|
|
|
76
76
|
align-items: center;
|
|
77
77
|
margin: 0;
|
|
78
78
|
padding: 0;
|
|
79
|
+
gap: 16px;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
.list a {
|
|
82
83
|
cursor: pointer;
|
|
83
84
|
text-decoration: none;
|
|
85
|
+
padding: 0;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
.button {
|
|
87
89
|
min-width: 175px;
|
|
88
|
-
margin-right: 16px;
|
|
89
90
|
pointer-events: fill;
|
|
90
91
|
}
|
|
91
92
|
|
|
@@ -106,6 +107,7 @@
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
.logOut {
|
|
110
|
+
display: flex;
|
|
109
111
|
width: 100px;
|
|
110
112
|
color: negative;
|
|
111
113
|
pointer-events: fill;
|
|
@@ -65,10 +65,27 @@ declare const TitleAndInput: {
|
|
|
65
65
|
'data-name': import("prop-types").Requireable<string>;
|
|
66
66
|
}>>;
|
|
67
67
|
field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
68
|
+
title: import("prop-types").Requireable<string>;
|
|
69
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
70
|
+
description: import("prop-types").Requireable<string>;
|
|
71
|
+
hint: import("prop-types").Requireable<string>;
|
|
72
|
+
options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
73
|
+
selected: import("prop-types").Validator<boolean>;
|
|
74
|
+
name: import("prop-types").Validator<string>;
|
|
75
|
+
value: import("prop-types").Requireable<string>;
|
|
76
|
+
}>>[]>;
|
|
77
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
78
|
+
onError: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
79
|
+
multiple: import("prop-types").Requireable<boolean>;
|
|
80
|
+
modified: import("prop-types").Requireable<boolean>;
|
|
81
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
82
|
+
error: import("prop-types").Requireable<string>;
|
|
83
|
+
theme: import("prop-types").Requireable<string>;
|
|
84
|
+
}> | import("prop-types").InferProps<{
|
|
68
85
|
name: import("prop-types").Requireable<string>;
|
|
69
86
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
70
87
|
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
71
|
-
|
|
88
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
72
89
|
error: import("prop-types").Requireable<string>;
|
|
73
90
|
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
74
91
|
errorButtonLabel: import("prop-types").Requireable<string>;
|
|
@@ -89,23 +106,7 @@ declare const TitleAndInput: {
|
|
|
89
106
|
children: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
90
107
|
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
91
108
|
pdfButtonAriaLabel: import("prop-types").Requireable<string>;
|
|
92
|
-
}> | import("prop-types").InferProps<{
|
|
93
|
-
title: import("prop-types").Requireable<string>;
|
|
94
|
-
placeholder: import("prop-types").Requireable<string>;
|
|
95
|
-
description: import("prop-types").Requireable<string>;
|
|
96
|
-
hint: import("prop-types").Requireable<string>;
|
|
97
|
-
options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
98
|
-
selected: import("prop-types").Validator<boolean>;
|
|
99
|
-
name: import("prop-types").Validator<string>;
|
|
100
|
-
value: import("prop-types").Requireable<string>;
|
|
101
|
-
}>>[]>;
|
|
102
|
-
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
103
|
-
onError: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
104
109
|
multiple: import("prop-types").Requireable<boolean>;
|
|
105
|
-
modified: import("prop-types").Requireable<boolean>;
|
|
106
|
-
disabled: import("prop-types").Requireable<boolean>;
|
|
107
|
-
error: import("prop-types").Requireable<string>;
|
|
108
|
-
theme: import("prop-types").Requireable<string>;
|
|
109
110
|
}> | null | undefined>>;
|
|
110
111
|
childType: import("prop-types").Requireable<string>;
|
|
111
112
|
}> | null | undefined)[]>;
|
|
@@ -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"}
|
|
@@ -66,10 +66,27 @@ declare const propTypes: {
|
|
|
66
66
|
'data-name': PropTypes.Requireable<string>;
|
|
67
67
|
}>>;
|
|
68
68
|
field: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
69
|
+
title: PropTypes.Requireable<string>;
|
|
70
|
+
placeholder: PropTypes.Requireable<string>;
|
|
71
|
+
description: PropTypes.Requireable<string>;
|
|
72
|
+
hint: PropTypes.Requireable<string>;
|
|
73
|
+
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
74
|
+
selected: PropTypes.Validator<boolean>;
|
|
75
|
+
name: PropTypes.Validator<string>;
|
|
76
|
+
value: PropTypes.Requireable<string>;
|
|
77
|
+
}>>[]>;
|
|
78
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
79
|
+
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
80
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
81
|
+
modified: PropTypes.Requireable<boolean>;
|
|
82
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
83
|
+
error: PropTypes.Requireable<string>;
|
|
84
|
+
theme: PropTypes.Requireable<string>;
|
|
85
|
+
}> | PropTypes.InferProps<{
|
|
69
86
|
name: PropTypes.Requireable<string>;
|
|
70
87
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
88
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
72
|
-
|
|
89
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
73
90
|
error: PropTypes.Requireable<string>;
|
|
74
91
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
75
92
|
errorButtonLabel: PropTypes.Requireable<string>;
|
|
@@ -90,23 +107,7 @@ declare const propTypes: {
|
|
|
90
107
|
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
91
108
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
92
109
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
93
|
-
}> | PropTypes.InferProps<{
|
|
94
|
-
title: PropTypes.Requireable<string>;
|
|
95
|
-
placeholder: PropTypes.Requireable<string>;
|
|
96
|
-
description: PropTypes.Requireable<string>;
|
|
97
|
-
hint: PropTypes.Requireable<string>;
|
|
98
|
-
options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
99
|
-
selected: PropTypes.Validator<boolean>;
|
|
100
|
-
name: PropTypes.Validator<string>;
|
|
101
|
-
value: PropTypes.Requireable<string>;
|
|
102
|
-
}>>[]>;
|
|
103
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
104
|
-
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
105
110
|
multiple: PropTypes.Requireable<boolean>;
|
|
106
|
-
modified: PropTypes.Requireable<boolean>;
|
|
107
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
108
|
-
error: PropTypes.Requireable<string>;
|
|
109
|
-
theme: PropTypes.Requireable<string>;
|
|
110
111
|
}> | null | undefined>>;
|
|
111
112
|
childType: PropTypes.Requireable<string>;
|
|
112
113
|
}> | null | undefined)[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAE/D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQd,CAAC;AACF,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,EACD,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAC3C,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,GACzC,oBAAoB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -311,7 +311,7 @@ declare namespace WizardContents {
|
|
|
311
311
|
name: PropTypes.Requireable<string>;
|
|
312
312
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
313
313
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
314
|
-
|
|
314
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
315
315
|
error: PropTypes.Requireable<string>;
|
|
316
316
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
317
317
|
errorButtonLabel: PropTypes.Requireable<string>;
|
|
@@ -332,6 +332,7 @@ declare namespace WizardContents {
|
|
|
332
332
|
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
333
333
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
334
334
|
pdfButtonAriaLabel: PropTypes.Requireable<string>;
|
|
335
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
335
336
|
}> | null | undefined)[]>;
|
|
336
337
|
'data-name': PropTypes.Requireable<string>;
|
|
337
338
|
}> | null | undefined>>;
|