@coorpacademy/components 11.19.1-alpha.4 → 11.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +1 -0
  4. package/es/atom/drag-and-drop/index.d.ts +1 -0
  5. package/es/atom/drag-and-drop/index.d.ts.map +1 -1
  6. package/es/atom/drag-and-drop/index.js +24 -6
  7. package/es/atom/drag-and-drop/index.js.map +1 -1
  8. package/es/atom/drag-and-drop/style.css +22 -7
  9. package/es/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
  10. package/es/atom/input-file-draggable/index.d.ts.map +1 -0
  11. package/es/atom/{image-upload → input-file-draggable}/index.js +34 -11
  12. package/es/atom/input-file-draggable/index.js.map +1 -0
  13. package/es/atom/input-file-draggable/style.css +81 -0
  14. package/es/atom/title/style.css +1 -1
  15. package/es/atom/video-upload/index.d.ts +1 -0
  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 +2 -6
  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 +27 -20
  24. package/es/molecule/cm-popin/index.js.map +1 -1
  25. package/es/molecule/cm-popin/style.css +112 -73
  26. package/es/molecule/cm-popin/types.d.ts +182 -5
  27. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  28. package/es/molecule/cm-popin/types.js +5 -3
  29. package/es/molecule/cm-popin/types.js.map +1 -1
  30. package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
  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 +2 -1
  36. package/es/molecule/title-radio-wrapper/index.d.ts +18 -17
  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 +20 -19
  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 +2 -5
  46. package/es/organism/list-item/index.js.map +1 -1
  47. package/es/organism/list-item/style.css +3 -7
  48. package/es/organism/list-items/index.d.ts.map +1 -1
  49. package/es/organism/list-items/index.js +1 -3
  50. package/es/organism/list-items/index.js.map +1 -1
  51. package/es/organism/list-items/style.css +1 -4
  52. package/es/organism/rewards-form/index.d.ts +2 -1
  53. package/es/organism/select-opponents/index.d.ts +18 -17
  54. package/es/organism/select-opponents/index.d.ts.map +1 -1
  55. package/es/organism/select-opponents/types.d.ts +18 -17
  56. package/es/organism/select-opponents/types.d.ts.map +1 -1
  57. package/es/organism/setup-header/style.css +3 -1
  58. package/es/organism/title-and-input/index.d.ts +18 -17
  59. package/es/organism/title-and-input/index.d.ts.map +1 -1
  60. package/es/organism/title-and-input/types.d.ts +18 -17
  61. package/es/organism/title-and-input/types.d.ts.map +1 -1
  62. package/es/organism/wizard-contents/index.d.ts +2 -1
  63. package/es/template/app-player/loading/index.d.ts +178 -2
  64. package/es/template/app-player/player/index.d.ts +356 -4
  65. package/es/template/app-player/player/slides/index.d.ts +178 -2
  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 +178 -2
  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 +178 -2
  70. package/es/template/app-review/index.d.ts +178 -2
  71. package/es/template/app-review/index.d.ts.map +1 -1
  72. package/es/template/app-review/player/prop-types.d.ts +178 -2
  73. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  74. package/es/template/app-review/prop-types.d.ts +178 -2
  75. package/es/template/app-review/prop-types.d.ts.map +1 -1
  76. package/es/template/back-office/brand-update/index.d.ts +178 -2
  77. package/es/template/cockpit/jw-uploader/index.d.ts +1 -0
  78. package/es/template/common/dashboard/index.d.ts +356 -4
  79. package/es/template/common/search-page/index.d.ts +178 -2
  80. package/es/template/common/search-page/index.d.ts.map +1 -1
  81. package/es/template/common/search-page/index.js +2 -20
  82. package/es/template/common/search-page/index.js.map +1 -1
  83. package/es/template/external-course/index.d.ts +178 -2
  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 +6 -5
  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 +1 -0
  91. package/lib/atom/drag-and-drop/index.d.ts +1 -0
  92. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  93. package/lib/atom/drag-and-drop/index.js +24 -6
  94. package/lib/atom/drag-and-drop/index.js.map +1 -1
  95. package/lib/atom/drag-and-drop/style.css +22 -7
  96. package/lib/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
  97. package/lib/atom/input-file-draggable/index.d.ts.map +1 -0
  98. package/lib/atom/{image-upload → input-file-draggable}/index.js +34 -10
  99. package/lib/atom/input-file-draggable/index.js.map +1 -0
  100. package/lib/atom/input-file-draggable/style.css +81 -0
  101. package/lib/atom/title/style.css +1 -1
  102. package/lib/atom/video-upload/index.d.ts +1 -0
  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 +2 -6
  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 +29 -19
  111. package/lib/molecule/cm-popin/index.js.map +1 -1
  112. package/lib/molecule/cm-popin/style.css +112 -73
  113. package/lib/molecule/cm-popin/types.d.ts +182 -5
  114. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  115. package/lib/molecule/cm-popin/types.js +6 -3
  116. package/lib/molecule/cm-popin/types.js.map +1 -1
  117. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
  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 +2 -1
  123. package/lib/molecule/title-radio-wrapper/index.d.ts +18 -17
  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 +20 -19
  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 +3 -5
  133. package/lib/organism/list-item/index.js.map +1 -1
  134. package/lib/organism/list-item/style.css +3 -7
  135. package/lib/organism/list-items/index.d.ts.map +1 -1
  136. package/lib/organism/list-items/index.js +1 -3
  137. package/lib/organism/list-items/index.js.map +1 -1
  138. package/lib/organism/list-items/style.css +1 -4
  139. package/lib/organism/rewards-form/index.d.ts +2 -1
  140. package/lib/organism/select-opponents/index.d.ts +18 -17
  141. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  142. package/lib/organism/select-opponents/types.d.ts +18 -17
  143. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  144. package/lib/organism/setup-header/style.css +3 -1
  145. package/lib/organism/title-and-input/index.d.ts +18 -17
  146. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  147. package/lib/organism/title-and-input/types.d.ts +18 -17
  148. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  149. package/lib/organism/wizard-contents/index.d.ts +2 -1
  150. package/lib/template/app-player/loading/index.d.ts +178 -2
  151. package/lib/template/app-player/player/index.d.ts +356 -4
  152. package/lib/template/app-player/player/slides/index.d.ts +178 -2
  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 +178 -2
  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 +178 -2
  157. package/lib/template/app-review/index.d.ts +178 -2
  158. package/lib/template/app-review/index.d.ts.map +1 -1
  159. package/lib/template/app-review/player/prop-types.d.ts +178 -2
  160. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  161. package/lib/template/app-review/prop-types.d.ts +178 -2
  162. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  163. package/lib/template/back-office/brand-update/index.d.ts +178 -2
  164. package/lib/template/cockpit/jw-uploader/index.d.ts +1 -0
  165. package/lib/template/common/dashboard/index.d.ts +356 -4
  166. package/lib/template/common/search-page/index.d.ts +178 -2
  167. package/lib/template/common/search-page/index.d.ts.map +1 -1
  168. package/lib/template/common/search-page/index.js +2 -24
  169. package/lib/template/common/search-page/index.js.map +1 -1
  170. package/lib/template/external-course/index.d.ts +178 -2
  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 +10 -7
  174. package/lib/util/proptypes.js.map +1 -1
  175. package/package.json +3 -3
  176. package/es/atom/image-upload/index.d.ts.map +0 -1
  177. package/es/atom/image-upload/index.js.map +0 -1
  178. package/es/atom/image-upload/style.css +0 -28
  179. package/lib/atom/image-upload/index.d.ts.map +0 -1
  180. package/lib/atom/image-upload/index.js.map +0 -1
  181. package/lib/atom/image-upload/style.css +0 -28
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","Accordion","Select","InputReadonly","InputText","InputCheckbox","InputDoublestep","InputSwitch","ImageUpload","SetupCohortItem","MessagePopin","BrandDownloadBox","Title","style","SetupSlider","props","tabProps","slides","buildSlides","slides_","convert","cap","slide","key","buildInput","field","type","imageUploadContainer","title","subtitle","buildField","index","input","fieldsList","fields","wrapper","slidesView","wrapperStyle","SlidePropTypes","shape","arrayOf","oneOfType","propTypes","oneOf","SetupSliderPropTypes"],"sources":["../../../src/molecule/setup-slider/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Accordion from '../../organism/accordion/toggler';\nimport Select from '../../atom/select';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputText from '../../atom/input-text';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport InputSwitch from '../../atom/input-switch';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupCohortItem from '../setup-cohort-item';\nimport MessagePopin from '../message-popin';\nimport BrandDownloadBox from '../brand-download-box';\nimport Title from '../../atom/title';\nimport style from './style.css';\n\nconst SetupSlider = props => {\n const {tabProps = [], slides = []} = props;\n const buildSlides = slides_ => {\n return map.convert({cap: false})((slide, key) => {\n const buildInput = field => {\n const {type} = field;\n switch (type) {\n case 'switch':\n return <InputSwitch {...field} />;\n case 'select':\n return <Select {...field} theme={'coorpmanager'} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return (\n <div className={style.imageUploadContainer}>\n <ImageUpload {...field} />\n </div>\n );\n case 'splitForm':\n return <SetupCohortItem field={field} />;\n case 'alert':\n return <MessagePopin header={field.title} content={field.subtitle} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'form-group':\n return <Title {...field} />;\n case 'slider':\n return (\n <Accordion tabProps={field.tabProps} type={'all'} theme={'setup'}>\n {buildSlides(field.slides)}\n </Accordion>\n );\n default:\n return <InputText {...field} />;\n }\n };\n\n const buildField = (field, index) => {\n const input = buildInput(field);\n return (\n <div className={style.field} key={index}>\n {input}\n </div>\n );\n };\n\n const fieldsList = map.convert({cap: false})(buildField, slide.fields);\n\n return (\n <div className={style.wrapper} key={key}>\n {fieldsList}\n </div>\n );\n }, slides_);\n };\n\n const slidesView = buildSlides(slides);\n\n return (\n <div className={style.wrapperStyle}>\n <Accordion tabProps={tabProps} type={'all'} theme={'setup'}>\n {slidesView}\n </Accordion>\n </div>\n );\n};\n\nconst SlidePropTypes = PropTypes.shape({\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select'])\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...SetupCohortItem.propTypes,\n type: PropTypes.oneOf(['splitForm'])\n }),\n PropTypes.shape({\n ...MessagePopin.propTypes,\n type: PropTypes.oneOf(['alert'])\n }),\n PropTypes.shape(InputText.propTypes),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n })\n ])\n )\n});\n\nconst SetupSliderPropTypes = {\n tabProps: PropTypes.arrayOf(PropTypes.shape(Accordion.propTypes)),\n slides: PropTypes.arrayOf(SlidePropTypes)\n};\n\nSetupSlider.propTypes = SetupSliderPropTypes;\n\nexport default SetupSlider;\n"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,SAAP,MAAsB,kCAAtB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,aAAP,MAA0B,2BAA1B;AACA,OAAOC,SAAP,MAAsB,uBAAtB;AACA,OAAOC,aAAP,MAA0B,2BAA1B;AACA,OAAOC,eAAP,MAA4B,6BAA5B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IAACC,QAAQ,GAAG,EAAZ;IAAgBC,MAAM,GAAG;EAAzB,IAA+BF,KAArC;;EACA,MAAMG,WAAW,GAAGC,OAAO,IAAI;IAC7B,OAAO,KAAIC,OAAJ,CAAY;MAACC,GAAG,EAAE;IAAN,CAAZ,EAA0B,CAACC,KAAD,EAAQC,GAAR,KAAgB;MAC/C,MAAMC,UAAU,GAAGC,KAAK,IAAI;QAC1B,MAAM;UAACC;QAAD,IAASD,KAAf;;QACA,QAAQC,IAAR;UACE,KAAK,QAAL;YACE,oBAAO,oBAAC,WAAD,EAAiBD,KAAjB,CAAP;;UACF,KAAK,QAAL;YACE,oBAAO,oB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,CAAgB,CAAC,OAAD,CAAhB;EAFR,GAjBkB,EAqBlB3C,SAAS,CAACuC,KAAV,cACKpC,aAAa,CAACuC,SADnB;IAEEhB,IAAI,EAAE1B,SAAS,CAAC2C,KAAV,CAAgB,CAAC,UAAD,CAAhB;EAFR,GArBkB,EAyBlB3C,SAAS,CAACuC,KAAV,cACKjC,eAAe,CAACoC,SADrB;IAEEhB,IAAI,EAAE1B,SAAS,CAAC2C,KAAV,CAAgB,CAAC,YAAD,CAAhB;EAFR,GAzBkB,EA6BlB3C,SAAS,CAACuC,KAAV,cACK9B,eAAe,CAACiC,SADrB;IAEEhB,IAAI,EAAE1B,SAAS,CAAC2C,KAAV,CAAgB,CAAC,WAAD,CAAhB;EAFR,GA7BkB,EAiClB3C,SAAS,CAACuC,KAAV,cACK7B,YAAY,CAACgC,SADlB;IAEEhB,IAAI,EAAE1B,SAAS,CAAC2C,KAAV,CAAgB,CAAC,OAAD,CAAhB;EAFR,GAjCkB,EAqClB3C,SAAS,CAACuC,KAAV,CAAgBnC,SAAS,CAACsC,SAA1B,CArCkB,EAsClB1C,SAAS,CAACuC,KAAV,cACK5B,gBAAgB,CAAC+B,SADtB;IAEEhB,IAAI,EAAE1B,SAAS,CAAC2C,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFR,GAtCkB,CAApB,CADM;AAD6B,CAAhB,CAAvB;AAgDA,MAAMC,oBAAN,2CAA6B;EAC3B5B,QAAQ,EAAEhB,SAAS,CAACwC,OAAV,CAAkBxC,SAAS,CAACuC,KAAV,CAAgBtC,SAAS,CAACyC,SAA1B,CAAlB,CADiB;EAE3BzB,MAAM,EAAEjB,SAAS,CAACwC,OAAV,CAAkBF,cAAlB;AAFmB,CAA7B;AAKAxB,WAAW,CAAC4B,SAAZ,2CAAwBE,oBAAxB;AAEA,eAAe9B,WAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","Accordion","Select","InputReadonly","InputText","InputCheckbox","InputDoublestep","InputSwitch","InputFileDraggable","SetupCohortItem","MessagePopin","BrandDownloadBox","Title","style","SetupSlider","props","tabProps","slides","buildSlides","slides_","convert","cap","slide","key","buildInput","field","type","imageUploadContainer","title","subtitle","buildField","index","input","fieldsList","fields","wrapper","slidesView","wrapperStyle","SlidePropTypes","shape","arrayOf","oneOfType","propTypes","oneOf","SetupSliderPropTypes"],"sources":["../../../src/molecule/setup-slider/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Accordion from '../../organism/accordion/toggler';\nimport Select from '../../atom/select';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputText from '../../atom/input-text';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport InputSwitch from '../../atom/input-switch';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport SetupCohortItem from '../setup-cohort-item';\nimport MessagePopin from '../message-popin';\nimport BrandDownloadBox from '../brand-download-box';\nimport Title from '../../atom/title';\nimport style from './style.css';\n\nconst SetupSlider = props => {\n const {tabProps = [], slides = []} = props;\n const buildSlides = slides_ => {\n return map.convert({cap: false})((slide, key) => {\n const buildInput = field => {\n const {type} = field;\n switch (type) {\n case 'switch':\n return <InputSwitch {...field} />;\n case 'select':\n return <Select {...field} theme={'coorpmanager'} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return (\n <div className={style.imageUploadContainer}>\n <InputFileDraggable {...field} />\n </div>\n );\n case 'splitForm':\n return <SetupCohortItem field={field} />;\n case 'alert':\n return <MessagePopin header={field.title} content={field.subtitle} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'form-group':\n return <Title {...field} />;\n case 'slider':\n return (\n <Accordion tabProps={field.tabProps} type={'all'} theme={'setup'}>\n {buildSlides(field.slides)}\n </Accordion>\n );\n default:\n return <InputText {...field} />;\n }\n };\n\n const buildField = (field, index) => {\n const input = buildInput(field);\n return (\n <div className={style.field} key={index}>\n {input}\n </div>\n );\n };\n\n const fieldsList = map.convert({cap: false})(buildField, slide.fields);\n\n return (\n <div className={style.wrapper} key={key}>\n {fieldsList}\n </div>\n );\n }, slides_);\n };\n\n const slidesView = buildSlides(slides);\n\n return (\n <div className={style.wrapperStyle}>\n <Accordion tabProps={tabProps} type={'all'} theme={'setup'}>\n {slidesView}\n </Accordion>\n </div>\n );\n};\n\nconst SlidePropTypes = PropTypes.shape({\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select'])\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...InputFileDraggable.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...SetupCohortItem.propTypes,\n type: PropTypes.oneOf(['splitForm'])\n }),\n PropTypes.shape({\n ...MessagePopin.propTypes,\n type: PropTypes.oneOf(['alert'])\n }),\n PropTypes.shape(InputText.propTypes),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n })\n ])\n )\n});\n\nconst SetupSliderPropTypes = {\n tabProps: PropTypes.arrayOf(PropTypes.shape(Accordion.propTypes)),\n slides: PropTypes.arrayOf(SlidePropTypes)\n};\n\nSetupSlider.propTypes = SetupSliderPropTypes;\n\nexport default SetupSlider;\n"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO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EAFR,GAzBkB,EA6BlB3C,SAAS,CAACuC,KAAV,cACK9B,eAAe,CAACiC,SADrB;IAEEhB,IAAI,EAAE1B,SAAS,CAAC2C,KAAV,CAAgB,CAAC,WAAD,CAAhB;EAFR,GA7BkB,EAiClB3C,SAAS,CAACuC,KAAV,cACK7B,YAAY,CAACgC,SADlB;IAEEhB,IAAI,EAAE1B,SAAS,CAAC2C,KAAV,CAAgB,CAAC,OAAD,CAAhB;EAFR,GAjCkB,EAqClB3C,SAAS,CAACuC,KAAV,CAAgBnC,SAAS,CAACsC,SAA1B,CArCkB,EAsClB1C,SAAS,CAACuC,KAAV,cACK5B,gBAAgB,CAAC+B,SADtB;IAEEhB,IAAI,EAAE1B,SAAS,CAAC2C,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFR,GAtCkB,CAApB,CADM;AAD6B,CAAhB,CAAvB;AAgDA,MAAMC,oBAAN,2CAA6B;EAC3B5B,QAAQ,EAAEhB,SAAS,CAACwC,OAAV,CAAkBxC,SAAS,CAACuC,KAAV,CAAgBtC,SAAS,CAACyC,SAA1B,CAAlB,CADiB;EAE3BzB,MAAM,EAAEjB,SAAS,CAACwC,OAAV,CAAkBF,cAAlB;AAFmB,CAA7B;AAKAxB,WAAW,CAAC4B,SAAZ,2CAAwBE,oBAAxB;AAEA,eAAe9B,WAAf"}
@@ -47,7 +47,7 @@ declare namespace TitleAndCheckBoxWrapper {
47
47
  name: PropTypes.Requireable<string>;
48
48
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
49
49
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
50
- imageTypes: (props: any, propName: any, componentName: any) => Error | null;
50
+ filesTypes: (props: any, propName: any, componentName: any) => Error | null;
51
51
  error: PropTypes.Requireable<string>;
52
52
  buttonAriaLabel: PropTypes.Requireable<string>;
53
53
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -68,6 +68,7 @@ declare namespace TitleAndCheckBoxWrapper {
68
68
  children: PropTypes.Requireable<(...args: any[]) => any>;
69
69
  pdfButtonLabel: PropTypes.Requireable<string>;
70
70
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
71
+ multiple: PropTypes.Requireable<boolean>;
71
72
  }> | null | undefined)[]>;
