jamespot-react-components 1.0.145 → 1.0.147

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 (237) hide show
  1. package/build/assets/gif.605d1d151a01356b376d5c4ac2f40d19.png +0 -0
  2. package/build/jamespot-react-components.js +540 -570
  3. package/build/jamespot-react-components.js.LICENSE.txt +26 -5
  4. package/build/jamespot-react-components.js.map +1 -1
  5. package/build/src/components/404/index.d.ts +2 -1
  6. package/build/src/components/Beta/BETA_JRCColorPicker/BETA_JRCColorPicker.d.ts +2 -1
  7. package/build/src/components/Beta/BETA_JRCColorPicker/ColorInput.d.ts +2 -1
  8. package/build/src/components/Beta/BETA_JRCColorPicker/ColorPalette.d.ts +3 -2
  9. package/build/src/components/Beta/BETA_JRCColorPicker/ColorPicker.d.ts +4 -3
  10. package/build/src/components/Beta/BETA_JRCColorPicker/ColorRange.d.ts +2 -1
  11. package/build/src/components/Beta/BETA_JRCColorPicker/DragArea.d.ts +2 -2
  12. package/build/src/components/Beta/BETA_JRCColorPicker/JRCColorPicker.types.d.ts +4 -4
  13. package/build/src/components/Beta/BETA_JRCDoubleClick/BETA_JRCDoubleClick.d.ts +2 -2
  14. package/build/src/components/Beta/BETA_JRCDragAndDrop/BETA_JRCDragAndDrop.d.ts +2 -2
  15. package/build/src/components/Common/DashedFocusBorder.d.ts +1 -1
  16. package/build/src/components/Common/FastCss.d.ts +2 -1
  17. package/build/src/components/Common/JRCConditionalWrapper.d.ts +2 -2
  18. package/build/src/components/Common/LimitLines.d.ts +1 -1
  19. package/build/src/components/Common/util/getColor.util.d.ts +1 -1
  20. package/build/src/components/Editors/components/EditorCheckbox.d.ts +2 -1
  21. package/build/src/components/Editors/components/EditorColorPicker.d.ts +2 -1
  22. package/build/src/components/Editors/components/EditorInput.d.ts +4 -2
  23. package/build/src/components/Editors/components/EditorSelect.d.ts +6 -4
  24. package/build/src/components/Editors/components/EditorUploader.d.ts +5 -4
  25. package/build/src/components/Form/Common/ClickAwayListener.d.ts +4 -4
  26. package/build/src/components/Form/Common/FormDescription.d.ts +2 -2
  27. package/build/src/components/Form/Common/FormHelper.d.ts +3 -2
  28. package/build/src/components/Form/Common/FormLabel.d.ts +1 -1
  29. package/build/src/components/Form/Common/FormMessageFeedback.d.ts +2 -1
  30. package/build/src/components/Form/Common/types.d.ts +1 -1
  31. package/build/src/components/Form/Input/Common/JRCFormErrors.d.ts +2 -1
  32. package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.d.ts +2 -2
  33. package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +3 -3
  34. package/build/src/components/Form/Input/Common/useFormControls.d.ts +5 -5
  35. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.d.ts +2 -1
  36. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.d.ts +2 -1
  37. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.d.ts +2 -1
  38. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.d.ts +2 -1
  39. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.style.d.ts +2 -2
  40. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.types.d.ts +2 -2
  41. package/build/src/components/Form/Input/JRCFormColor/JRCFormColor.d.ts +2 -1
  42. package/build/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime.d.ts +5 -5
  43. package/build/src/components/Form/Input/JRCFormEmail/JRCFormEmail.d.ts +2 -1
  44. package/build/src/components/Form/Input/JRCFormEmail/JRCInputEmail.d.ts +2 -2
  45. package/build/src/components/Form/Input/JRCFormFieldRender.d.ts +2 -2
  46. package/build/src/components/Form/Input/JRCFormFile/File.d.ts +4 -3
  47. package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.d.ts +5 -5
  48. package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.styles.d.ts +1 -1
  49. package/build/src/components/Form/Input/JRCFormFile/file.api.d.ts +15 -2
  50. package/build/src/components/Form/Input/JRCFormImage/JRCFormImage.d.ts +3 -3
  51. package/build/src/components/Form/Input/JRCFormNumber/JRCFormNumber.d.ts +2 -1
  52. package/build/src/components/Form/Input/JRCFormRange/JRCFormRange.d.ts +2 -1
  53. package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.d.ts +2 -2
  54. package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.stories.d.ts +1 -1
  55. package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichEditorField.styles.d.ts +3 -3
  56. package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.d.ts +4 -4
  57. package/build/src/components/Form/Input/JRCFormRichText/extensions/mentions/MentionList.d.ts +2 -2
  58. package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelect.d.ts +4 -4
  59. package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelectTag.d.ts +2 -1
  60. package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.d.ts +2 -2
  61. package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.stories.d.ts +1 -1
  62. package/build/src/components/Form/Input/JRCFormText/JRCFormText.d.ts +2 -1
  63. package/build/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.d.ts +1 -1
  64. package/build/src/components/Form/Input/JRCFormURL/JRCFormUrl.d.ts +2 -1
  65. package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +5 -5
  66. package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types.d.ts +5 -5
  67. package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputReorderCheckbox.d.ts +5 -5
  68. package/build/src/components/Form/Input/JRCInputDate/JRCInputDate.d.ts +3 -3
  69. package/build/src/components/Form/Input/JRCInputFile/JRCInputFile.d.ts +9 -9
  70. package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.d.ts +6 -8
  71. package/build/src/components/Form/Input/JRCInputRange/JRCInputRange.d.ts +3 -3
  72. package/build/src/components/Form/Input/JRCInputRichText/JRCInputRichText.d.ts +4 -4
  73. package/build/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +3 -3
  74. package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +2 -2
  75. package/build/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +4 -4
  76. package/build/src/components/Form/Input/JRCInputText/JRCInputTextIconButton.d.ts +3 -3
  77. package/build/src/components/Form/Input/JRCInputTextarea/JRCInputTextarea.d.ts +2 -2
  78. package/build/src/components/Form/Input/JRCInputTime/JRCInputTime.d.ts +2 -2
  79. package/build/src/components/Form/Input/JRCInputUrl/JRCInputUrl.d.ts +3 -3
  80. package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.d.ts +2 -2
  81. package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.d.ts +2 -2
  82. package/build/src/components/Form/Input/JRCSelect/JRCInputAudience.d.ts +3 -3
  83. package/build/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.d.ts +4 -4
  84. package/build/src/components/Form/Input/JRCSelect/JRCInputAutocompleteViews.d.ts +3 -2
  85. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.d.ts +2 -2
  86. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.defaults.d.ts +2 -1
  87. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.stories.d.ts +1 -1
  88. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +9 -9
  89. package/build/src/components/Form/Input/JRCSelect/JRCInputSelectAsync.stories.d.ts +1 -1
  90. package/build/src/components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree.d.ts +2 -2
  91. package/build/src/components/Form/Input/JRCSelect/JRCInputSelectList.d.ts +3 -2
  92. package/build/src/components/Form/Input/JRCSelect/JRCInputTaxonomy.d.ts +3 -3
  93. package/build/src/components/Form/Input/JRCSelect/SelectHierarchicalTreeModal.d.ts +2 -2
  94. package/build/src/components/Form/Input/JRCStyledInput.d.ts +4 -3
  95. package/build/src/components/Form/Input/ReduxFormControls.d.ts +1 -1
  96. package/build/src/components/JRCAlert/JRCAlert.d.ts +1 -1
  97. package/build/src/components/JRCAppContainer/JRCAppContainer.d.ts +1 -1
  98. package/build/src/components/JRCAppHeader/JRCAppHeader.d.ts +2 -1
  99. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.d.ts +2 -1
  100. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.stories.d.ts +3 -3
  101. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +4 -4
  102. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.types.d.ts +1 -1
  103. package/build/src/components/JRCAppLeftColumn/JRCDefaultMenu.d.ts +2 -1
  104. package/build/src/components/JRCAvatar/JRCAvatar.d.ts +3 -2
  105. package/build/src/components/JRCButton/JRCButton.d.ts +5 -5
  106. package/build/src/components/JRCButton/JRCButton.stories.d.ts +2 -2
  107. package/build/src/components/JRCButton/JRCButtonConfig.d.ts +1 -1
  108. package/build/src/components/JRCButton/JRCValidationButton.d.ts +2 -2
  109. package/build/src/components/JRCButtonDownload/JRCButtonDownload.d.ts +2 -1
  110. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.d.ts +2 -1
  111. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +2 -2
  112. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.types.d.ts +6 -6
  113. package/build/src/components/JRCButtonFile/JRCButtonFile.d.ts +2 -1
  114. package/build/src/components/JRCCard/JRCCard.d.ts +5 -5
  115. package/build/src/components/JRCCard/JRCCardImg.d.ts +3 -3
  116. package/build/src/components/JRCColumnCenter/JRCColumnCenter.d.ts +1 -1
  117. package/build/src/components/JRCColumnLeft/JRCColumnLeft.d.ts +1 -1
  118. package/build/src/components/JRCColumnRight/JRCColumnRight.d.ts +1 -1
  119. package/build/src/components/JRCCropImage/JRCCropImage.d.ts +6 -6
  120. package/build/src/components/JRCDate/JRCDate.d.ts +2 -1
  121. package/build/src/components/JRCDate/JRCDate.stories.d.ts +2 -2
  122. package/build/src/components/JRCDropDown/JRCDropDown.d.ts +1 -1
  123. package/build/src/components/JRCEllipsis/JRCEllipsis.d.ts +3 -2
  124. package/build/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +12 -0
  125. package/build/src/components/JRCEmptySpace/JRCEmptySpace.stories.d.ts +4 -0
  126. package/build/src/components/JRCFile/JRCFile.d.ts +2 -1
  127. package/build/src/components/JRCFile/JRCFileApplication.d.ts +2 -1
  128. package/build/src/components/JRCFile/JRCFileAudio.d.ts +2 -1
  129. package/build/src/components/JRCFile/JRCFileAvatar.d.ts +2 -1
  130. package/build/src/components/JRCFile/JRCFileImage.d.ts +6 -2
  131. package/build/src/components/JRCFile/JRCFileVideo.d.ts +2 -1
  132. package/build/src/components/JRCFile/types.d.ts +1 -1
  133. package/build/src/components/JRCFileOpen/JRCFileOpen.d.ts +1 -1
  134. package/build/src/components/JRCFileViewer/JRCFileViewer.d.ts +14 -2
  135. package/build/src/components/JRCFileViewer/JRCFileViewer.styles.d.ts +1 -0
  136. package/build/src/components/JRCFileViewer/JRCFileViewerArrows.d.ts +7 -2
  137. package/build/src/components/JRCFileViewer/JRCFileViewerContent.d.ts +7 -5
  138. package/build/src/components/JRCFileViewer/JRCFileViewerContentApplication.d.ts +5 -4
  139. package/build/src/components/JRCFileViewer/JRCFileViewerContentAudio.d.ts +1 -1
  140. package/build/src/components/JRCFileViewer/JRCFileViewerContentImage.d.ts +1 -1
  141. package/build/src/components/JRCFileViewer/JRCFileViewerContentVideo.d.ts +1 -1
  142. package/build/src/components/JRCFileViewer/JRCFileViewerOpenWithOptions.d.ts +6 -4
  143. package/build/src/components/JRCFileViewer/types.d.ts +6 -12
  144. package/build/src/components/JRCFileViewer/utils.d.ts +4 -4
  145. package/build/src/components/JRCFlex/JRCFlexBox.d.ts +5 -5
  146. package/build/src/components/JRCFolders/JRCFolder.d.ts +2 -1
  147. package/build/src/components/JRCFolders/JRCFolderBreadcrumb.d.ts +2 -1
  148. package/build/src/components/JRCFolders/JRCFolders.d.ts +2 -1
  149. package/build/src/components/JRCFolders/JRCFolders.stories.d.ts +2 -2
  150. package/build/src/components/JRCFolders/types.d.ts +2 -2
  151. package/build/src/components/JRCGrid/JRCGrid.d.ts +1 -1
  152. package/build/src/components/JRCGrid/JRCGrid.stories.d.ts +5 -5
  153. package/build/src/components/JRCHref/JRCHref.d.ts +8 -7
  154. package/build/src/components/JRCHtml/JRCHtml.d.ts +2 -2
  155. package/build/src/components/JRCIcon/JRCIcon.d.ts +2 -1
  156. package/build/src/components/JRCIcon/JRCIcon.stories.d.ts +2 -2
  157. package/build/src/components/JRCIconButton/JRCIconButton.d.ts +2 -2
  158. package/build/src/components/JRCImg/JRCImg.d.ts +3 -2
  159. package/build/src/components/JRCList/JRCList.d.ts +5 -4
  160. package/build/src/components/JRCList/JRCList.stories.d.ts +1 -1
  161. package/build/src/components/JRCList/JRCList.styles.d.ts +5 -5
  162. package/build/src/components/JRCLoader/JRCLoader.d.ts +3 -2
  163. package/build/src/components/JRCLoader/JRCSkeleton.d.ts +2 -1
  164. package/build/src/components/JRCMenu/JRCMenu.stories.d.ts +2 -2
  165. package/build/src/components/JRCMenuItem/JRCMenuItem.d.ts +1 -1
  166. package/build/src/components/JRCModal/JRCModal.styles.d.ts +1 -1
  167. package/build/src/components/JRCModalImg/JRCModalImg.d.ts +2 -2
  168. package/build/src/components/JRCModalImg/JRCModalImg.stories.d.ts +2 -2
  169. package/build/src/components/JRCPagination/JRCPagination.d.ts +5 -4
  170. package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.d.ts +1 -1
  171. package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.styles.d.ts +1 -1
  172. package/build/src/components/JRCSkeleton/JRCSkeletonLine.d.ts +3 -2
  173. package/build/src/components/JRCSkeleton/JRCSkeletonList.d.ts +1 -1
  174. package/build/src/components/JRCSkeleton/JRCSkeletonSquare.d.ts +1 -1
  175. package/build/src/components/JRCTabs/JRCTabs.d.ts +3 -3
  176. package/build/src/components/JRCTabs/JRCTabs.stories.d.ts +2 -2
  177. package/build/src/components/JRCTag/JRCTag.d.ts +2 -2
  178. package/build/src/components/JRCThemeProvider/JRCThemeProvider.d.ts +1 -1
  179. package/build/src/components/JRCTooltip/JRCBaseTooltip.d.ts +4 -3
  180. package/build/src/components/JRCTooltip/JRCTooltip.d.ts +1 -1
  181. package/build/src/components/JRCTypo/JRCTypo.d.ts +10 -10
  182. package/build/src/components/JRCTypo/JRCTypo.stories.d.ts +7 -7
  183. package/build/src/components/JRCTypography/JRCTypography.d.d.ts +4 -4
  184. package/build/src/components/JRCTypography/JRCTypography.d.ts +2 -1
  185. package/build/src/components/JRCTypography/JRCTypography.styles.d.ts +6 -6
  186. package/build/src/components/Stepper/JRCFadeStepper.d.ts +2 -2
  187. package/build/src/components/Stepper/JRCImageStepper.d.ts +3 -3
  188. package/build/src/components/Stepper/JRCStepper.d.ts +3 -3
  189. package/build/src/components/Stepper/JRCStepper.stories.d.ts +2 -2
  190. package/build/src/components/Templates/JRCAppColumn.d.ts +2 -2
  191. package/build/src/components/Templates/JRCAppTab.d.ts +3 -3
  192. package/build/src/components/Templates/JRCBase.template.d.ts +2 -2
  193. package/build/src/components/Templates/JRCColumn.d.ts +2 -2
  194. package/build/src/components/Templates/JRCMainColumn.d.ts +2 -2
  195. package/build/src/components/Templates/JRCPanel.d.ts +2 -2
  196. package/build/src/components/Templates/JRCStepperPage.d.ts +2 -2
  197. package/build/src/components/Templates/JRCTwoColumns.template.d.ts +1 -1
  198. package/build/src/components/Templates/template.type.d.ts +13 -13
  199. package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.d.ts +6 -5
  200. package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.stories.d.ts +7 -0
  201. package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachmentEditor.d.ts +2 -2
  202. package/build/src/components/Widgets/JRCWidgetArticleButton/JRCWidgetArticleButton.d.ts +2 -1
  203. package/build/src/components/Widgets/JRCWidgetArticleButton/JRCWidgetArticleButtonEditor.d.ts +3 -2
  204. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.d.ts +6 -16
  205. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.stories.d.ts +8 -0
  206. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGalleryEditor.d.ts +3 -2
  207. package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.d.ts +6 -5
  208. package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.stories.d.ts +8 -0
  209. package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImageEditor.d.ts +3 -2
  210. package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.d.ts +2 -1
  211. package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +7 -0
  212. package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleTextEditor.d.ts +3 -2
  213. package/build/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitle.d.ts +8 -4
  214. package/build/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitleEditor.d.ts +2 -2
  215. package/build/src/components/Widgets/JRCWidgetEmptyInplace.d.ts +3 -2
  216. package/build/src/components/Widgets/components/WidgetMissingToken.d.ts +2 -1
  217. package/build/src/components/Widgets/const.d.ts +0 -4
  218. package/build/src/components/Widgets/utils.d.ts +3 -3
  219. package/build/src/hooks/UseImageLoader.d.ts +1 -1
  220. package/build/src/hooks/useRefSize.d.ts +6 -0
  221. package/build/src/index.d.ts +3 -0
  222. package/build/src/storybook/decorators.d.ts +2 -2
  223. package/build/src/styles/Theme.stories.d.ts +2 -2
  224. package/build/src/styles/theme.d.ts +9 -9
  225. package/build/src/types.d.ts +1 -0
  226. package/build/src/utils/index.d.ts +4 -2
  227. package/build/src/utils/test-utils.d.ts +1 -1
  228. package/build/src/utils/utils.array.d.ts +1 -1
  229. package/build/src/utils/utils.color.d.ts +3 -1
  230. package/build/src/utils/utils.date.d.ts +1 -1
  231. package/build/src/utils/utils.files.d.ts +113 -2
  232. package/package.json +145 -146
  233. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +0 -320
  234. package/build/src/components/Templates/template.styles.d.ts +0 -323
  235. package/build/src/components/Widgets/components/Attachment.d.ts +0 -33
  236. package/build/src/components/Widgets/components/Image.d.ts +0 -9
  237. package/pnpm-lock.yaml +0 -20909
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { WrappedFieldInputProps } from 'redux-form';
3
- import { FileArticle, FileResponse } from 'jamespot-user-api';
4
- export declare type JRCFormInputFileProps = JRCFormInputFileFieldProps;
3
+ import { jFileLittle } from 'jamespot-user-api';
4
+ export type JRCFormInputFileProps = JRCFormInputFileFieldProps;
5
5
  /**
6
6
  * Props type for JRCFormInputFileFieldProps (to fix with next version of this JRC)
7
7
  * @member disable optional boolean
@@ -21,14 +21,14 @@ export interface JRCFormInputFileFieldProps extends React.ComponentPropsWithoutR
21
21
  multiple?: boolean;
22
22
  accept?: 'image/png' | 'image/jpg' | 'image/png, image/jpg' | 'image/png, image/jpeg, image/jpg' | 'image/pdf' | 'image/doc' | 'image/pdf, image/doc' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.oasis.opendocument.spreadsheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.oasis.opendocument.text,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.oasis.opendocument.presentation';
23
23
  input?: WrappedFieldInputProps;
24
- onUploadSuccess?: (response: FileResponse) => void;
24
+ onUploadSuccess?: (response: jFileLittle, token: string) => void;
25
25
  onDeleteSuccess?: (index: number) => void;
26
26
  onUploadStart?: (count?: number) => void;
27
- existingFiles?: Array<FileArticle>;
27
+ existingFiles?: Array<jFileLittle>;
28
28
  deleteFile?: (id: number) => Promise<void>;
29
29
  }
30
30
  export declare const JRCFormInputFile: React.ForwardRefExoticComponent<JRCFormInputFileFieldProps & React.RefAttributes<HTMLInputElement>>;
31
31
  /**
32
32
  * @deprecated Build a component compatible with react-hook-form instead
33
33
  */
