@coorpacademy/components 11.19.1-alpha.13 → 11.19.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/es/atom/button-link/index.js +2 -2
  2. package/es/atom/button-link/index.js.map +1 -1
  3. package/es/atom/button-link/style.css +0 -1
  4. package/es/atom/drag-and-drop/index.d.ts +0 -1
  5. package/es/atom/drag-and-drop/index.d.ts.map +1 -1
  6. package/es/atom/drag-and-drop/index.js +6 -24
  7. package/es/atom/drag-and-drop/index.js.map +1 -1
  8. package/es/atom/drag-and-drop/style.css +7 -22
  9. package/es/atom/{input-file-draggable → image-upload}/index.d.ts +5 -10
  10. package/es/atom/image-upload/index.d.ts.map +1 -0
  11. package/es/atom/{input-file-draggable → image-upload}/index.js +11 -34
  12. package/es/atom/image-upload/index.js.map +1 -0
  13. package/es/atom/image-upload/style.css +28 -0
  14. package/es/atom/title/style.css +1 -1
  15. package/es/atom/video-upload/index.d.ts +0 -1
  16. package/es/molecule/brand-form-group/index.js +5 -5
  17. package/es/molecule/brand-form-group/index.js.map +1 -1
  18. package/es/molecule/card/index.d.ts.map +1 -1
  19. package/es/molecule/card/index.js +6 -2
  20. package/es/molecule/card/index.js.map +1 -1
  21. package/es/molecule/card/style.css +2 -2
  22. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  23. package/es/molecule/cm-popin/index.js +20 -27
  24. package/es/molecule/cm-popin/index.js.map +1 -1
  25. package/es/molecule/cm-popin/style.css +73 -112
  26. package/es/molecule/cm-popin/types.d.ts +5 -182
  27. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  28. package/es/molecule/cm-popin/types.js +3 -5
  29. package/es/molecule/cm-popin/types.js.map +1 -1
  30. package/es/molecule/drag-and-drop-wrapper/index.d.ts +1 -2
  31. package/es/molecule/drag-and-drop-wrapper/index.js +3 -3
  32. package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  33. package/es/molecule/setup-slider/index.js +3 -3
  34. package/es/molecule/setup-slider/index.js.map +1 -1
  35. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -2
  36. package/es/molecule/title-radio-wrapper/index.d.ts +17 -18
  37. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  38. package/es/molecule/title-radio-wrapper/index.js +2 -2
  39. package/es/molecule/title-radio-wrapper/index.js.map +1 -1
  40. package/es/molecule/title-radio-wrapper/types.d.ts +19 -20
  41. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  42. package/es/molecule/title-radio-wrapper/types.js +2 -2
  43. package/es/molecule/title-radio-wrapper/types.js.map +1 -1
  44. package/es/organism/list-item/index.d.ts.map +1 -1
  45. package/es/organism/list-item/index.js +5 -2
  46. package/es/organism/list-item/index.js.map +1 -1
  47. package/es/organism/list-item/style.css +7 -3
  48. package/es/organism/list-items/index.d.ts.map +1 -1
  49. package/es/organism/list-items/index.js +3 -1
  50. package/es/organism/list-items/index.js.map +1 -1
  51. package/es/organism/list-items/style.css +4 -1
  52. package/es/organism/rewards-form/index.d.ts +1 -2
  53. package/es/organism/select-opponents/index.d.ts +17 -18
  54. package/es/organism/select-opponents/index.d.ts.map +1 -1
  55. package/es/organism/select-opponents/types.d.ts +17 -18
  56. package/es/organism/select-opponents/types.d.ts.map +1 -1
  57. package/es/organism/setup-header/style.css +1 -3
  58. package/es/organism/title-and-input/index.d.ts +17 -18
  59. package/es/organism/title-and-input/index.d.ts.map +1 -1
  60. package/es/organism/title-and-input/types.d.ts +17 -18
  61. package/es/organism/title-and-input/types.d.ts.map +1 -1
  62. package/es/organism/wizard-contents/index.d.ts +1 -2
  63. package/es/template/app-player/loading/index.d.ts +2 -178
  64. package/es/template/app-player/player/index.d.ts +4 -356
  65. package/es/template/app-player/player/slides/index.d.ts +2 -178
  66. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  67. package/es/template/app-player/popin-correction/index.d.ts +2 -178
  68. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  69. package/es/template/app-player/popin-end/index.d.ts +2 -178
  70. package/es/template/app-review/index.d.ts +2 -178
  71. package/es/template/app-review/index.d.ts.map +1 -1
  72. package/es/template/app-review/player/prop-types.d.ts +2 -178
  73. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  74. package/es/template/app-review/prop-types.d.ts +2 -178
  75. package/es/template/app-review/prop-types.d.ts.map +1 -1
  76. package/es/template/back-office/brand-update/index.d.ts +2 -178
  77. package/es/template/cockpit/jw-uploader/index.d.ts +0 -1
  78. package/es/template/common/dashboard/index.d.ts +4 -356
  79. package/es/template/common/search-page/index.d.ts +2 -178
  80. package/es/template/common/search-page/index.d.ts.map +1 -1
  81. package/es/template/common/search-page/index.js +20 -2
  82. package/es/template/common/search-page/index.js.map +1 -1
  83. package/es/template/external-course/index.d.ts +2 -178
  84. package/es/util/proptypes.d.ts +1 -1
  85. package/es/util/proptypes.d.ts.map +1 -1
  86. package/es/util/proptypes.js +5 -6
  87. package/es/util/proptypes.js.map +1 -1
  88. package/lib/atom/button-link/index.js +2 -2
  89. package/lib/atom/button-link/index.js.map +1 -1
  90. package/lib/atom/button-link/style.css +0 -1
  91. package/lib/atom/drag-and-drop/index.d.ts +0 -1
  92. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  93. package/lib/atom/drag-and-drop/index.js +6 -24
  94. package/lib/atom/drag-and-drop/index.js.map +1 -1
  95. package/lib/atom/drag-and-drop/style.css +7 -22
  96. package/lib/atom/{input-file-draggable → image-upload}/index.d.ts +5 -10
  97. package/lib/atom/image-upload/index.d.ts.map +1 -0
  98. package/lib/atom/{input-file-draggable → image-upload}/index.js +10 -34
  99. package/lib/atom/image-upload/index.js.map +1 -0
  100. package/lib/atom/image-upload/style.css +28 -0
  101. package/lib/atom/title/style.css +1 -1
  102. package/lib/atom/video-upload/index.d.ts +0 -1
  103. package/lib/molecule/brand-form-group/index.js +5 -5
  104. package/lib/molecule/brand-form-group/index.js.map +1 -1
  105. package/lib/molecule/card/index.d.ts.map +1 -1
  106. package/lib/molecule/card/index.js +6 -2
  107. package/lib/molecule/card/index.js.map +1 -1
  108. package/lib/molecule/card/style.css +2 -2
  109. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  110. package/lib/molecule/cm-popin/index.js +19 -29
  111. package/lib/molecule/cm-popin/index.js.map +1 -1
  112. package/lib/molecule/cm-popin/style.css +73 -112
  113. package/lib/molecule/cm-popin/types.d.ts +5 -182
  114. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  115. package/lib/molecule/cm-popin/types.js +3 -6
  116. package/lib/molecule/cm-popin/types.js.map +1 -1
  117. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +1 -2
  118. package/lib/molecule/drag-and-drop-wrapper/index.js +3 -3
  119. package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  120. package/lib/molecule/setup-slider/index.js +3 -3
  121. package/lib/molecule/setup-slider/index.js.map +1 -1
  122. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -2
  123. package/lib/molecule/title-radio-wrapper/index.d.ts +17 -18
  124. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  125. package/lib/molecule/title-radio-wrapper/index.js +2 -2
  126. package/lib/molecule/title-radio-wrapper/index.js.map +1 -1
  127. package/lib/molecule/title-radio-wrapper/types.d.ts +19 -20
  128. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  129. package/lib/molecule/title-radio-wrapper/types.js +2 -2
  130. package/lib/molecule/title-radio-wrapper/types.js.map +1 -1
  131. package/lib/organism/list-item/index.d.ts.map +1 -1
  132. package/lib/organism/list-item/index.js +5 -3
  133. package/lib/organism/list-item/index.js.map +1 -1
  134. package/lib/organism/list-item/style.css +7 -3
  135. package/lib/organism/list-items/index.d.ts.map +1 -1
  136. package/lib/organism/list-items/index.js +3 -1
  137. package/lib/organism/list-items/index.js.map +1 -1
  138. package/lib/organism/list-items/style.css +4 -1
  139. package/lib/organism/rewards-form/index.d.ts +1 -2
  140. package/lib/organism/select-opponents/index.d.ts +17 -18
  141. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  142. package/lib/organism/select-opponents/types.d.ts +17 -18
  143. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  144. package/lib/organism/setup-header/style.css +1 -3
  145. package/lib/organism/title-and-input/index.d.ts +17 -18
  146. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  147. package/lib/organism/title-and-input/types.d.ts +17 -18
  148. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  149. package/lib/organism/wizard-contents/index.d.ts +1 -2
  150. package/lib/template/app-player/loading/index.d.ts +2 -178
  151. package/lib/template/app-player/player/index.d.ts +4 -356
  152. package/lib/template/app-player/player/slides/index.d.ts +2 -178
  153. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  154. package/lib/template/app-player/popin-correction/index.d.ts +2 -178
  155. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  156. package/lib/template/app-player/popin-end/index.d.ts +2 -178
  157. package/lib/template/app-review/index.d.ts +2 -178
  158. package/lib/template/app-review/index.d.ts.map +1 -1
  159. package/lib/template/app-review/player/prop-types.d.ts +2 -178
  160. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  161. package/lib/template/app-review/prop-types.d.ts +2 -178
  162. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  163. package/lib/template/back-office/brand-update/index.d.ts +2 -178
  164. package/lib/template/cockpit/jw-uploader/index.d.ts +0 -1
  165. package/lib/template/common/dashboard/index.d.ts +4 -356
  166. package/lib/template/common/search-page/index.d.ts +2 -178
  167. package/lib/template/common/search-page/index.d.ts.map +1 -1
  168. package/lib/template/common/search-page/index.js +24 -2
  169. package/lib/template/common/search-page/index.js.map +1 -1
  170. package/lib/template/external-course/index.d.ts +2 -178
  171. package/lib/util/proptypes.d.ts +1 -1
  172. package/lib/util/proptypes.d.ts.map +1 -1
  173. package/lib/util/proptypes.js +7 -10
  174. package/lib/util/proptypes.js.map +1 -1
  175. package/package.json +2 -2
  176. package/es/atom/input-file-draggable/index.d.ts.map +0 -1
  177. package/es/atom/input-file-draggable/index.js.map +0 -1
  178. package/es/atom/input-file-draggable/style.css +0 -81
  179. package/lib/atom/input-file-draggable/index.d.ts.map +0 -1
  180. package/lib/atom/input-file-draggable/index.js.map +0 -1
  181. package/lib/atom/input-file-draggable/style.css +0 -81