72
73
  'data-name': PropTypes.Requireable<string>;
73
74
  }> | null | undefined>>;
@@ -19,10 +19,27 @@ declare const TitleRadioWrapper: {
19
19
  'data-name': import("prop-types").Requireable<string>;
20
20
  }>>;
21
21
  field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
22
+ title: import("prop-types").Requireable<string>;
23
+ placeholder: import("prop-types").Requireable<string>;
24
+ description: import("prop-types").Requireable<string>;
25
+ hint: import("prop-types").Requireable<string>;
26
+ options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
27
+ selected: import("prop-types").Validator<boolean>;
28
+ name: import("prop-types").Validator<string>;
29
+ value: import("prop-types").Requireable<string>;
30
+ }>>[]>;
31
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
32
+ onError: import("prop-types").Requireable<(...args: any[]) => any>;
33
+ multiple: import("prop-types").Requireable<boolean>;
34
+ modified: import("prop-types").Requireable<boolean>;
35
+ disabled: import("prop-types").Requireable<boolean>;
36
+ error: import("prop-types").Requireable<string>;
37
+ theme: import("prop-types").Requireable<string>;
38
+ }> | import("prop-types").InferProps<{
22
39
  name: import("prop-types").Requireable<string>;
23
40
  onChange: import("prop-types").Requireable<(...args: any[]) => any>;
24
41
  onReset: import("prop-types").Requireable<(...args: any[]) => any>;
25
- imageTypes: (props: any, propName: any, componentName: any) => Error | null;
42
+ filesTypes: (props: any, propName: any, componentName: any) => Error | null;
26
43
  error: import("prop-types").Requireable<string>;
27
44
  buttonAriaLabel: import("prop-types").Requireable<string>;
28
45
  errorButtonLabel: import("prop-types").Requireable<string>;
@@ -43,23 +60,7 @@ declare const TitleRadioWrapper: {
43
60
  children: import("prop-types").Requireable<(...args: any[]) => any>;
44
61
  pdfButtonLabel: import("prop-types").Requireable<string>;
45
62
  pdfButtonAriaLabel: import("prop-types").Requireable<string>;
46
- }> | import("prop-types").InferProps<{
47
- title: import("prop-types").Requireable<string>;
48
- placeholder: import("prop-types").Requireable<string>;
49
- description: import("prop-types").Requireable<string>;
50
- hint: import("prop-types").Requireable<string>;
51
- options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
52
- selected: import("prop-types").Validator<boolean>;
53
- name: import("prop-types").Validator<string>;
54
- value: import("prop-types").Requireable<string>;
55
- }>>[]>;
56
- onChange: import("prop-types").Requireable<(...args: any[]) => any>;
57
- onError: import("prop-types").Requireable<(...args: any[]) => any>;
58
63
  multiple: import("prop-types").Requireable<boolean>;
59
- modified: import("prop-types").Requireable<boolean>;
60
- disabled: import("prop-types").Requireable<boolean>;
61
- error: import("prop-types").Requireable<string>;
62
- theme: import("prop-types").Requireable<string>;
63
64
  }> | null | undefined>>;