34
- export declare const JRCFormInputFileField: (props: JRCFormInputFileFieldProps) => JSX.Element;
34
+ export declare const JRCFormInputFileField: (props: JRCFormInputFileFieldProps) => React.JSX.Element;
@@ -7,7 +7,7 @@ export declare const FileUploadWrapper: import("styled-components").StyledCompon
7
7
  export declare const LabelField: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
8
8
  export declare const CloseButton: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare const FileWrapper: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
10
- loading: boolean;
10
+ isLoading: boolean;
11
11
  }, never>;
12
12
  export declare const FileName: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
13
13
  export declare const FileImage: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
@@ -1,2 +1,15 @@
1
- import { FileResponse } from 'jamespot-user-api';
2
- export declare function fileSend(file: File, token: string | undefined, name: string): Promise<FileResponse>;
1
+ export declare function fileSend(file: File, token: string | undefined, name: string): Promise<{
2
+ result: {
3
+ uri: string;
4
+ id: number;
5
+ mainType: string;
6
+ type: string;
7
+ dateCreation: string;
8
+ title: string;
9
+ _url: string;
10
+ dateModified: string | null;
11
+ mimetype: string;
12
+ path?: string | undefined;
13
+ };
14
+ token: string;
15
+ }>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare type JRCFormInputImageProps = JRCFormInputImageFieldProps;
2
+ export type JRCFormInputImageProps = JRCFormInputImageFieldProps;
3
3
  /**
4
4
  * Props type for JRCFormInputImageFieldProps
5
5
  * @member content text used as label
@@ -13,8 +13,8 @@ export interface JRCFormInputImageFieldProps extends React.ComponentPropsWithout
13
13
  * Placeholder field used in studio to edit forms. No logic to transfer images is implemented.
14
14
  * @deprecated Use JRCInputImage instead
15
15
  */
