@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
@@ -1,10 +1,10 @@
1
1
  import PropTypes from 'prop-types';
2
- import InputFileDraggable from '../../atom/input-file-draggable';
2
+ import ImageUpload from '../../atom/image-upload';
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(InputFileDraggable.propTypes)]),
7
+ field: PropTypes.oneOfType([PropTypes.shape(SelectMultiple.propTypes), PropTypes.shape(ImageUpload.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","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
+ {"version":3,"file":"types.js","names":["PropTypes","ImageUpload","RadioWithTitle","SelectMultiple","propTypes","radioWithTitle","shape","field","oneOfType","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,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,WAAP,MAAwB,yBAAxB;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,WAAW,CAACG,SAA5B,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;;;;;;;;;;;gBA0DC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;gBAgEC"}
@@ -1,5 +1,4 @@
1
1
  import _map from "lodash/fp/map";
2
- import _isEmpty from "lodash/fp/isEmpty";
3
2
  import React from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
  import classnames from 'classnames';
@@ -56,7 +55,11 @@ const ListItem = ({
56
55
  title: title
57
56
  }, title), dataColumnsView), /*#__PURE__*/React.createElement("div", {
58
57
  className: style.settings
59
- }, tagsView, buttonLink ? /*#__PURE__*/React.createElement(ButtonLink, buttonLink) : null, buttonLinkIcon ? /*#__PURE__*/React.createElement(ButtonLinkIconOnly, buttonLinkIcon) : null, !_isEmpty(bulletPointMenuButton) ? /*#__PURE__*/React.createElement(BulletPointMenuButton, bulletPointMenuButton) : null));
58
+ }, tagsView, buttonLink ? /*#__PURE__*/React.createElement("div", {
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)));
60
63
  };
61
64
 
62
65
  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 {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,OAAOC,qBAAP,MAAkC,yCAAlC,C,CACA;;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,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,KAAIC,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,EAAEjB,KAAK,CAACgB;IAAlC,gBACE,oBAAC,GAAD,EAASA,GAAT,CADF,CADF;EAKD,CAPgB,EAOdX,IAPc,CAAjB;;EASA,MAAMc,eAAe,GAAG,KAAIL,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACK,UAAD,EA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/B,CAAhB;IAHY,CAAhB,CANwB;IAW9BY,QAAQ,EAAEpD,SAAS,CAACkD,IAXU;IAY9BvB,SAAS,EAAE3B,SAAS,CAACoC;EAZS,CAAhB,CApBG;EAkCnB1B,qBAAqB,EAAEV,SAAS,CAACuC,KAAV,CAAgB;IACrCc,eAAe,EAAErD,SAAS,CAACoC,MADU;IAErCkB,aAAa,EAAEtD,SAAS,CAACoC,MAFY;IAGrCmB,OAAO,EAAEvD,SAAS,CAACsC,OAAV,CACPtC,SAAS,CAACuC,KAAV,CAAgB;MACd,aAAavC,SAAS,CAACoC,MADT;MAEdR,KAAK,EAAE5B,SAAS,CAACoC,MAFH;MAGdZ,IAAI,EAAExB,SAAS,CAACoC,MAHF;MAIdQ,OAAO,EAAE5C,SAAS,CAAC6C;IAJL,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"}
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 ? (\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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,GAAP,MAA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MADT;MAEdR,KAAK,EAAE5B,SAAS,CAACoC,MAFH;MAGdZ,IAAI,EAAExB,SAAS,CAACoC,MAHF;MAIdQ,OAAO,EAAE5C,SAAS,CAAC6C;IAJL,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,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"}
@@ -86,7 +86,9 @@ 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(ButtonLink, buttonLink))), contentView);
89
+ }, /*#__PURE__*/React.createElement(SelectMultiple, selectMultiple)) : null, /*#__PURE__*/React.createElement("div", {
90
+ className: style.buttonCreate
91
+ }, /*#__PURE__*/React.createElement(ButtonLink, buttonLink)))), contentView);
90
92
  };
91
93
 
92
94
  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","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,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,oBAAC,aAAD;IACE,KAAK,EAAEN,KAAK,CAACO,GAAN,CAAUC,IAAI,iBAASA,IAAT;MAAeC,WAAW,EAAER;IAA5B,EAAd,CADT;IAEE,QAAQ,EAAC,WAFX;IAGE,MAAM,EAAEC;EAHV,EADF,GAOEF,KAAK,CAACO,GAAN,CAAU,CAACC,IAAD,EAAOE,KAAP,kBACR;IAAI,GAAG,EAAEF,IAAI,CAACG,EAAd;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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"}
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","buttonCreate","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};\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,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,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,oBAAC,aAAD;IACE,KAAK,EAAEN,KAAK,CAACO,GAAN,CAAUC,IAAI,iBAASA,IAAT;MAAeC,WAAW,EAAER;IAA5B,EAAd,CADT;IAEE,QAAQ,EAAC,WAFX;IAGE,MAAM,EAAEC;EAHV,EADF,GAOEF,KAAK,CAACO,GAAN,CAAU,CAACC,IAAD,EAAOE,KAAP,kBACR;IAAI,GAAG,EAAEF,IAAI,CAACG,EAAd;IAAkB,SAAS,EAAEhB,KAAK,CAACa,IAAnC;IAAyC,aAAY,WAAUE,KAAM;EAArE,gBACE,oBAAC,QAAD,eAAcF,IAAd;IAAoB,KAAK,EAAE,IAA3B;IAAiC,WAAW,EAAEP;EAA9C,GADF,CADF,CARJ;EAcA,MAAMW,eAAe,GACnB,CAACzB,KAAK,CAACiB,WAAD,CAAN,IAAuB,CAAChB,OAAO,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AAD,CAAhB;EAFR,GAT2B,CAApB,CAJW;EAkBpBX,KAAK,EAAEpC,SAAS,CAAC2C;AAlBG,CAAtB;AAqBA,eAAeR,SAAf"}
@@ -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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,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>>;