@@ -5,7 +5,7 @@ exports.default = void 0;
5
5
 
6
6
  var _propTypes = _interopRequireDefault(require("prop-types"));
7
7
 
8
- var _inputFileDraggable = _interopRequireDefault(require("../../atom/input-file-draggable"));
8
+ var _imageUpload = _interopRequireDefault(require("../../atom/image-upload"));
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(_inputFileDraggable.default.propTypes)]),
18
+ field: _propTypes.default.oneOfType([_propTypes.default.shape(_selectMultiple.default.propTypes), _propTypes.default.shape(_imageUpload.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","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
+ {"version":3,"file":"types.js","names":["propTypes","radioWithTitle","PropTypes","shape","RadioWithTitle","field","oneOfType","SelectMultiple","ImageUpload","childType","oneOf"],"sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ImageUpload from '../../atom/image-upload';\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(ImageUpload.propTypes)\n ]),\n childType: PropTypes.oneOf(['select-multiple', 'massive-upload'])\n};\n\nexport type TitleRadioWrapperProps = {\n radioWithTitle: RadioWithTitleProps;\n field: typeof SelectMultiple.propTypes | typeof ImageUpload.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,oBAAA,CAAYR,SAA5B,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;;;;;;;;;;;gBA0DC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;gBAgEC"}
@@ -5,8 +5,6 @@ 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
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -72,7 +70,11 @@ const ListItem = ({
72
70
  title: title
73
71
  }, title), dataColumnsView), /*#__PURE__*/_react.default.createElement("div", {
74
72
  className: _style.default.settings
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));
73
+ }, tagsView, buttonLink ? /*#__PURE__*/_react.default.createElement("div", {
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)));
76
78
  };