16
- export declare const JRCFormInputImage: ({ id, content }: JRCFormInputImageProps) => JSX.Element;
16
+ export declare const JRCFormInputImage: ({ id, content }: JRCFormInputImageProps) => React.JSX.Element;
17
17
  /**
18
18
  * @deprecated Use JRCInputImage instead
19
19
  */
20
- export declare const JRCFormInputImageField: (props: JRCFormInputImageFieldProps) => JSX.Element;
20
+ export declare const JRCFormInputImageField: (props: JRCFormInputImageFieldProps) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
2
3
  /**
3
4
  * Component used as a <input type="text"/>
@@ -6,4 +7,4 @@ import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
6
7
  * @returns JSX.Element
7
8
  * @deprecated Create a JRCInput alternative compatible with react-hook-form
8
9
  */
9
- export declare const JRCFormNumberField: (props: JRCWritableFormInputProps) => JSX.Element;
10
+ export declare const JRCFormNumberField: (props: JRCWritableFormInputProps) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
2
3
  export interface JRCFormRangeProps extends JRCWritableFormInputProps {
3
4
  min: number;
@@ -12,4 +13,4 @@ export interface JRCFormRangeProps extends JRCWritableFormInputProps {
12
13
  * @returns JSX.Element
13
14
  * @deprecated use JRCInputRange instead
14
15
  */
15
- export declare const JRCFormRangeField: (props: JRCFormRangeProps) => JSX.Element;
16
+ export declare const JRCFormRangeField: (props: JRCFormRangeProps) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- export declare type JRCFormReceiveACopyInputProps = React.ComponentPropsWithoutRef<'input'>;
2
+ export type JRCFormReceiveACopyInputProps = React.ComponentPropsWithoutRef<'input'>;
3
3
  /**
4
4
  * @deprecated Create a JRCInput alternative compatible with react-hook-form
5
5
  */
6
6
  export declare const JRCFormReceiveACopyField: (props: {
7
7
  name: string;
8
- }) => JSX.Element;
8
+ }) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- decorators: ((storyFunc: any) => JSX.Element)[];
4
+ decorators: ((storyFunc: any) => React.JSX.Element)[];
5
5
  };