64
65
  childType: import("prop-types").Requireable<string>;
65
66
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import isEmpty from 'lodash/fp/isEmpty';
3
3
  import RadioWithTitle from '../../atom/radio-with-title';
4
4
  import SelectMultiple from '../select-multiple';
5
- import ImageUpload from '../../atom/image-upload';
5
+ import InputFileDraggable from '../../atom/input-file-draggable';
6
6
  import propTypes from './types';
7
7
  import style from './style.css';
8
8
 
@@ -13,7 +13,7 @@ const getContainerStyle = (field, childType) => {
13
13
  const buildInput = (childType, field) => {
14
14
  return childType === 'select-multiple' ? /*#__PURE__*/React.createElement(SelectMultiple, field) : /*#__PURE__*/React.createElement("div", {
15
15
  className: field.loading || isEmpty(field.previewContent) ? style.containerImageUpload : ''
16
- }, /*#__PURE__*/React.createElement(ImageUpload, field));
16
+ }, /*#__PURE__*/React.createElement(InputFileDraggable, field));
17
17
  };
18
18
 
19
19
  const TitleRadioWrapper = props => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","isEmpty","RadioWithTitle","SelectMultiple","ImageUpload","propTypes","style","getContainerStyle","field","childType","loading","previewContent","containerUpload","container","buildInput","containerImageUpload","TitleRadioWrapper","props","radioWithTitle"],"sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport RadioWithTitle from '../../atom/radio-with-title';\nimport SelectMultiple from '../select-multiple';\nimport ImageUpload from '../../atom/image-upload';\nimport propTypes, {TitleRadioWrapperProps} from './types';\nimport style from './style.css';\n\nconst getContainerStyle = (field: Record<string, unknown>, childType: string): string => {\n return childType === 'massive-upload' && (field.loading || isEmpty(field.previewContent))\n ? style.containerUpload\n : style.container;\n};\n\nconst buildInput = (childType: string, field: any) => {\n return childType === 'select-multiple' ? (\n <SelectMultiple {...field} />\n ) : (\n <div\n className={field.loading || isEmpty(field.previewContent) ? style.containerImageUpload : ''}\n >\n <ImageUpload {...field} />\n </div>\n );\n};\n\nconst TitleRadioWrapper = (props: TitleRadioWrapperProps) => {\n const {radioWithTitle, field, childType} = props;\n return (\n <div className={getContainerStyle(field, childType)}>\n {radioWithTitle ? <RadioWithTitle {...radioWithTitle} /> : null}\n <div className={style.field}>{buildInput(childType, field)}</div>\n </div>\n );\n};\n\nTitleRadioWrapper.propTypes = propTypes;\n\nexport default TitleRadioWrapper;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,cAAP,MAA2B,6BAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,SAAP,MAAgD,SAAhD;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,iBAAiB,GAAG,CAACC,KAAD,EAAiCC,SAAjC,KAA+D;EACvF,OAAOA,SAAS,KAAK,gBAAd,KAAmCD,KAAK,CAACE,OAAN,IAAiBT,OAAO,CAACO,KAAK,CAACG,cAAP,CAA3D,IACHL,KAAK,CAACM,eADH,GAEHN,KAAK,CAACO,SAFV;AAGD,CAJD;;AAMA,MAAMC,UAAU,GAAG,CAACL,SAAD,EAAoBD,KAApB,KAAmC;EACpD,OAAOC,SAAS,KAAK,iBAAd,gBACL,oBAAC,cAAD,EAAoBD,KAApB,CADK,gBAGL;IACE,SAAS,EAAEA,KAAK,CAACE,OAAN,IAAiBT,OAAO,CAACO,KAAK,CAACG,cAAP,CAAxB,GAAiDL,KAAK,CAACS,oBAAvD,GAA8E;EAD3F,gBAGE,oBAAC,WAAD,EAAiBP,KAAjB,CAHF,CAHF;AASD,CAVD;;AAYA,MAAMQ,iBAAiB,GAAIC,KAAD,IAAmC;EAC3D,MAAM;IAACC,cAAD;IAAiBV,KAAjB;IAAwBC;EAAxB,IAAqCQ,KAA3C;EACA,oBACE;IAAK,SAAS,EAAEV,iBAAiB,CAACC,KAAD,EAAQC,SAAR;EAAjC,GACGS,cAAc,gBAAG,oBAAC,cAAD,EAAoBA,cAApB,CAAH,GAA4C,IAD7D,eAEE;IAAK,SAAS,EAAEZ,KAAK,CAACE;EAAtB,GAA8BM,UAAU,CAACL,SAAD,EAAYD,KAAZ,CAAxC,CAFF,CADF;AAMD,CARD;;AAUAQ,iBAAiB,CAACX,SAAlB,2CAA8BA,SAA9B;AAEA,eAAeW,iBAAf"}