77
79
 
78
80
  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 {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,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BAAA,CAAUC;EAZS,CAAhB,CApBG;EAkCnB7B,qBAAqB,EAAE4B,kBAAA,CAAUI,KAAV,CAAgB;IACrCc,eAAe,EAAElB,kBAAA,CAAUC,MADU;IAErCkB,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"}
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 ? (\n <div className={style.buttonLink}>\n <ButtonLink {...buttonLink} />\n </div>\n ) : null}\n {buttonLinkIcon ? (\n <div className={style.buttonLink}>\n <ButtonLinkIconOnly {...buttonLinkIcon} />\n </div>\n ) : null}\n <BulletPointMenuButton {...bulletPointMenuButton} />\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;AAV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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,14 +50,13 @@
50
50
  align-items: center;
51
51
  display: flex;
52
52
  height: 100%;
53
- gap: 16px;
54
53
  }
55
54
 
56
55
  .tag {
56
+ margin: 0 16px 0 0;
57
57
  text-overflow: ellipsis;
58
58
  white-space: nowrap;
59
59
  }
60
-
61
60
  .cell {
62
61
  display: flex;
63
62
  height: 56px;
@@ -73,6 +72,10 @@
73
72
  white-space: nowrap;
74
73
  }
75
74
 
75
+ .buttonLink {
76
+ margin: 0 16px 0 0;
77
+ }
78
+
76
79
  .order {
77
80
  width: 6px;
78
81
  height: 20px;
@@ -88,5 +91,6 @@
88
91
  .dataColumnsWrapper {
89
92
  align-items: center;
90
93
  display: flex;
91
- max-width: 80%;
94
+ width: 100%;
95
+ margin-left: 24px;
92
96
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAqEA;;;;;;gBAsBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAoEA;;;;;;gBAwBC"}
@@ -103,7 +103,9 @@ 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(_buttonLink.default, buttonLink))), contentView);
106
+ }, /*#__PURE__*/_react.default.createElement(_selectMultiple.default, selectMultiple)) : null, /*#__PURE__*/_react.default.createElement("div", {
107
+ className: _style.default.buttonCreate
108
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)))), contentView);
107
109
  };