6
6
  export default _default;
7
7
  export declare const FormReceiveACopy: React.VFC<{}>;
@@ -5,12 +5,12 @@ export declare const EditorInplace: import("styled-components").StyledComponent<
5
5
  fontSize?: string | undefined;
6
6
  }, never>;
7
7
  export declare const Editor: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
- export declare const CharactersCount: import("styled-components").StyledComponent<({ variant, ...props }: import("../../../..").JRCTypographyProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const CharactersCount: import("styled-components").StyledComponent<({ variant, ...props }: import("../../../..").JRCTypographyProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare function FontSizeSelect(props: {
10
10
  onChange: (size: number) => void;
11
- }): JSX.Element;
11
+ }): React.JSX.Element;
12
12
  export declare const FixedMenuWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
13
  export declare const MenuWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
14
  export declare const Spacer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
15
  export declare const ReadOnlyBorder: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
- export declare function SimpleInputColor(props: React.ComponentPropsWithoutRef<'input'>): JSX.Element;
16
+ export declare function SimpleInputColor(props: React.ComponentPropsWithoutRef<'input'>): React.JSX.Element;
@@ -12,12 +12,12 @@ export declare const MenuBar: ({ editor, toolbarOptions, isFixed, }: {
12
12
  editor: Editor | null;
13
13
  toolbarOptions: FormRichTextFieldToolbarProps[] | '*';
14
14
  isFixed: boolean;
15
- }) => JSX.Element | null;
16
- export declare type RichTextValue = {
15
+ }) => React.JSX.Element | null;
16
+ export type RichTextValue = {
17
17
  html: string;
18
18
  text: string;
19
19
  };