1
+ {"version":3,"file":"index.js","names":["React","isEmpty","RadioWithTitle","SelectMultiple","InputFileDraggable","propTypes","style","getContainerStyle","field","childType","loading","previewContent","containerUpload","container","buildInput","containerImageUpload","TitleRadioWrapper","props","radioWithTitle"],"sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport RadioWithTitle from '../../atom/radio-with-title';\nimport SelectMultiple from '../select-multiple';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport propTypes, {TitleRadioWrapperProps} from './types';\nimport style from './style.css';\n\nconst getContainerStyle = (field: Record<string, unknown>, childType: string): string => {\n return childType === 'massive-upload' && (field.loading || isEmpty(field.previewContent))\n ? style.containerUpload\n : style.container;\n};\n\nconst buildInput = (childType: string, field: any) => {\n return childType === 'select-multiple' ? (\n <SelectMultiple {...field} />\n ) : (\n <div\n className={field.loading || isEmpty(field.previewContent) ? style.containerImageUpload : ''}\n >\n <InputFileDraggable {...field} />\n </div>\n );\n};\n\nconst TitleRadioWrapper = (props: TitleRadioWrapperProps) => {\n const {radioWithTitle, field, childType} = props;\n return (\n <div className={getContainerStyle(field, childType)}>\n {radioWithTitle ? <RadioWithTitle {...radioWithTitle} /> : null}\n <div className={style.field}>{buildInput(childType, field)}</div>\n </div>\n );\n};\n\nTitleRadioWrapper.propTypes = propTypes;\n\nexport default TitleRadioWrapper;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,cAAP,MAA2B,6BAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,iCAA/B;AACA,OAAOC,SAAP,MAAgD,SAAhD;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,iBAAiB,GAAG,CAACC,KAAD,EAAiCC,SAAjC,KAA+D;EACvF,OAAOA,SAAS,KAAK,gBAAd,KAAmCD,KAAK,CAACE,OAAN,IAAiBT,OAAO,CAACO,KAAK,CAACG,cAAP,CAA3D,IACHL,KAAK,CAACM,eADH,GAEHN,KAAK,CAACO,SAFV;AAGD,CAJD;;AAMA,MAAMC,UAAU,GAAG,CAACL,SAAD,EAAoBD,KAApB,KAAmC;EACpD,OAAOC,SAAS,KAAK,iBAAd,gBACL,oBAAC,cAAD,EAAoBD,KAApB,CADK,gBAGL;IACE,SAAS,EAAEA,KAAK,CAACE,OAAN,IAAiBT,OAAO,CAACO,KAAK,CAACG,cAAP,CAAxB,GAAiDL,KAAK,CAACS,oBAAvD,GAA8E;EAD3F,gBAGE,oBAAC,kBAAD,EAAwBP,KAAxB,CAHF,CAHF;AASD,CAVD;;AAYA,MAAMQ,iBAAiB,GAAIC,KAAD,IAAmC;EAC3D,MAAM;IAACC,cAAD;IAAiBV,KAAjB;IAAwBC;EAAxB,IAAqCQ,KAA3C;EACA,oBACE;IAAK,SAAS,EAAEV,iBAAiB,CAACC,KAAD,EAAQC,SAAR;EAAjC,GACGS,cAAc,gBAAG,oBAAC,cAAD,EAAoBA,cAApB,CAAH,GAA4C,IAD7D,eAEE;IAAK,SAAS,EAAEZ,KAAK,CAACE;EAAtB,GAA8BM,UAAU,CAACL,SAAD,EAAYD,KAAZ,CAAxC,CAFF,CADF;AAMD,CARD;;AAUAQ,iBAAiB,CAACX,SAAlB,2CAA8BA,SAA9B;AAEA,eAAeW,iBAAf"}
@@ -1,5 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
- import ImageUpload from '../../atom/image-upload';
2
+ import InputFileDraggable from '../../atom/input-file-draggable';
3
3
  import { RadioWithTitleProps } from '../../atom/radio-with-title/types';