108
110
 
109
111
  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","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 ]),\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,WAfH,CADF;AAmBD,CAtBD;;AAwBAH,SAAS,CAACM,SAAV,2CAAsB;EACpB,cAAcC,kBAAA,CAAUC,MADJ;EAEpBN,UAAU,EAAEK,kBAAA,CAAUE,KAAV,CAAgBC,mBAAA,CAAWJ,SAA3B,CAFQ;EAGpB/B,cAAc,EAAEgC,kBAAA,CAAUE,KAAV,CAAgBE,uBAAA,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"}
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","buttonCreate","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};\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 <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\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;IAAkBC,MAAlB;IAA0BC,WAAW,GAAG,KAAxC;IAA+CC;EAA/C,IAA8DP,OAApE;EACA,MAAMQ,SAAS,GACbF,WAAW,IAAIH,KAAK,CAACM,MAAN,GAAe,CAA9B,gBACE,6BAAC,sBAAD;IACE,KAAK,EAAEN,KAAK,CAACO,GAAN,CAAUC,IAAI,iBAASA,IAAT;MAAeC,WAAW,EAAER;IAA5B,EAAd,CADT;IAEE,QAAQ,EAAC,WAFX;IAGE,MAAM,EAAEC;EAHV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,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGdvC,QAAQ,EAAE+B,kBAAA,CAAUC,MAHN;IAId/B,MAAM,EAAE8B,kBAAA,CAAUS,IAJJ;IAKdtC,WAAW,EAAE6B,kBAAA,CAAUU,IALT;IAMdtC,WAAW,EAAE4B,kBAAA,CAAUM,OAAV,CAAkBN,kBAAA,CAAUC,MAA5B;EANC,CAAhB,CAD2B,EAS3BD,kBAAA,CAAUE,KAAV,cACKS,kCAAA,CAA0BZ,SAD/B;IAEER,IAAI,EAAES,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAT2B,CAApB,CAJW;EAkBpBf,KAAK,EAAEO,kBAAA,CAAUC;AAlBG,CAAtB;eAqBeT,S"}
@@ -13,7 +13,6 @@
13
13
  padding: 0 24px;
14
14
  margin-bottom: 24px;
15
15
  }
16
-
17
16
  .actionsWrapper {
18
17
  display: flex;
19
18
  align-items: center;
@@ -32,6 +31,10 @@
32
31
  text-align: left;
33
32
  }
34
33
 
34
+ .buttonCreate {
35
+ width: 194px;
36
+ }
37
+
35
38
  .selectMultiple {
36
39
  width: 291px;
37
40
  }
@@ -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
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
53
+ imageTypes: (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,7 +71,6 @@ 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>;
75
74
  }> | null | undefined)[]>;
76
75
  'data-name': PropTypes.Requireable<string>;
77
76
  }> | null | undefined>>;