20
- export declare type FormRichTextFieldProps = {
20
+ export type FormRichTextFieldProps = {
21
21
  name: string;
22
22
  placeholder?: string;
23
23
  value: Partial<RichTextValue> | undefined;
@@ -49,4 +49,4 @@ export declare const FormRichTextField: React.ForwardRefExoticComponent<{
49
49
  * validation props: required
50
50
  * @returns JSX.Element
51
51
  */
52
- export declare const JRCFormRichTextField: (props: JRCWritableFormInputProps) => JSX.Element;
52
+ export declare const JRCFormRichTextField: (props: JRCWritableFormInputProps) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { SuggestionProps } from '@tiptap/suggestion';
3
3
  import { AudienceAutocomplete } from 'jamespot-user-api';
4
- declare type Props = Pick<SuggestionProps<AudienceAutocomplete>, 'items' | 'command'>;
5
- export declare type MentionListRef = {
4
+ type Props = Pick<SuggestionProps<AudienceAutocomplete>, 'items' | 'command'>;
5
+ export type MentionListRef = {
6
6
  onKeyDown: (props: {
7
7
  event: KeyboardEvent;
8
8
  }) => boolean;
@@ -7,18 +7,18 @@ import { FieldValues } from 'react-hook-form/dist/types';
7
7
  /**
8
8
  * @deprecated Use JRCInputSelect alternatives instead
9
9
  */
10
- export declare const JRCFormSelectInput: (props: any) => JSX.Element;
10
+ export declare const JRCFormSelectInput: (props: any) => React.JSX.Element;
11
11
  /**
12
12
  * @deprecated Use JRCInputSelect alternatives instead
13
13
  */
14
- export declare const JRCFormSelectAsyncInput: (props: any) => JSX.Element;
14
+ export declare const JRCFormSelectAsyncInput: (props: any) => React.JSX.Element;
15
15
  /**
16
16
  * @deprecated Use JRCInputSelect alternatives instead
17
17
  */
18
18
  export declare const JRCFormSelectFieldRender: <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue> & {
19
19
  input: WrappedFieldInputProps;
20
20
  inputState: InputState;
21
- }) => JSX.Element;
21
+ }) => React.JSX.Element;
22
22
  /**
23
23
  * Props of the JRCFormSelectField element
24
24
  *
@@ -77,7 +77,7 @@ export interface JRCFormSelectProps<T extends FieldValues = FieldValues> extends
77
77
  * @returns JSX.Element
78
78
  */
79
79
  declare const JRCFormSelectField: {
80
- <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>): JSX.Element;
80
+ <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>): React.JSX.Element;
81
81
  defaultProps: JRCFormSelectProps<JRCValueLabelProps>;
82
82
  };
83
83
  export { JRCFormSelectField };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { JRCFormSelectProps } from './JRCFormSelect';
2
3
  import { FieldValues } from 'react-hook-form/dist/types';
3
4
  /**
@@ -8,5 +9,5 @@ import { FieldValues } from 'react-hook-form/dist/types';
8
9
  * @returns JSX.Element
9
10
  * @deprecated Use JRCInputSelect alternatives instead
10
11
  */
11
- declare const JRCFormSelectTagField: <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>) => JSX.Element;
12
+ declare const JRCFormSelectTagField: <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>) => React.JSX.Element;
12
13
  export { JRCFormSelectTagField };
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- export declare type JRCFormSendAlertInputProps = React.ComponentPropsWithoutRef<'input'>;
2
+ export type JRCFormSendAlertInputProps = React.ComponentPropsWithoutRef<'input'>;
3
3
  /**
4
4
  * @deprecated Create or use a JRCInput alternative compatible with react-hook-form instead
5
5
  */
6
6
  export declare const JRCFormSendAlertField: (props: {
7
7
  name: string;
8
- }) => JSX.Element;
8
+ }) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- decorators: ((storyFunc: any) => JSX.Element)[];
4
+ decorators: ((storyFunc: any) => React.JSX.Element)[];
5
5
  };