4
4
  import SelectMultiple from '../select-multiple';
5
5
  declare const propTypes: {
@@ -19,10 +19,27 @@ declare const propTypes: {
19
19
  'data-name': PropTypes.Requireable<string>;
20
20
  }>>;
21
21
  field: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
22
+ title: PropTypes.Requireable<string>;
23
+ placeholder: PropTypes.Requireable<string>;
24
+ description: PropTypes.Requireable<string>;
25
+ hint: PropTypes.Requireable<string>;
26
+ options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
27
+ selected: PropTypes.Validator<boolean>;
28
+ name: PropTypes.Validator<string>;
29
+ value: PropTypes.Requireable<string>;
30
+ }>>[]>;
31
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
32
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
33
+ multiple: PropTypes.Requireable<boolean>;
34
+ modified: PropTypes.Requireable<boolean>;
35
+ disabled: PropTypes.Requireable<boolean>;
36
+ error: PropTypes.Requireable<string>;
37
+ theme: PropTypes.Requireable<string>;
38
+ }> | PropTypes.InferProps<{
22
39
  name: PropTypes.Requireable<string>;
23
40
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
24
41
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
25
- imageTypes: (props: any, propName: any, componentName: any) => Error | null;
42
+ filesTypes: (props: any, propName: any, componentName: any) => Error | null;
26
43
  error: PropTypes.Requireable<string>;
27
44
  buttonAriaLabel: PropTypes.Requireable<string>;
28
45
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -43,29 +60,13 @@ declare const propTypes: {
43
60
  children: PropTypes.Requireable<(...args: any[]) => any>;
44
61
  pdfButtonLabel: PropTypes.Requireable<string>;
45
62
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
46
- }> | PropTypes.InferProps<{
47
- title: PropTypes.Requireable<string>;
48
- placeholder: PropTypes.Requireable<string>;
49
- description: PropTypes.Requireable<string>;
50
- hint: PropTypes.Requireable<string>;
51
- options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
52
- selected: PropTypes.Validator<boolean>;
53
- name: PropTypes.Validator<string>;
54
- value: PropTypes.Requireable<string>;
55
- }>>[]>;
56
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
57
- onError: PropTypes.Requireable<(...args: any[]) => any>;
58
63
  multiple: PropTypes.Requireable<boolean>;
59
- modified: PropTypes.Requireable<boolean>;
60
- disabled: PropTypes.Requireable<boolean>;
61
- error: PropTypes.Requireable<string>;
62
- theme: PropTypes.Requireable<string>;
63
64
  }> | null | undefined>>;