@@ -20,27 +20,10 @@ 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<{
40
23
  name: import("prop-types").Requireable<string>;
41
24
  onChange: import("prop-types").Requireable<(...args: any[]) => any>;
42
25
  onReset: import("prop-types").Requireable<(...args: any[]) => any>;
43
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
26
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
44
27
  error: import("prop-types").Requireable<string>;
45
28
  buttonAriaLabel: import("prop-types").Requireable<string>;
46
29
  errorButtonLabel: import("prop-types").Requireable<string>;
@@ -61,7 +44,23 @@ declare const SelectOpponents: {
61
44
  children: import("prop-types").Requireable<(...args: any[]) => any>;
62
45
  pdfButtonLabel: import("prop-types").Requireable<string>;
63
46
  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>;
64
59
  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>;
65
64
  }> | null | undefined>>;
66
65
  childType: import("prop-types").Requireable<string>;
67
66
  }> | 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanD,CAAC;AAIF,eAAe,eAAe,CAAC"}
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,27 +18,10 @@ 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<{
38
21
  name: PropTypes.Requireable<string>;
39
22
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
40
23
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
41
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
24
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
42
25
  error: PropTypes.Requireable<string>;
43
26
  buttonAriaLabel: PropTypes.Requireable<string>;
44
27
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -59,7 +42,23 @@ export declare const propTypes: {
59
42
  children: PropTypes.Requireable<(...args: any[]) => any>;
60
43
  pdfButtonLabel: PropTypes.Requireable<string>;
61
44
  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>;
62
57
  multiple: PropTypes.Requireable<boolean>;
58
+ modified: PropTypes.Requireable<boolean>;
59
+ disabled: PropTypes.Requireable<boolean>;
60
+ error: PropTypes.Requireable<string>;
61
+ theme: PropTypes.Requireable<string>;
63
62
  }> | null | undefined>>;
64
63
  childType: PropTypes.Requireable<string>;
65
64
  }> | 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,sBAAsB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAe,SAAS,CAAC"}
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,17 +76,16 @@
76
76
  align-items: center;
77
77
  margin: 0;
78
78
  padding: 0;
79
- gap: 16px;
80
79
  }
81
80
 
82
81
  .list a {
83
82
  cursor: pointer;
84
83
  text-decoration: none;
85
- padding: 0;
86
84
  }
87
85
 
88
86
  .button {
89
87
  min-width: 175px;
88
+ margin-right: 16px;
90
89
  pointer-events: fill;
91
90
  }
92
91
 
@@ -107,7 +106,6 @@
107
106
  }
108
107
 
109
108
  .logOut {
110
- display: flex;
111
109
  width: 100px;
112
110
  color: negative;
113
111
  pointer-events: fill;
@@ -65,27 +65,10 @@ 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<{
85
68
  name: import("prop-types").Requireable<string>;
86
69
  onChange: import("prop-types").Requireable<(...args: any[]) => any>;
87
70
  onReset: import("prop-types").Requireable<(...args: any[]) => any>;
88
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
71
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
89
72
  error: import("prop-types").Requireable<string>;
90
73
  buttonAriaLabel: import("prop-types").Requireable<string>;
91
74
  errorButtonLabel: import("prop-types").Requireable<string>;
@@ -106,7 +89,23 @@ declare const TitleAndInput: {
106
89
  children: import("prop-types").Requireable<(...args: any[]) => any>;
107
90
  pdfButtonLabel: import("prop-types").Requireable<string>;
108
91
  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>;
109
104
  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>;
110
109
  }> | null | undefined>>;
111
110
  childType: import("prop-types").Requireable<string>;
112
111
  }> | 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
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,27 +66,10 @@ 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<{
86
69
  name: PropTypes.Requireable<string>;
87
70
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
88
71
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
89
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
72
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
90
73
  error: PropTypes.Requireable<string>;
91
74
  buttonAriaLabel: PropTypes.Requireable<string>;
92
75
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -107,7 +90,23 @@ declare const propTypes: {
107
90
  children: PropTypes.Requireable<(...args: any[]) => any>;
108
91
  pdfButtonLabel: PropTypes.Requireable<string>;
109
92
  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>;
110
105
  multiple: PropTypes.Requireable<boolean>;
106
+ modified: PropTypes.Requireable<boolean>;
107
+ disabled: PropTypes.Requireable<boolean>;
108
+ error: PropTypes.Requireable<string>;
109
+ theme: PropTypes.Requireable<string>;
111
110
  }> | null | undefined>>;
112
111
  childType: PropTypes.Requireable<string>;
113
112
  }> | 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
314
+ imageTypes: (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,7 +332,6 @@ 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>;
336
335
  }> | null | undefined)[]>;
337
336
  'data-name': PropTypes.Requireable<string>;
338
337
  }> | null | undefined>>;