6
6
  export default _default;
7
7
  export declare const FormSendAlert: React.VFC<{}>;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
2
3
  /**
3
4
  * Component used as a <input type="text"/>
@@ -6,4 +7,4 @@ import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
6
7
  * @returns JSX.Element
7
8
  * @deprecated Use JRCInputText or JRCInputTextArea instead
8
9
  */
9
- export declare const JRCFormTextField: (props: JRCWritableFormInputProps) => JSX.Element;
10
+ export declare const JRCFormTextField: (props: JRCWritableFormInputProps) => React.JSX.Element;
@@ -23,4 +23,4 @@ export declare const JRCFormTextarea: import("styled-components").StyledComponen
23
23
  * @returns JSX.Element
24
24
  * @deprecated Use JRCInputText or JRCInputTextArea instead
25
25
  */
26
- export declare const JRCFormTextareaField: (props: TextareaFormInputProps) => JSX.Element;
26
+ export declare const JRCFormTextareaField: (props: TextareaFormInputProps) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
2
3
  /**
3
4
  * Component used as a <input type="url"/> with a url validation
@@ -6,4 +7,4 @@ import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
6
7
  * @returns JSX.Element
7
8
  * @deprecated Create / use a JRCInputAlternative compatible with react-hook-form instead
8
9
  */
9
- export declare const JRCFormUrlField: (props: JRCWritableFormInputProps) => JSX.Element;
10
+ export declare const JRCFormUrlField: (props: JRCWritableFormInputProps) => React.JSX.Element;
@@ -3,13 +3,13 @@ import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
5
5
  import { FieldValues } from 'react-hook-form/dist/types';
6
- declare type CheckboxOption<TFieldValues> = {
6
+ type CheckboxOption<TFieldValues> = {
7
7
  label: string | JSX.Element;
8
8
  value: string | number | TFieldValues;
9
9
  disabled?: boolean;
10
10
  recommended?: boolean;
11
11
  };
12
- export declare type CheckboxProps<TFieldValues> = DataCy & {
12
+ export type CheckboxProps<TFieldValues> = DataCy & {
13
13
  disabled?: boolean;
14
14
  checkboxMode?: 'checkbox' | 'toggle' | 'radio';
15
15
  options: Array<CheckboxOption<TFieldValues>>;
@@ -25,12 +25,12 @@ export declare type CheckboxProps<TFieldValues> = DataCy & {
25
25
  readOnly?: boolean;
26
26
  getReadOnlyLabel?: (value: TFieldValues) => React.ReactNode;
27
27
  };
28
- export declare type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
29
- export declare type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
28
+ export type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
29
+ export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
30
30
  value: TFieldValues | TFieldValues[];
31
31
  };
32
32
  export declare const ReadOnlyUl: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
33
- export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): JSX.Element;
33
+ export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): React.JSX.Element;
34
34
  export declare namespace JRCInputCheckbox {
35
35
  var defaultProps: {
36
36
  direction: string;
@@ -2,13 +2,13 @@
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
5
- export declare type CheckboxValue<T extends FieldValues = FieldValues> = string | number | T;
6
- export declare type CheckboxOption<TFieldValues extends FieldValues = FieldValues> = {
5
+ export type CheckboxValue<T extends FieldValues = FieldValues> = string | number | T;
6
+ export type CheckboxOption<TFieldValues extends FieldValues = FieldValues> = {
7
7
  label: string | JSX.Element;
8
8
  value: CheckboxValue<TFieldValues>;
9
9
  disabled?: boolean;
10
10
  };
11
- export declare type InnerProps<TFieldValues extends FieldValues = FieldValues> = {
11
+ export type InnerProps<TFieldValues extends FieldValues = FieldValues> = {
12
12
  disabled?: boolean;
13
13
  checkboxMode?: 'checkbox' | 'toggle' | 'radio';
14
14
  options: CheckboxOption<TFieldValues>[];
@@ -20,7 +20,7 @@ export declare type InnerProps<TFieldValues extends FieldValues = FieldValues> =
20
20
  backgroundOnSelect?: boolean;
21
21
  valueTypeIsBoolean?: boolean;
22
22
  };
23
- export declare type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = InnerProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
24
- export declare type InputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = InnerProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
23
+ export type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = InnerProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
24
+ export type InputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = InnerProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
25
25
  value: TFieldValues | TFieldValues[];
26
26
  };
@@ -3,19 +3,19 @@ import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
5
5
  import { FieldValues } from 'react-hook-form/dist/types';
6
- declare type CheckboxOption<TFieldValues> = {
6
+ type CheckboxOption<TFieldValues> = {
7
7
  label: string | JSX.Element;
8
8
  value: string | number | TFieldValues;
9
9
  };
10
- export declare type CheckboxProps<TFieldValues> = DataCy & {
10
+ export type CheckboxProps<TFieldValues> = DataCy & {
11
11
  options: Array<CheckboxOption<TFieldValues>>;
12
12
  readOnly?: boolean;
13
13
  getLabel?: (option: CheckboxOption<TFieldValues>) => React.ReactNode;
14
14
  canReorder?: boolean;
15
15
  };
16
- export declare type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
17
- export declare type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
16
+ export type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
17
+ export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
18
18
  value: TFieldValues[];
19
19
  };
20
- export declare function JRCInputReorderCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, margin, ...props }: JRCInputCheckboxProps<TFieldValues>): JSX.Element;
20
+ export declare function JRCInputReorderCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, margin, ...props }: JRCInputCheckboxProps<TFieldValues>): React.JSX.Element;
21
21
  export {};
@@ -2,14 +2,14 @@ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
5
- export declare type NativeInputProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
5
+ export type NativeInputProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
6
6
  type?: 'date' | 'time' | 'datetime-local';
7
7
  };