64
65
  childType: PropTypes.Requireable<string>;
65
66
  };
66
67
  export declare type TitleRadioWrapperProps = {
67
68
  radioWithTitle: RadioWithTitleProps;
68
- field: typeof SelectMultiple.propTypes | typeof ImageUpload.propTypes;
69
+ field: typeof SelectMultiple.propTypes | typeof InputFileDraggable.propTypes;
69
70
  childType: 'select-multiple' | 'massive-upload';
70
71
  };
71
72
  export default propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOd,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,cAAc,EAAE,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAO,cAAc,CAAC,SAAS,GAAG,OAAO,WAAW,CAAC,SAAS,CAAC;IACtE,SAAS,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;CACjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOd,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,cAAc,EAAE,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAO,cAAc,CAAC,SAAS,GAAG,OAAO,kBAAkB,CAAC,SAAS,CAAC;IAC7E,SAAS,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;CACjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import PropTypes from 'prop-types';
2
- import ImageUpload from '../../atom/image-upload';
2
+ import InputFileDraggable from '../../atom/input-file-draggable';
3
3
  import RadioWithTitle from '../../atom/radio-with-title';
4
4
  import SelectMultiple from '../select-multiple';
5
5
  const propTypes = {
6
6
  radioWithTitle: PropTypes.shape(RadioWithTitle.propTypes),
7
- field: PropTypes.oneOfType([PropTypes.shape(SelectMultiple.propTypes), PropTypes.shape(ImageUpload.propTypes)]),
7
+ field: PropTypes.oneOfType([PropTypes.shape(SelectMultiple.propTypes), PropTypes.shape(InputFileDraggable.propTypes)]),
8
8
  childType: PropTypes.oneOf(['select-multiple', 'massive-upload'])
9
9
  };
10
10
  export default propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","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
+ {"version":3,"file":"types.js","names":["PropTypes","InputFileDraggable","RadioWithTitle","SelectMultiple","propTypes","radioWithTitle","shape","field","oneOfType","childType","oneOf"],"sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport RadioWithTitle from '../../atom/radio-with-title';\nimport {RadioWithTitleProps} from '../../atom/radio-with-title/types';\nimport SelectMultiple from '../select-multiple';\n\nconst propTypes = {\n radioWithTitle: PropTypes.shape(RadioWithTitle.propTypes),\n field: PropTypes.oneOfType([\n PropTypes.shape(SelectMultiple.propTypes),\n PropTypes.shape(InputFileDraggable.propTypes)\n ]),\n childType: PropTypes.oneOf(['select-multiple', 'massive-upload'])\n};\n\nexport type TitleRadioWrapperProps = {\n radioWithTitle: RadioWithTitleProps;\n field: typeof SelectMultiple.propTypes | typeof InputFileDraggable.propTypes;\n childType: 'select-multiple' | 'massive-upload';\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,kBAAP,MAA+B,iCAA/B;AACA,OAAOC,cAAP,MAA2B,6BAA3B;AAEA,OAAOC,cAAP,MAA2B,oBAA3B;AAEA,MAAMC,SAAS,GAAG;EAChBC,cAAc,EAAEL,SAAS,CAACM,KAAV,CAAgBJ,cAAc,CAACE,SAA/B,CADA;EAEhBG,KAAK,EAAEP,SAAS,CAACQ,SAAV,CAAoB,CACzBR,SAAS,CAACM,KAAV,CAAgBH,cAAc,CAACC,SAA/B,CADyB,EAEzBJ,SAAS,CAACM,KAAV,CAAgBL,kBAAkB,CAACG,SAAnC,CAFyB,CAApB,CAFS;EAMhBK,SAAS,EAAET,SAAS,CAACU,KAAV,CAAgB,CAAC,iBAAD,EAAoB,gBAApB,CAAhB;AANK,CAAlB;AAeA,eAAeN,SAAf"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;gBAgEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;gBA0DC"}
@@ -1,4 +1,5 @@
1
1
  import _map from "lodash/fp/map";
2
+ import _isEmpty from "lodash/fp/isEmpty";
2
3
  import React from 'react';
3
4
  import PropTypes from 'prop-types';
4
5
  import classnames from 'classnames';
@@ -55,11 +56,7 @@ const ListItem = ({
55
56
  title: title
56
57
  }, title), dataColumnsView), /*#__PURE__*/React.createElement("div", {
57
58
  className: style.settings
58
- }, tagsView, buttonLink ? /*#__PURE__*/React.createElement("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)));
59
+ }, tagsView, buttonLink ? /*#__PURE__*/React.createElement(ButtonLink, buttonLink) : null, buttonLinkIcon ? /*#__PURE__*/React.createElement(ButtonLinkIconOnly, buttonLinkIcon) : null, !_isEmpty(bulletPointMenuButton) ? /*#__PURE__*/React.createElement(BulletPointMenuButton, bulletPointMenuButton) : null));
63
60
  };