8
- export declare type JRCInputDateProps<TFieldValues extends FieldValues = FieldValues> = NativeInputProps & JRCInputFieldProps<TFieldValues>;
8
+ export type JRCInputDateProps<TFieldValues extends FieldValues = FieldValues> = NativeInputProps & JRCInputFieldProps<TFieldValues>;
9
9
  /**
10
10
  * Component used as a <input type="date"/>
11
11
  * @param props JRCInputFieldProps
12
12
  * validation props: required
13
13
  * @returns JSX.Element
14
14
  */
15
- export declare function JRCInputDate<T extends FieldValues = FieldValues>(props: JRCInputDateProps<T>): JSX.Element;
15
+ export declare function JRCInputDate<T extends FieldValues = FieldValues>(props: JRCInputDateProps<T>): React.JSX.Element;
@@ -2,21 +2,21 @@ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
5
- import { ApiWrapper, FileResponse } from 'jamespot-user-api';
6
- export declare type NativeInputFileProps = DataCy & Omit<React.ComponentPropsWithoutRef<'input'>, 'value' | 'onChange'> & {
5
+ import { ApiWrapper, jFileLittle } from 'jamespot-user-api';
6
+ export type NativeInputFileProps = DataCy & Omit<React.ComponentPropsWithoutRef<'input'>, 'value' | 'onChange'> & {
7
7
  token?: string | undefined;
8
8
  attrName?: string;
9
9
  onLoading?: (state: boolean) => void;
10
- value: ApiWrapper<FileResponse>[];
11
- onChange: (files: ApiWrapper<FileResponse>[]) => void;
10
+ value: ApiWrapper<jFileLittle>[];
11
+ onChange: (files: ApiWrapper<jFileLittle>[]) => void;
12
12
  };
13
- export declare type JRCInputFileProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputFileProps, 'value' | 'onChange'>;
14
- export declare const InputFile: React.ForwardRefExoticComponent<DataCy & Omit<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value"> & {
13
+ export type JRCInputFileProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputFileProps, 'value' | 'onChange'>;
14
+ export declare const InputFile: React.ForwardRefExoticComponent<DataCy & Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value"> & {
15
15
  token?: string | undefined;
16
16
  attrName?: string | undefined;
17
17
  onLoading?: ((state: boolean) => void) | undefined;
18
- value: ApiWrapper<FileResponse>[];
19
- onChange: (files: ApiWrapper<FileResponse>[]) => void;
18
+ value: ApiWrapper<jFileLittle>[];
19
+ onChange: (files: ApiWrapper<jFileLittle>[]) => void;
20
20
  } & React.RefAttributes<HTMLInputElement>>;
21
21
  /**
22
22
  * Component used as a <input type="file"/>
@@ -24,4 +24,4 @@ export declare const InputFile: React.ForwardRefExoticComponent<DataCy & Omit<Pi
24
24
  * validation props: required
25
25
  * @returns JSX.Element
26
26
  */
27
- export declare function JRCInputFile<T extends FieldValues = FieldValues>(props: JRCInputFileProps<T>): JSX.Element;
27
+ export declare function JRCInputFile<T extends FieldValues = FieldValues>(props: JRCInputFileProps<T>): React.JSX.Element;
@@ -2,8 +2,8 @@ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
5
- import { FileResponse } from 'jamespot-user-api';
6
- export declare type NativeInputImageProps = DataCy & Omit<React.ComponentPropsWithoutRef<'input'>, 'value' | 'onChange'> & {
5
+ import { jFileLittle } from 'jamespot-user-api';
6
+ export type NativeInputImageProps = DataCy & Omit<React.ComponentPropsWithoutRef<'input'>, 'value' | 'onChange'> & {
7
7
  token?: string | undefined;
8
8
  attrName?: string;
9
9
  onLoading?: (state: boolean) => void;
@@ -18,18 +18,16 @@ export declare type NativeInputImageProps = DataCy & Omit<React.ComponentPropsWi
18
18
  };
19
19
  readOnly?: boolean;
20
20
  readOnlyImg?: string;
21
- value: undefined | (FileResponse & {
22
- timestamp?: string | number;
23
- });
24
- onChange: (files: undefined | FileResponse) => void;
21
+ value: jFileLittle | undefined;
22
+ onChange: (files: jFileLittle | undefined) => void;
25
23
  disableCrop?: boolean;
26
24
  buttonsPosition?: 'inside' | 'under';
27
25
  };
28
- export declare type JRCInputImageProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputImageProps, 'value' | 'onChange'>;
26
+ export type JRCInputImageProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputImageProps, 'value' | 'onChange'>;
29
27
  /**
30
28
  * Component used as a <input type="file"/>
31
29
  * @param props JRCInputFieldProps
32
30
  * validation props: required
33
31
  * @returns JSX.Element
34
32
  */
35
- export declare function JRCInputImage<T extends FieldValues = FieldValues>(props: JRCInputImageProps<T>): JSX.Element;
33
+ export declare function JRCInputImage<T extends FieldValues = FieldValues>(props: JRCInputImageProps<T>): React.JSX.Element;
@@ -2,12 +2,12 @@ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
5
- export declare type JRCInputRangeProps = DataCy & React.ComponentPropsWithoutRef<'input'>;
6
- export declare const InputRange: React.ForwardRefExoticComponent<DataCy & Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
5
+ export type JRCInputRangeProps = DataCy & React.ComponentPropsWithoutRef<'input'>;
6
+ export declare const InputRange: React.ForwardRefExoticComponent<DataCy & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
7
7
  /**
8
8
  * Component used as a <input type="range"/>
9
9
  * @param props JRCInputFieldProps
10
10
  * validation props: required
11
11
  * @returns JSX.Element
12
12
  */
13
- export declare function JRCInputRange<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): JSX.Element;
13
+ export declare function JRCInputRange<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { FieldValues } from 'react-hook-form/dist/types';
4
4
  /**
@@ -7,8 +7,8 @@ import { FieldValues } from 'react-hook-form/dist/types';
7
7
  * validation props: required
8
8
  * @returns JSX.Element
9
9
  */
10
- export declare type FormRichTextFieldToolbarProps = 'font-size' | 'text-color' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'list-ul' | 'list-ol' | 'align-left' | 'align-center' | 'align-right' | 'align-justify' | 'link' | 'undo' | 'redo' | 'edit-html';
11
- export declare type FormRichTextFieldOptionsProps = {
10
+ export type FormRichTextFieldToolbarProps = 'font-size' | 'text-color' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'list-ul' | 'list-ol' | 'align-left' | 'align-center' | 'align-right' | 'align-justify' | 'link' | 'undo' | 'redo' | 'edit-html';
11
+ export type FormRichTextFieldOptionsProps = {
12
12
  richTextFixedToolbar: boolean;
13
13
  richTextCustomToolbar: Array<FormRichTextFieldToolbarProps>;
14
14
  richTextHideCharactersCount: boolean;
@@ -23,4 +23,4 @@ export declare function JRCInputRichText<T extends FieldValues = FieldValues>({
23
23
  isComponentVisible?: boolean;
24
24
  inplace?: boolean;
25
25
  placeholder?: string;
26
- } & JRCInputFieldProps<T>): JSX.Element;
26
+ } & JRCInputFieldProps<T>): React.JSX.Element;
@@ -2,10 +2,10 @@ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
5
- export declare type JRCInputTextProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
5
+ export type JRCInputTextProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
6
6
  width?: string;
7
7
  };
8
- export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
8
+ export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
9
9
  width?: string | undefined;
10
10
  } & React.RefAttributes<HTMLInputElement>>;
11
11
  /**
@@ -16,4 +16,4 @@ export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Pick<
16
16
  */
17
17
  export declare function JRCInputText<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T> & {
18
18
  width?: string;
19
- }): JSX.Element;
19
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { Meta, Story } from '@storybook/react';
4
4
  declare const _default: Meta<import("@storybook/react").Args>;
@@ -7,4 +7,4 @@ export declare const InputText: Story<JRCInputFieldProps<{
7
7
  text: string;
8
8
  }>>;
9
9
  export declare const InputTextIconButton: any;
10
- export declare const AllInputs: () => JSX.Element;
10
+ export declare const AllInputs: () => React.JSX.Element;
@@ -1,13 +1,13 @@
1
- export declare const IconBefore: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("components/JRCIcon/JRCIcon").JRCIconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const IconBefore: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("components/JRCIcon/JRCIcon").JRCIconProps) => import("react").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
2
2
  export declare const IconAfter: import("styled-components").StyledComponent<{
3
- ({ hasLicense, ...props }: Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>>, "onClick"> & import("../../../../types/dataAttributes").DataCy & {
3
+ ({ hasLicense, ...props }: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onClick"> & import("../../../../types/dataAttributes").DataCy & {
4
4
  icon: string;
5
5
  size?: "small" | "medium" | undefined;
6
6
  onClick?: ((event?: import("react").MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void) | undefined;
7
7
  name?: string | undefined;
8
8
  value?: string | undefined;
9
9
  disabled?: boolean | undefined;
10
- type?: "button" | "reset" | "submit" | undefined;
10
+ type?: "button" | "submit" | "reset" | undefined;
11
11
  bgBaseGrey?: 0 | 1 | 2 | undefined;
12
12
  color?: import("../../../../styles/theme").Colors | import("../../../../styles/theme").Shades | "inherit" | undefined;
13
13
  tooltip?: Omit<import("../../../..").JRCTooltipProps, "children"> | undefined;
@@ -17,7 +17,7 @@ export declare const IconAfter: import("styled-components").StyledComponent<{
17
17
  type: string;
18
18
  variant: string;
19
19
  size: string;
20
- }): JSX.Element;
20
+ }): import("react").JSX.Element;
21
21
  defaultProps: {
22
22
  type: string;
23
23
  variant: string;
@@ -1,17 +1,17 @@
1
1
  import * as React from 'react';
2
2
  import { DataCy } from '../../../../types/dataAttributes';
3
- export declare type JRCInputTextIconButtonProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
3
+ export type JRCInputTextIconButtonProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
4
4
  iconBefore: string;
5
5
  iconButtonAfter?: {
6
6
  icon: string;
7
7
  onClick: () => void;
8
8
  };
9
9
  };
10
- export declare const InputTextIconButton: React.ForwardRefExoticComponent<DataCy & Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
10
+ export declare const InputTextIconButton: React.ForwardRefExoticComponent<DataCy & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
11
11
  iconBefore: string;
12
12
  iconButtonAfter?: {
13
13
  icon: string;
14
14
  onClick: () => void;
15
15
  } | undefined;
16
16
  } & React.RefAttributes<HTMLInputElement>>;
17
- export declare function JRCInputTextIconButton(props: any): JSX.Element;
17
+ export declare function JRCInputTextIconButton(props: any): React.JSX.Element;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
5
- export declare type JRCInputTextareaProps = DataCy & React.ComponentPropsWithoutRef<'textarea'>;
5
+ export type JRCInputTextareaProps = DataCy & React.ComponentPropsWithoutRef<'textarea'>;
6
6
  export declare const StyledTextArea: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, DataCy & {
7
7
  error?: boolean | undefined;
8
8
  valid?: boolean | undefined;
@@ -14,4 +14,4 @@ export declare const StyledTextArea: import("styled-components").StyledComponent
14
14
  * validation props: required
15
15
  * @returns JSX.Element
16
16
  */
17
- export declare function JRCInputTextarea<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): JSX.Element;
17
+ export declare function JRCInputTextarea<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): React.JSX.Element;
@@ -2,11 +2,11 @@ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
5
- export declare type JRCInputTimeProps = DataCy & React.ComponentPropsWithoutRef<'input'>;
5
+ export type JRCInputTimeProps = DataCy & React.ComponentPropsWithoutRef<'input'>;
6
6
  /**
7
7
  * Component used as a <input type="hour"/>
8
8
  * @param props JRCInputFieldProps
9
9
  * validation props: required
10
10
  * @returns JSX.Element
11
11
  */
12
- export declare function JRCInputTime<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): JSX.Element;
12
+ export declare function JRCInputTime<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): React.JSX.Element;