64
61
 
65
62
  ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","classnames","Tag","ButtonLink","ButtonLinkIconOnly","BulletPointMenuButton","style","ListItem","buttonLink","buttonLinkIcon","bulletPointMenuButton","tags","title","dataColumns","order","ariaLabel","contentType","isBulkStyle","isPublished","tagsView","convert","cap","tag","index","type","dataColumnsView","dataColumn","className","label","orderView","undefined","wrapper","gridLayout","dataColumnsWrapper","settings","propTypes","string","isRequired","arrayOf","shape","oneOf","dataName","icon","position","onClick","func","size","link","href","download","bool","target","disabled","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = ({\n buttonLink,\n buttonLinkIcon,\n bulletPointMenuButton,\n tags,\n title,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n contentType,\n isBulkStyle = false\n}) => {\n let isPublished = false;\n\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = map.convert({cap: false})((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n return (\n <div className={classnames(style.wrapper, isBulkStyle && style.gridLayout)}>\n <div className={style.dataColumnsWrapper}>\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {buttonLink ? (\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,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,o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AcxD,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 {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,EAAaH,KAAb,KAAuB;IACvE,oBACE;MAAK,GAAG,EAAEA,KAAV;MAAiB,SAAS,EAAEjB,KAAK,CAACoB,UAAU,CAACC,SAAZ;IAAjC,GACGD,UAAU,CAACF,IAA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B,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"}
@@ -50,13 +50,14 @@
50
50
  align-items: center;
51
51
  display: flex;
52
52
  height: 100%;
53
+ gap: 16px;
53
54
  }
54
55
 
55
56
  .tag {
56
- margin: 0 16px 0 0;
57
57
  text-overflow: ellipsis;
58
58
  white-space: nowrap;
59
59
  }
60
+
60
61
  .cell {
61
62
  display: flex;
62
63
  height: 56px;
@@ -72,10 +73,6 @@
72
73
  white-space: nowrap;
73
74
  }
74
75
 
75
- .buttonLink {
76
- margin: 0 16px 0 0;
77
- }
78
-
79
76
  .order {
80
77
  width: 6px;
81
78
  height: 20px;
@@ -91,6 +88,5 @@
91
88
  .dataColumnsWrapper {
92
89
  align-items: center;
93
90
  display: flex;
94
- width: 100%;
95
- margin-left: 24px;
91
+ max-width: 80%;
96
92
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAoEA;;;;;;gBAwBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAqEA;;;;;;gBAsBC"}
@@ -86,9 +86,7 @@ const ListItems = ({
86
86
  className: style.actionsWrapper
87
87
  }, selectMultiple ? /*#__PURE__*/React.createElement("div", {
88
88
  className: style.selectMultiple
89
- }, /*#__PURE__*/React.createElement(SelectMultiple, selectMultiple)) : null, /*#__PURE__*/React.createElement("div", {
90
- className: style.buttonCreate
91
- }, /*#__PURE__*/React.createElement(ButtonLink, buttonLink)))), contentView);
89
+ }, /*#__PURE__*/React.createElement(SelectMultiple, selectMultiple)) : null, /*#__PURE__*/React.createElement(ButtonLink, buttonLink))), contentView);
92
90
  };
93
91
 
94
92
  ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","isNil","isEmpty","ListItem","DraggableList","Title","ButtonLink","SelectMultiple","ExpandibleActionableTable","style","buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","tableHeader","itemsView","length","map","item","contentType","index","id","tableHeaderView","tableHeaderWrapper","dataColumnsWrapper","tableHeaderItem","settings","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","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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d,SAAS,CAAC8C,OAAV,CAAkB9C,SAAS,CAAC4C,KAAV,CAAgBzC,QAAQ,CAACuC,SAAzB,CAAlB,CADO;IAEdR,IAAI,EAAElC,SAAS,CAAC+C,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGdhC,QAAQ,EAAEf,SAAS,CAAC2C,MAHN;IAId3B,MAAM,EAAEhB,SAAS,CAACgD,IAJJ;IAKd/B,WAAW,EAAEjB,SAAS,CAACiD,IALT;IAMd/B,WAAW,EAAElB,SAAS,CAAC8C,OAAV,CAAkB9C,SAAS,CAAC2C,MAA5B;EANC,CAAhB,CAD2B,EAS3B3C,SAAS,CAAC4C,KAAV,cACKpC,yBAAyB,CAACkC,SAD/B;IAEER,IAAI,EAAElC,SAAS,CAAC+C,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAT2B,CAApB,CAJW;EAkBpBX,KAAK,EAAEpC,SAAS,CAAC2C;AAlBG,CAAtB;AAqBA,eAAeR,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","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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AACgD,IALT;IAMd9B,WAAW,EAAElB,SAAS,CAAC6C,OAAV,CAAkB7C,SAAS,CAAC0C,MAA5B;EANC,CAAhB,CAD2B,EAS3B1C,SAAS,CAAC2C,KAAV,cACKnC,yBAAyB,CAACiC,SAD/B;IAEEP,IAAI,EAAElC,SAAS,CAAC8C,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAT2B,CAApB,CAJW;EAkBpBV,KAAK,EAAEpC,SAAS,CAAC0C;AAlBG,CAAtB;AAqBA,eAAeP,SAAf"}
@@ -13,6 +13,7 @@
13
13
  padding: 0 24px;
14
14
  margin-bottom: 24px;
15
15
  }
16
+
16
17
  .actionsWrapper {
17
18
  display: flex;
18
19
  align-items: center;
@@ -31,10 +32,6 @@
31
32
  text-align: left;
32
33
  }
33
34
 
34
- .buttonCreate {
35
- width: 194px;
36
- }
37
-
38
35
  .selectMultiple {
39
36
  width: 291px;
40
37
  }
@@ -50,7 +50,7 @@ declare namespace RewardsForm {
50
50
  name: PropTypes.Requireable<string>;
51
51
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
52
52
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
53
- imageTypes: (props: any, propName: any, componentName: any) => Error | null;
53
+ filesTypes: (props: any, propName: any, componentName: any) => Error | null;
54
54
  error: PropTypes.Requireable<string>;
55
55
  buttonAriaLabel: PropTypes.Requireable<string>;
56
56
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -71,6 +71,7 @@ declare namespace RewardsForm {
71
71
  children: PropTypes.Requireable<(...args: any[]) => any>;
72
72
  pdfButtonLabel: PropTypes.Requireable<string>;
73
73
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
74
+ multiple: PropTypes.Requireable<boolean>;
74
75
  }> | null | undefined)[]>;
75
76
  'data-name': PropTypes.Requireable<string>;
76
77
  }> | null | undefined>>;
@@ -20,10 +20,27 @@ declare const SelectOpponents: {
20
20
  'data-name': import("prop-types").Requireable<string>;
21
21
  }>>;
22
22
  field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
23
+ title: import("prop-types").Requireable<string>;
24
+ placeholder: import("prop-types").Requireable<string>;
25
+ description: import("prop-types").Requireable<string>;
26
+ hint: import("prop-types").Requireable<string>;
27
+ options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
28
+ selected: import("prop-types").Validator<boolean>;
29
+ name: import("prop-types").Validator<string>;
30
+ value: import("prop-types").Requireable<string>;
31
+ }>>[]>;
32
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
33
+ onError: import("prop-types").Requireable<(...args: any[]) => any>;
34
+ multiple: import("prop-types").Requireable<boolean>;
35
+ modified: import("prop-types").Requireable<boolean>;
36
+ disabled: import("prop-types").Requireable<boolean>;
37
+ error: import("prop-types").Requireable<string>;
38
+ theme: import("prop-types").Requireable<string>;
39
+ }> | import("prop-types").InferProps<{
23
40
  name: import("prop-types").Requireable<string>;
24
41
  onChange: import("prop-types").Requireable<(...args: any[]) => any>;
25
42
  onReset: import("prop-types").Requireable<(...args: any[]) => any>;
26
- imageTypes: (props: any, propName: any, componentName: any) => Error | null;
43
+ filesTypes: (props: any, propName: any, componentName: any) => Error | null;
27
44
  error: import("prop-types").Requireable<string>;
28
45
  buttonAriaLabel: import("prop-types").Requireable<string>;
29
46
  errorButtonLabel: import("prop-types").Requireable<string>;
@@ -44,23 +61,7 @@ declare const SelectOpponents: {
44
61
  children: import("prop-types").Requireable<(...args: any[]) => any>;
45
62
  pdfButtonLabel: import("prop-types").Requireable<string>;
46
63
  pdfButtonAriaLabel: import("prop-types").Requireable<string>;
47
- }> | import("prop-types").InferProps<{
48
- title: import("prop-types").Requireable<string>;
49
- placeholder: import("prop-types").Requireable<string>;
50
- description: import("prop-types").Requireable<string>;
51
- hint: import("prop-types").Requireable<string>;
52
- options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
53
- selected: import("prop-types").Validator<boolean>;
54
- name: import("prop-types").Validator<string>;
55
- value: import("prop-types").Requireable<string>;
56
- }>>[]>;
57
- onChange: import("prop-types").Requireable<(...args: any[]) => any>;
58
- onError: import("prop-types").Requireable<(...args: any[]) => any>;
59
64
  multiple: import("prop-types").Requireable<boolean>;
60
- modified: import("prop-types").Requireable<boolean>;
61
- disabled: import("prop-types").Requireable<boolean>;
62
- error: import("prop-types").Requireable<string>;
63
- theme: import("prop-types").Requireable<string>;
64
65
  }> | null | undefined>>;
65
66
  childType: import("prop-types").Requireable<string>;
66
67
  }> | null | undefined)[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAIA,OAAkB,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAMxD,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,10 +18,27 @@ export declare const propTypes: {
18
18
  'data-name': PropTypes.Requireable<string>;
19
19
  }>>;
20
20
  field: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
21
+ title: PropTypes.Requireable<string>;
22
+ placeholder: PropTypes.Requireable<string>;
23
+ description: PropTypes.Requireable<string>;
24
+ hint: PropTypes.Requireable<string>;
25
+ options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
26
+ selected: PropTypes.Validator<boolean>;
27
+ name: PropTypes.Validator<string>;
28
+ value: PropTypes.Requireable<string>;
29
+ }>>[]>;
30
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
31
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
32
+ multiple: PropTypes.Requireable<boolean>;
33
+ modified: PropTypes.Requireable<boolean>;
34
+ disabled: PropTypes.Requireable<boolean>;
35
+ error: PropTypes.Requireable<string>;
36
+ theme: PropTypes.Requireable<string>;
37
+ }> | PropTypes.InferProps<{
21
38
  name: PropTypes.Requireable<string>;
22
39
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
23
40
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
24
- imageTypes: (props: any, propName: any, componentName: any) => Error | null;
41
+ filesTypes: (props: any, propName: any, componentName: any) => Error | null;
25
42
  error: PropTypes.Requireable<string>;
26
43
  buttonAriaLabel: PropTypes.Requireable<string>;
27
44
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -42,23 +59,7 @@ export declare const propTypes: {
42
59
  children: PropTypes.Requireable<(...args: any[]) => any>;
43
60
  pdfButtonLabel: PropTypes.Requireable<string>;
44
61
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
45
- }> | PropTypes.InferProps<{
46
- title: PropTypes.Requireable<string>;
47
- placeholder: PropTypes.Requireable<string>;
48
- description: PropTypes.Requireable<string>;
49
- hint: PropTypes.Requireable<string>;
50
- options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
51
- selected: PropTypes.Validator<boolean>;
52
- name: PropTypes.Validator<string>;
53
- value: PropTypes.Requireable<string>;
54
- }>>[]>;
55
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
56
- onError: PropTypes.Requireable<(...args: any[]) => any>;
57
62
  multiple: PropTypes.Requireable<boolean>;
58
- modified: PropTypes.Requireable<boolean>;
59
- disabled: PropTypes.Requireable<boolean>;
60
- error: PropTypes.Requireable<string>;
61
- theme: PropTypes.Requireable<string>;
62
63
  }> | null | undefined>>;
63
64
  childType: PropTypes.Requireable<string>;
64
65
  }> | null | undefined)[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,sBAAsB,EAAC,MAAM,0CAA0C,CAAC;AAGhF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}